3 include ../../build/rules.make
4 export __SECURITY_BOOTSTRAP_DB=$(topdir)/class/corlib
7 LIBRARY_NAME = mscorlib.dll
8 LIB_MCS_FLAGS = $(RESOURCE_FILES:%=-resource:%)
9 LIBRARY_USE_INTERMEDIATE_FILE = yes
11 ifeq (4.0, $(FRAMEWORK_VERSION))
12 LIB_MCS_FLAGS += --runtime:v4
15 LIBRARY_COMPILE = $(BOOT_COMPILE)
16 LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
19 resources/collation.core.bin \
20 resources/collation.tailoring.bin \
21 resources/collation.cjkCHS.bin \
22 resources/collation.cjkCHT.bin \
23 resources/collation.cjkJA.bin \
24 resources/collation.cjkKO.bin \
25 resources/collation.cjkKOlv2.bin
27 LOCAL_MCS_FLAGS = -unsafe -nostdlib -nowarn:612,618 -d:INSIDE_CORLIB -d:LIBC
30 # System.IO/DirectoryInfoTest.cs needs Mono.Posix
31 TEST_MCS_FLAGS = -debug+ -debug:full -nowarn:168,219,618,672 -unsafe -r:$(topdir)/class/lib/$(PROFILE)/Mono.Posix.dll -define:MONO_DATACONVERTER_STATIC_METHODS
35 Test/resources/MyResources.resources \
36 Test/resources/MyResources.de.resources \
37 Test/resources/Empty.resources \
38 Test/resources/AFile.txt \
39 Test/resources/StreamTest.resources \
40 Test/resources/StreamTest.ja.resources \
41 Test/resources/bug81759.resources \
42 Test/resources/415628.bin \
43 Test/resources/Fergie.GED \
46 include $(topdir)/build/library.make
48 ifdef FIXME_CORLIB_CMP
50 corlib_flags = -unsafe -nostdlib
51 cmplib = $(topdir)/class/lib/$(PROFILE)/corlib_cmp.dll
52 cmppdb = $(cmplib:.dll=.pdb)
53 cmp_response = $(depsdir)/$(PROFILE)_corlib_cmp.dll.response
54 cmp_makefrag = $(depsdir)/$(PROFILE)_corlib_cmp.dll.makefrag
55 cmp_flags = -r:$(PLATFORM_CORLIB) $(corlib_flags)
57 EXTRA_DISTFILES += corlib_cmp.dll.excludes
58 CLEAN_FILES += $(cmplib) $(cmp_response) $(cmp_makefrag) $(cmppdb)
60 $(cmplib): $(cmp_makefrag) $(cmp_response)
61 $(BOOT_COMPILE) $(LIBRARY_FLAGS) $(cmp_flags) -target:library -out:$@ @$(cmp_response)
63 $(cmp_response): $(sourcefile) corlib_cmp.dll.excludes
65 @sort $(sourcefile) corlib_cmp.dll.excludes | uniq -u | $(PLATFORM_CHANGE_SEPARATOR_CMD) >$@
67 $(cmp_makefrag): $(cmp_response)
69 @sed 's,^,$(cmplib): ,' $< >$@
71 # Since we make corlib_cmp on demand, there isn't a real need
72 # to have full dep tracking for it. Also, the generation of this
73 # file is busted on Win32 ('sort' seems to mess up line endings),
74 # leading to a broken build.
76 # -include $(cmp_makefrag)
78 $(cmp_response) $(cmp_makefrag): Makefile $(depsdir)/.stamp
81 vts = VersionTolerantSerialization
82 vtsdir = Test/System.Runtime.Serialization.Formatters.Binary/$(vts)
84 $(MCS) -target:library \
85 $(vtsdir)/$(vts)TestLib/1.0/Address.cs
86 $(MCS) $(test_nunit_ref) \
87 -r:$(vtsdir)/$(vts)TestLib/1.0/Address.dll \
88 $(vtsdir)/BinarySerializationOverVersions.cs
89 cp $(vtsdir)/$(vts)TestLib/1.0/Address.dll $(vtsdir)
90 $(MCS) -target:library \
91 $(vtsdir)/$(vts)TestLib/2.0/Address.cs
92 $(MCS) -target:library \
93 $(vtsdir)/$(vts)TestLib/3.0/Address.cs
94 $(MCS) -target:library \
95 $(vtsdir)/$(vts)TestLib/4.0/Address.cs
96 $(MCS) -target:library \
97 $(vtsdir)/$(vts)TestLib/5.0/Address.cs
98 run-test-vts: test-vts
99 $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(TEST_HARNESS) -noshadow \
100 $(vtsdir)/BinarySerializationOverVersions.exe
102 run-test: run-test-vts
105 $(vtsdir)/$(vts)TestLib/1.0/Address.cs \
106 $(vtsdir)/$(vts)TestLib/2.0/Address.cs \
107 $(vtsdir)/$(vts)TestLib/3.0/Address.cs \
108 $(vtsdir)/$(vts)TestLib/4.0/Address.cs \
109 $(vtsdir)/$(vts)TestLib/5.0/Address.cs \
110 $(vtsdir)/BinarySerializationOverVersions.cs