[corlib] System.Collections from CoreFX (#7478)
[mono-project.git] / mcs / class / System / Makefile
blobe3c2adc9f6b49ef4863f37737d52937119bec26e
1 thisdir = class/System
2 SUBDIRS =
3 include ../../build/rules.make
4 export __SECURITY_BOOTSTRAP_DB=$(topdir)/class/lib/$(PROFILE)
6 LIBRARY = System.dll
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
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 ../../../external/corefx/src/System.IO.Ports/src/Resources/Strings.resx \
23 ../../../external/corefx/src/System.Net.HttpListener/src/Resources/Strings.resx \
24 ../../../external/corefx/src/System.Net.Requests/src/Resources/Strings.resx
26 TEST_RESOURCES = \
27 Test/System/test-uri-props.txt \
28 Test/System/test-uri-props-manual.txt \
29 Test/System/test-uri-relative-props.txt
31 USE_XTEST_REMOTE_EXECUTOR = YES
32 XTEST_LIB_REFS = System System.Core System.Net Facades/System.Threading.Tasks Facades/System.Runtime.InteropServices.RuntimeInformation System.Net.Http
33 LIB_MCS_FLAGS = -d:COREFX -d:CONFIGURATION_2_0 -d:XML_DEP -d:SECURITY_DEP $(REFERENCE_SOURCES_FLAGS) -unsafe $(RESOURCE_FILES:%=-resource:%) -nowarn:436
35 ifndef NO_MONO_SECURITY
36 MONO_SECURITY := Mono.Security
37 LIB_MCS_FLAGS += -d:MONO_SECURITY_ALIAS
38 LIB_REFS += MonoSecurity=Mono.Security
39 else
40 LIB_MCS_FLAGS += -d:INSIDE_SYSTEM
41 endif
43 ifndef MOBILE_PROFILE
44 LIB_MCS_FLAGS += -d:CODEDOM
45 TEST_LIB_REFS = $(MONO_SECURITY) System.Data System.Xml System.Core System.Configuration
47 ifndef NO_SYSTEM_DRAWING_DEPENDENCY
48 TEST_LIB_REFS += System.Drawing
49 endif
51 else
52 LIB_MCS_FLAGS += -nowarn:618
53 TEST_LIB_REFS = $(MONO_SECURITY) System.Data System.Xml System.Core
54 endif
56 TEST_MCS_FLAGS = -nowarn:618,672,219,67,169,612 \
57 $(foreach f, $(TEST_RESOURCES), -resource:$(f),$(notdir $(f)))
59 TEST_NUNITLITE_APP_CONFIG_GLOBAL=Test/test-config-file
61 REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,SYSTEM_NAMESPACE,MONO,PLATFORM_UNIX
62 ifndef NO_PROCESS_START
63 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_PROCESS_START
64 TEST_MCS_FLAGS += -d:MONO_FEATURE_PROCESS_START
65 endif
67 ifdef MONO_FEATURE_APPLETLS
68 LIB_MCS_FLAGS += -d:MONO_FEATURE_APPLETLS
69 endif
71 ifndef AOT_FRIENDLY_PROFILE
72 LIB_MCS_FLAGS += -d:FEATURE_COMPILED
73 endif
75 ifdef ONLY_APPLETLS
76 LIB_MCS_FLAGS += -d:ONLY_APPLETLS
77 endif
79 ifndef PROFILE_DISABLE_BTLS
80 ifdef HAVE_BTLS
82 LIB_MCS_FLAGS += -d:MONO_FEATURE_BTLS
84 endif
85 endif
87 ifndef NO_THREAD_ABORT
88 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
89 TEST_MCS_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
90 endif
92 ifndef NO_THREAD_SUSPEND_RESUME
93 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME
94 TEST_MCS_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME
95 endif
97 ifndef NO_MULTIPLE_APPDOMAINS
98 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_MULTIPLE_APPDOMAINS
99 TEST_MCS_FLAGS += -d:MONO_FEATURE_MULTIPLE_APPDOMAINS
100 endif
102 TXT_RESOURCE_STRINGS = ../referencesource/System/System.txt
105 API_BIN_REFS := System.Net.Http System.Xml
107 ifndef MOBILE_PROFILE
108 API_BIN_REFS += System.Configuration
109 LIB_MCS_FLAGS += -d:CONFIGURATION_DEP
110 endif
112 EXTRA_DISTFILES = \
113 common.sources \
114 common_networking.sources \
115 corefx.unix.sources \
116 Test/test-config-file \
117 Test/System.Security.Cryptography.X509Certificates/pkits/Makefile \
118 Test/System.Security.Cryptography.X509Certificates/pkits/README \
119 Test/System.Security.Cryptography.X509Certificates/pkits/x509build.cs \
120 $(RESOURCE_FILES) \
121 $(TEST_RESOURCES)
123 include ../../build/library.make
125 $(test_lib_output): $(TEST_RESOURCES) $(test_lib_dir)
127 # Helper target to run the perl regex test suite
128 regex-check:
129 $(MAKE) check FIXTURE=System.Text.RegularExpressions.PerlTest