X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FMakefile;h=9e072e80c17f0d0ff93b99151a5156a3c3aa7e67;hb=eb2bd2c1a88f0ebe0961174ea74848ffe05b24cb;hp=cfa7564d4b6c19fb604dbcad8f89f3358d09122d;hpb=605c8771b8b7f52204d12640c29dc24bbd0c2ea2;p=mono.git diff --git a/mcs/class/System/Makefile b/mcs/class/System/Makefile index cfa7564d4b6..9e072e80c17 100644 --- a/mcs/class/System/Makefile +++ b/mcs/class/System/Makefile @@ -22,9 +22,12 @@ TEST_RESOURCES = \ TEST_MCS_FLAGS = -r:System.Drawing.dll -r:Mono.Security.dll -r:System.Data -r:System.Xml.dll -r:System.Core.dll -nowarn:618,672,219,67,169,612 \ $(foreach f, $(TEST_RESOURCES), -resource:$(f),$(notdir $(f))) -LIB_MCS_FLAGS = -nowarn:618 -d:CONFIGURATION_2_0 -unsafe $(RESOURCE_FILES:%=-resource:%) +REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,SYSTEM_NAMESPACE,MONO,PLATFORM_UNIX +LIB_MCS_FLAGS = -nowarn:618 -d:CONFIGURATION_2_0 $(REFERENCE_SOURCES_FLAGS) -unsafe $(RESOURCE_FILES:%=-resource:%) TEST_MCS_FLAGS += -r:System.Configuration -PROFILE_ANY_MOBILE := $(filter monotouch monotouch_runtime monodroid xammaci mobile mobile_static, $(PROFILE)) +PROFILE_ANY_MOBILE := $(filter monotouch monotouch_runtime monodroid xammac mobile mobile_static, $(PROFILE)) + +RESOURCE_STRINGS = ../../../external/referencesource/System/System.txt ifeq (2.1, $(FRAMEWORK_VERSION)) LIB_MCS_FLAGS += -d:INSIDE_SYSTEM @@ -44,19 +47,19 @@ endif # ifeq (secxml/, $(intermediate)) LOCAL_MCS_FLAGS = -lib:$(bare_libdir) -LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP -r:PrebuiltSystem=$(bare_libdir)/System.dll -r:System.Xml.dll -r:MonoSecurity=Mono.Security.dll +LIB_REFS += System.Xml MonoSecurity=Mono.Security +LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP -r:PrebuiltSystem=$(bare_libdir)/System.dll endif # # Flags used to build the final version of System (when intermediate is not defined) # ifndef intermediate -LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP -r:PrebuiltSystem=$(secxml_libdir)/System.dll -r:System.Xml.dll -r:MonoSecurity=Mono.Security.dll $(FINAL_MCS_FLAGS) +LIB_REFS += System.Xml MonoSecurity=Mono.Security +LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP -r:PrebuiltSystem=$(secxml_libdir)/System.dll $(FINAL_MCS_FLAGS) endif EXTRA_DISTFILES = \ - System.Text.RegularExpressions/notes.txt \ - System.ComponentModel.Design/Changelog \ Test/test-config-file \ Test/test-config-file-net-2.0 \ Test/System.Security.Cryptography.X509Certificates/pkits/ChangeLog \ @@ -117,25 +120,11 @@ $(build_lib): $(CYCLIC_DEP_FILES) $(test_lib): $(test_lib).config $(TEST_RESOURCES) -ifeq (net_2_0, $(PROFILE)) -$(test_lib).config: Test/test-config-file-net-2.0 - cp $< $@ -else $(test_lib).config: Test/test-config-file cp $< $@ -endif CLEAN_FILES = $(test_lib).config $(bare_libdir)/System.dll $(secxml_libdir)/System.dll $(bare_libdir)/System.dll.mdb $(secxml_libdir)/System.dll.mdb -# run the PKITS tests only if the data was installed/activated, otherwise ignore them -ifeq (net_2_0, $(PROFILE)) -pkits_files := $(wildcard Test/System.Security.Cryptography.X509Certificates/pkits/hint) -ifndef pkits_files -TEST_HARNESS_EXCLUDES = -exclude=$(PLATFORM_TEST_HARNESS_EXCLUDES)NotWorking,ValueAdd,CAS,InetAccess,PKITS -TEST_HARNESS_EXCLUDES_ONDOTNET = -exclude=$(PLATFORM_TEST_HARNESS_EXCLUDES)NotDotNet,CAS,PKITS -endif -endif - # Helper target to run the perl regex test suite regex-check: $(MAKE) check FIXTURE=System.Text.RegularExpressions.PerlTest