X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FMakefile;h=b4f825fb50207e186faa7c8f71352286b2c8c4ca;hb=d831fc4ec4c90930026342431641e529b2e34dc8;hp=1e19b0dd5bc02a9678e3d765cbe66b224864fa06;hpb=69f207ee9e4f440e66e98bf5f685807f6527c39d;p=mono.git diff --git a/mcs/class/System/Makefile b/mcs/class/System/Makefile index 1e19b0dd5bc..b4f825fb502 100644 --- a/mcs/class/System/Makefile +++ b/mcs/class/System/Makefile @@ -19,7 +19,17 @@ TEST_RESOURCES = \ Test/System/test-uri-props-manual.txt \ Test/System/test-uri-relative-props.txt -TEST_LIB_REFS = System.Drawing Mono.Security System.Data System.Xml System.Core System.Configuration +ifndef NO_MONO_SECURITY +MONO_SECURITY=Mono.Security +MONO_SECURITY_REF=MonoSecurity=Mono.Security +MONO_SECURITY_DLL=$(the_libdir_base)Mono.Security.dll +endif + +ifndef MOBILE_PROFILE +TEST_LIB_REFS = System.Drawing $(MONO_SECURITY) System.Data System.Xml System.Core System.Configuration +else +TEST_LIB_REFS = $(MONO_SECURITY) System.Data System.Xml System.Core +endif TEST_MCS_FLAGS = -nowarn:618,672,219,67,169,612 \ $(foreach f, $(TEST_RESOURCES), -resource:$(f),$(notdir $(f))) @@ -30,7 +40,15 @@ REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_PROCESS_START TEST_MCS_FLAGS += -d:MONO_FEATURE_PROCESS_START endif -LIB_MCS_FLAGS = -nowarn:618 -d:CONFIGURATION_2_0 $(REFERENCE_SOURCES_FLAGS) -unsafe $(RESOURCE_FILES:%=-resource:%) +LIB_MCS_FLAGS = -d:CONFIGURATION_2_0 $(REFERENCE_SOURCES_FLAGS) -unsafe $(RESOURCE_FILES:%=-resource:%) + +ifndef PROFILE_DISABLE_BTLS +ifdef HAVE_BTLS + +LIB_MCS_FLAGS += -d:MONO_FEATURE_BTLS + +endif +endif ifndef NO_THREAD_ABORT REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_ABORT @@ -42,32 +60,37 @@ REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME TEST_MCS_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME endif -TXT_RESOURCE_STRINGS = ../../../external/referencesource/System/System.txt +ifndef NO_MULTIPLE_APPDOMAINS +REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_MULTIPLE_APPDOMAINS +TEST_MCS_FLAGS += -d:MONO_FEATURE_MULTIPLE_APPDOMAINS +endif + +TXT_RESOURCE_STRINGS = ../referencesource/System/System.txt # # MOBILE_PROFILE needs SECURITY_DEP # ifdef MOBILE_PROFILE -LIB_MCS_FLAGS += -d:INSIDE_SYSTEM -d:SECURITY_DEP +LIB_MCS_FLAGS += -d:INSIDE_SYSTEM -d:SECURITY_DEP -nowarn:618,1635 else -EXTERN_ALIAS_FLAGS = -d:MONO_SECURITY_ALIAS -d:MONO_X509_ALIAS +EXTERN_ALIAS_FLAGS = -d:MONO_SECURITY_ALIAS endif # # Flags used to build the secxml version of System. # ifeq (secxml/, $(intermediate)) -LOCAL_MCS_FLAGS = -lib:$(bare_libdir) -LIB_REFS += bare/System.Xml MonoSecurity=Mono.Security -LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP -r:PrebuiltSystem=$(bare_libdir)/System.dll $(EXTERN_ALIAS_FLAGS) +LOCAL_MCS_FLAGS = +LIB_REFS += bare/System.Xml $(MONO_SECURITY_REF) +LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP $(EXTERN_ALIAS_FLAGS) endif # # Flags used to build the final version of System (when intermediate is not defined) # ifndef intermediate -LIB_REFS += System.Xml MonoSecurity=Mono.Security -LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP -r:PrebuiltSystem=$(secxml_libdir)/System.dll $(EXTERN_ALIAS_FLAGS) +LIB_REFS += System.Xml $(MONO_SECURITY_REF) +LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP $(EXTERN_ALIAS_FLAGS) ifndef MOBILE_PROFILE LIB_REFS += System.Configuration @@ -90,7 +113,7 @@ include ../../build/library.make system_library_deps := \ $(secxml_libdir)/System.dll \ $(the_libdir_base)System.Xml.dll \ - $(the_libdir_base)Mono.Security.dll \ + $(MONO_SECURITY_DLL) \ $(bare_libdir)/System.dll ifndef MOBILE_PROFILE @@ -99,7 +122,7 @@ endif artifacts = $(system_library_deps) \ $(bare_libdir)/System.Xml.dll \ - $(the_libdir_base)Mono.Security.dll \ + $(MONO_SECURITY_DLL) \ $(the_libdir_base)System.Configuration.dll .NOTPARALLEL: $(system_library_deps) @@ -114,7 +137,7 @@ $(bare_libdir)/System.dll: endif ifneq (secxml/,$(intermediate)) -$(secxml_libdir)/System.dll: $(bare_libdir)/System.dll $(bare_libdir)/System.Xml.dll $(the_libdir_base)Mono.Security.dll $(bare_libdir)/System.dll +$(secxml_libdir)/System.dll: $(bare_libdir)/System.dll $(bare_libdir)/System.Xml.dll $(MONO_SECURITY_DLL) $(bare_libdir)/System.dll $(MAKE) intermediate=secxml/ $(secxml_libdir)/System.dll else build-sec: