blob: 7bc9ed64a03a70819f0dbde97eacaf5a5324dfce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
thisdir = class/System.Data
SUBDIRS =
include ../../build/rules.make
LIBRARY = System.Data.dll
LIB_REFS = System System.Xml System.Core System.Numerics
LIB_MCS_FLAGS = \
-nowarn:169,219,414,649 \
-d:PLATFORM_UNIX \
-d:USEOFFSET \
-d:MONO_PARTIAL_DATA_IMPORT \
-unsafe
ifdef MOBILE_PROFILE
LIB_REFS += Mono.Data.Tds System.Transactions
LIB_MCS_FLAGS += -d:NO_CODEDOM -d:NO_OLEDB -d:NO_ODBC -d:NO_CONFIGURATION
else
LIB_REFS += System.EnterpriseServices Mono.Data.Tds System.Configuration System.Transactions
BUILT_SOURCES = \
gen_OdbcConnection.cs \
gen_OleDbConnection.cs \
gen_OdbcParameter.cs \
gen_OleDbParameter.cs \
gen_OdbcParameterCollection.cs \
gen_OleDbParameterCollection.cs
endif
RESOURCE_STRINGS = ../../../external/referencesource/System.Data/system.data.txt
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -r:System.Core.dll -r:Mono.Data.Sqlite.dll -nowarn:618,169,612,219,168
TEST_MONO_PATH = .
EXTRA_DISTFILES = \
$(wildcard Test/System.Data/*.xml) \
$(wildcard Test/System.Data/*.xsd) \
$(wildcard Test/System.Xml/*.xml) \
$(wildcard Test/System.Xml/*.xsd) \
Test/System.Data/schemas/ChangeLog \
$(wildcard Test/System.Data/schemas/*.xsd) \
app_test_net_4_x.config \
Test/System.Data/binserialize/*.bin \
SqliteTest.db \
referencesource.sources
gen_OdbcConnection.cs: ../../../external/referencesource/System.Data/System/Data/ProviderBase/DbConnectionHelper.cs
sed -e "s/NAMESPACE/System.Data.Odbc/g" $< |\
sed -e "s/CONNECTIONFACTORYOBJECTNAME/OdbcConnectionFactory.SingletonInstance/g" |\
sed -e "s/CONNECTIONOBJECTNAME/OdbcConnection/g" >$@
gen_OleDbConnection.cs: ../../../external/referencesource/System.Data/System/Data/ProviderBase/DbConnectionHelper.cs
sed -e s/NAMESPACE/System.Data.OleDb/g $< |\
sed -e s/CONNECTIONFACTORYOBJECTNAME/OleDbConnectionFactory.SingletonInstance/g |\
sed -e s/CONNECTIONOBJECTNAME/OleDbConnection/g >$@
gen_SqlConnection.cs: ../../../external/referencesource/System.Data/System/Data/ProviderBase/DbConnectionHelper.cs
sed -e s/NAMESPACE/System.Data.SqlClient/g $< |\
sed -e s/CONNECTIONFACTORYOBJECTNAME/SqlConnectionFactory.SingletonInstance/g |\
sed -e s/CONNECTIONOBJECTNAME/SqlConnection/g >$@
gen_OdbcParameter.cs: ../../../external/referencesource/System.Data/System/Data/ProviderBase/DbParameterHelper.cs
sed -e s/RESNAMESPACE/System.Data/g $< |\
sed -e s/NAMESPACE/System.Data.Odbc/g |\
sed -e s/PARAMETEROBJECTNAME/OdbcParameter/g >$@
gen_OleDbParameter.cs: ../../../external/referencesource/System.Data/System/Data/ProviderBase/DbParameterHelper.cs
sed -e s/RESNAMESPACE/System.Data/g $< |\
sed -e s/NAMESPACE/System.Data.OleDb/g |\
sed -e s/PARAMETEROBJECTNAME/OleDbParameter/g >$@
gen_SqlParameter.cs: ../../../external/referencesource/System.Data/System/Data/ProviderBase/DbParameterHelper.cs
sed -e s/RESNAMESPACE/System.Data/g $< |\
sed -e s/NAMESPACE/System.Data.SqlClient/g |\
sed -e s/PARAMETEROBJECTNAME/SqlParameter/g >$@
gen_OdbcParameterCollection.cs: ../../../external/referencesource/System.Data/System/Data/ProviderBase/DbParameterCollectionHelper.cs
sed -e s/RESNAMESPACE/System.Data/g $< |\
sed -e s/NAMESPACE/System.Data.Odbc/g |\
sed -e s/PARAMETERCOLLECTIONOBJECTNAME/OdbcParameterCollection/g |\
sed -e s/PARAMETEROBJECTNAME/OdbcParameter/g >$@
gen_OleDbParameterCollection.cs: ../../../external/referencesource/System.Data/System/Data/ProviderBase/DbParameterCollectionHelper.cs
sed -e s/RESNAMESPACE/System.Data/g $< |\
sed -e s/NAMESPACE/System.Data.OleDb/g |\
sed -e s/PARAMETERCOLLECTIONOBJECTNAME/OleDbParameterCollection/g |\
sed -e s/PARAMETEROBJECTNAME/OleDbParameter/g >$@
gen_SqlParameterCollection.cs: ../../../external/referencesource/System.Data/System/Data/ProviderBase/DbParameterCollectionHelper.cs
sed -e s/RESNAMESPACE/System.Data/g $< |\
sed -e s/NAMESPACE/System.Data.SqlClient/g |\
sed -e s/PARAMETERCOLLECTIONOBJECTNAME/SqlParameterCollection/g |\
sed -e s/PARAMETEROBJECTNAME/SqlParameter/g >$@
include ../../build/library.make
$(test_lib): $(test_lib).config
$(test_lib).config: app_test_$(PROFILE).config
cp $< $@
|