include ../../build/rules.make
LIBRARY = System.Xml.dll
-LIBRARY_USE_INTERMEDIATE_FILE = yes
lib_file := $(wildcard ../lib/$(PROFILE)/System.Xml.dll)
ifndef lib_file
LIBRARY_COMPILE = $(BOOT_COMPILE)
endif
-LIB_MCS_FLAGS = -r:$(corlib) -r:System.dll -nowarn:0618,0612,0642
-ifeq (net_1_1_java, $(PROFILE))
-LIB_MCS_FLAGS += \
- -r:System.Xml.dll \
- -r:rt.dll \
- -r:J2SE.Helpers.dll \
- -r:unresolved.dll \
- /lib:../../class/lib/$(PROFILE)
-endif
+RESOURCE_STRINGS = \
+ ../../../external/referencesource/System.Xml/System.Xml.txt \
+ ../../../external/referencesource/System.Data.SqlXml/System.Xml.Utils.txt
+
+PROFILE_ANY_MOBILE := $(filter monotouch monotouch_runtime monodroid xammac mobile mobile_static, $(PROFILE))
+
+LIB_REFS = System
+LIB_MCS_FLAGS = -r:$(corlib) -nowarn:219,414,0612,0642,649 -unsafe -d:ASYNC -d:DISABLE_CAS_USE -d:MONO_HYBRID_SYSTEM_XML
+
ifeq (2.1, $(FRAMEWORK_VERSION))
-LIB_MCS_FLAGS += -unsafe -d:AGCLR -d:NET_2_1_HACK
+LIB_MCS_FLAGS += -unsafe -d:AGCLR -d:NET_2_1_HACK -d:DISABLE_XSLT_COMPILER -d:DISABLE_XSLT_SCRIPT
endif
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169 -r:System.Data.dll -r:System.Core.dll
-ifeq (2.0, $(FRAMEWORK_VERSION))
-# Happens on net_2_0_bootstrap and net_2_0 profiles
-CONFIGURATION_DEP := System.Configuration.dll
-CONFIGURATION_DEP_FILE := $(wildcard ../lib/$(PROFILE)/$(CONFIGURATION_DEP))
-CYCLIC_DEPS += $(CONFIGURATION_DEP)
-CYCLIC_DEP_FILES += $(CONFIGURATION_DEP_FILE)
-TEST_MCS_FLAGS += -r:System.Configuration
+ifndef PROFILE_ANY_MOBILE
+FINAL_MCS_FLAGS = -r:System.Configuration.dll -d:CONFIGURATION_DEP
endif
-ifdef CONFIGURATION_DEP_FILE
-LIB_MCS_FLAGS += -define:CONFIGURATION_DEP -r:$(CONFIGURATION_DEP)
-$(the_lib): $(CONFIGURATION_DEP_FILE)
+ifneq (bare/,$(intermediate))
+LIB_MCS_FLAGS += $(FINAL_MCS_FLAGS)
endif
+LOCAL_MCS_FLAGS += -lib:$(bare_libdir)
+
nist_dom_files = \
ChangeLog ITest.cs readme.txt util.cs \
fundamental/ChangeLog \
xsd/ChangeLog xsd/1.xsd xsd/2.xsd xsd/3.xsd xsd/4.xsd xsd/5.xsd xsd/6.xsd xsd/xml.xsd xsd/81360.xsd xsd/81360inc1.xsd xsd/81360inc2.xsd
EXTRA_DISTFILES = \
- System.Xml.Schema/BUGS-MS.txt \
- System.Xml.Schema/BUGS.txt \
$(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
$(wildcard System.Xml.Serialization/standalone_tests/*.output) \
- System.Xml.XPath/Parser.jay \
Test/ChangeLog \
Test/Microsoft.Test.csproj \
Test/Mono.Test.csproj \
$(xmlfiles_files:%=Test/XmlFiles/%) \
$(nist_dom_files:%=Test/System.Xml/nist_dom/%)
-System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
- (cd System.Xml.XPath; $(topdir)/../jay/jay -ct < $(topdir)/../jay/skeleton.cs Parser.jay >> Parser.cs)
+include ../../build/library.make
-Mono.Xml.Xsl/$(PROFILE)_PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
- sed "s/\%start Expr/\%start Pattern/" $< >$@
+ifeq (bare/,$(intermediate))
+build-bare:
+else
+$(bare_libdir)/System.Xml.dll:
+ $(MAKE) intermediate=bare/ $(bare_libdir)/System.Xml.dll
+endif
-Mono.Xml.Xsl/$(PROFILE)_PatternParser.cs: Mono.Xml.Xsl/$(PROFILE)_PatternParser.jay $(topdir)/jay/skeleton.cs
- echo "#define XSLT_PATTERN" > $@
- (cd Mono.Xml.Xsl; $(topdir)/../jay/jay -ct $(PROFILE)_PatternParser.jay < $(topdir)/../jay/skeleton.cs >> $(PROFILE)_PatternParser.cs)
+system_xml_library_deps := \
+ $(bare_libdir)/System.dll \
+ $(bare_libdir)/System.Xml.dll
-Mono.Xml.Xsl/$(PROFILE)_PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
- echo "#define XSLT_PATTERN" > $@
- cat $< >>$@
+ifndef PROFILE_ANY_MOBILE
+system_xml_library_deps += $(the_libdir_base)System.Configuration.dll
+endif
-ifneq (moonlight_raw, $(PROFILE))
-BUILT_SOURCES = System.Xml.XPath/Parser.cs \
- Mono.Xml.Xsl/$(PROFILE)_PatternParser.cs \
- Mono.Xml.Xsl/$(PROFILE)_PatternTokenizer.cs
+artifacts = $(system_xml_library_deps) \
+ $(the_libdir_base)System.Configuration.dll
-CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
- System.Xml.XPath/Parser.cs \
- Mono.Xml.Xsl/$(PROFILE)_PatternParser.cs \
- Mono.Xml.Xsl/$(PROFILE)_PatternTokenizer.cs
-endif
+.NOTPARALLEL: $(artifacts)
-include ../../build/library.make
+CLEAN_FILES = $(bare_libdir)/System.Xml.dll $(bare_libdir)/System.Xml.dll.pdb
+$(the_libdir_base)System.Xml.dll: $(system_xml_library_deps)
+$(bare_libdir)/System.dll:
+ (cd ../System; $(MAKE) $@)
+$(bare_libdir)/System.Xml.dll: $(bare_libdir)/System.dll
+
+$(the_libdir_base)System.Configuration.dll:
+ (cd ../System.Configuration; $(MAKE) $@)
+
+
+ifndef intermediate
+ifneq ($(PROFILE),basic)
+csproj-local:
+ $(MAKE) csproj-local intermediate=bare/
+endif
+endif