[tests] Remove unreferenced bridge test targets
[mono.git] / mcs / class / System / Makefile
1 thisdir = class/System
2 SUBDIRS =
3 include ../../build/rules.make
4 export __SECURITY_BOOTSTRAP_DB=$(topdir)/class/lib/$(PROFILE)
5
6 LIBRARY = System.dll
7
8 ifneq (2.1, $(FRAMEWORK_VERSION))
9 RESOURCE_FILES = \
10         resources/Asterisk.wav  \
11         resources/Beep.wav      \
12         resources/Exclamation.wav       \
13         resources/Hand.wav      \
14         resources/Question.wav
15 endif
16
17 RESX_RESOURCE_STRING = \
18         ../../../external/corefx/src/System.Collections.Concurrent/src/Resources/Strings.resx \
19         ../../../external/corefx/src/System.Collections/src/Resources/Strings.resx \
20         ../../../external/corefx/src/System.Buffers/src/Resources/Strings.resx \
21         ../../../external/corefx/src/System.Private.Uri/src/Resources/Strings.resx
22
23 TEST_RESOURCES = \
24         Test/System/test-uri-props.txt \
25         Test/System/test-uri-props-manual.txt \
26         Test/System/test-uri-relative-props.txt
27
28 LIB_MCS_FLAGS = -d:CONFIGURATION_2_0 $(REFERENCE_SOURCES_FLAGS) -unsafe $(RESOURCE_FILES:%=-resource:%) -nowarn:436
29
30 ifndef NO_MONO_SECURITY
31 MONO_SECURITY=Mono.Security
32 MONO_SECURITY_REF=MonoSecurity=Mono.Security
33 MONO_SECURITY_DLL=$(the_libdir_base)Mono.Security.dll
34 EXTERN_ALIAS_FLAGS = -d:MONO_SECURITY_ALIAS
35 else
36 LIB_MCS_FLAGS += -d:INSIDE_SYSTEM
37 endif
38
39 ifndef MOBILE_PROFILE
40 LIB_MCS_FLAGS += -d:CODEDOM
41 TEST_LIB_REFS = $(MONO_SECURITY) System.Data System.Xml System.Core System.Configuration
42
43 ifndef NO_SYSTEM_DRAWING_DEPENDENCY
44 TEST_LIB_REFS += System.Drawing
45 endif
46
47 else
48 LIB_MCS_FLAGS += -nowarn:618
49 TEST_LIB_REFS = $(MONO_SECURITY) System.Data System.Xml System.Core
50 endif
51
52 TEST_MCS_FLAGS = -nowarn:618,672,219,67,169,612 \
53         $(foreach f, $(TEST_RESOURCES), -resource:$(f),$(notdir $(f)))
54
55 TEST_NUNITLITE_APP_CONFIG_GLOBAL=Test/test-config-file
56
57 REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,SYSTEM_NAMESPACE,MONO,PLATFORM_UNIX
58 ifndef NO_PROCESS_START
59 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_PROCESS_START
60 TEST_MCS_FLAGS += -d:MONO_FEATURE_PROCESS_START
61 endif
62
63 ifdef MONO_FEATURE_APPLETLS
64 LIB_MCS_FLAGS += -d:MONO_FEATURE_APPLETLS
65 endif
66
67 ifdef ONLY_APPLETLS
68 LIB_MCS_FLAGS += -d:ONLY_APPLETLS
69 endif
70
71 ifndef PROFILE_DISABLE_BTLS
72 ifdef HAVE_BTLS
73
74 LIB_MCS_FLAGS += -d:MONO_FEATURE_BTLS
75
76 endif
77 endif
78
79 ifndef NO_THREAD_ABORT
80 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
81 TEST_MCS_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
82 endif
83
84 ifndef NO_THREAD_SUSPEND_RESUME
85 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME
86 TEST_MCS_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME
87 endif
88
89 ifndef NO_MULTIPLE_APPDOMAINS
90 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_MULTIPLE_APPDOMAINS
91 TEST_MCS_FLAGS += -d:MONO_FEATURE_MULTIPLE_APPDOMAINS
92 endif
93
94 TXT_RESOURCE_STRINGS = ../referencesource/System/System.txt
95
96 #
97 # Flags used to build the secxml version of System.
98 #
99 ifeq (secxml/, $(intermediate))
100 LOCAL_MCS_FLAGS =
101 LIB_REFS += bare/System.Xml $(MONO_SECURITY_REF)
102 LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP $(EXTERN_ALIAS_FLAGS)
103 endif
104
105 #
106 # Flags used to build the final version of System (when intermediate is not defined)
107 #
108 ifndef intermediate
109 LIB_REFS += System.Xml $(MONO_SECURITY_REF)
110 LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP $(EXTERN_ALIAS_FLAGS)
111
112 ifndef MOBILE_PROFILE
113 LIB_REFS += System.Configuration
114 LIB_MCS_FLAGS += -d:CONFIGURATION_DEP
115 endif
116
117 endif
118
119 EXTRA_DISTFILES = \
120         common.sources                                  \
121         common_networking.sources               \
122         Test/test-config-file                           \
123         Test/System.Security.Cryptography.X509Certificates/pkits/Makefile       \
124         Test/System.Security.Cryptography.X509Certificates/pkits/README         \
125         Test/System.Security.Cryptography.X509Certificates/pkits/x509build.cs   \
126         $(RESOURCE_FILES)                               \
127         $(TEST_RESOURCES)
128
129 include ../../build/library.make
130
131 system_library_deps := \
132         $(secxml_libdir)/System.dll             \
133         $(the_libdir_base)System.Xml.dll        \
134         $(MONO_SECURITY_DLL)                            \
135         $(bare_libdir)/System.dll
136
137 ifndef MOBILE_PROFILE
138 system_library_deps += $(the_libdir_base)System.Configuration.dll       
139 endif
140
141 artifacts = $(system_library_deps)                      \
142         $(bare_libdir)/System.Xml.dll                   \
143         $(MONO_SECURITY_DLL)                            \
144         $(the_libdir_base)System.Configuration.dll
145
146 .NOTPARALLEL: $(system_library_deps)
147
148 $(the_libdir_base)System.dll: $(system_library_deps) ../Mono.Security/Makefile
149
150 ifeq (bare/,$(intermediate))
151 build-bare:
152 else
153 $(bare_libdir)/System.dll:
154         $(MAKE) intermediate=bare/ $(bare_libdir)/System.dll
155 endif
156
157 ifneq (secxml/,$(intermediate))
158 $(secxml_libdir)/System.dll: $(bare_libdir)/System.dll $(bare_libdir)/System.Xml.dll $(MONO_SECURITY_DLL) $(bare_libdir)/System.dll
159         $(MAKE) intermediate=secxml/ $(secxml_libdir)/System.dll
160 else
161 build-sec:
162 endif
163
164 $(the_libdir_base)System.Xml.dll:
165         (cd ../System.XML; $(MAKE) $@)
166
167 $(bare_libdir)/System.Xml.dll:
168         (cd ../System.XML; $(MAKE) $@)
169
170 $(the_libdir_base)Mono.Security.dll: ../Mono.Security/Makefile
171         (cd ../Mono.Security; $(MAKE))
172
173 $(the_libdir_base)System.Configuration.dll:
174         (cd ../System.Configuration; $(MAKE))
175
176 $(build_lib): $(CYCLIC_DEP_FILES)
177
178 $(test_lib): $(TEST_RESOURCES)
179
180 CLEAN_FILES = $(test_lib).config $(bare_libdir)/System.dll $(secxml_libdir)/System.dll $(bare_libdir)/System.dll.mdb $(secxml_libdir)/System.dll.mdb
181
182 # Helper target to run the perl regex test suite
183 regex-check:
184         $(MAKE) check FIXTURE=System.Text.RegularExpressions.PerlTest
185
186 #Debuging target
187 fresh: clean
188         rm -rf ../../class/lib/$(PROFILE)/bare ../../class/lib/$(PROFILE)/bare/ $(system_library_deps)
189
190 ifndef intermediate
191 ifneq ($(PROFILE),basic)
192 csproj-local:
193         $(MAKE) csproj-local intermediate=bare/
194         $(MAKE) csproj-local intermediate=secxml/
195 endif
196 endif