Merge pull request #1857 from slluis/fix-assembly-resolver
[mono.git] / mcs / class / System.XML / Makefile
1 thisdir = class/System.XML
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = System.Xml.dll
6
7 lib_file := $(wildcard ../lib/$(PROFILE)/System.Xml.dll)
8 ifndef lib_file
9 USE_BOOT_COMPILE = yes
10 endif
11
12 ifdef USE_BOOT_COMPILE
13 LIBRARY_COMPILE = $(BOOT_COMPILE)
14 endif
15
16 RESOURCE_STRINGS = \
17         ../../../external/referencesource/System.Xml/System.Xml.txt \
18         ../../../external/referencesource/System.Data.SqlXml/System.Xml.Utils.txt
19
20 PROFILE_ANY_MOBILE := $(filter monotouch monotouch_runtime monodroid xammac mobile mobile_static, $(PROFILE))
21
22 LIB_REFS = System
23 LIB_MCS_FLAGS = -r:$(corlib)  -nowarn:219,414,649,1717 -unsafe -d:ASYNC
24
25 ifeq (2.1, $(FRAMEWORK_VERSION))
26 LIB_MCS_FLAGS += -d:AGCLR -d:NET_2_1_HACK -d:DISABLE_XSLT_COMPILER -d:DISABLE_XSLT_SCRIPT,MONO_HYBRID_SYSTEM_XML -d:DISABLE_CAS_USE
27 endif
28 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169 -r:System.Data.dll -r:System.Core.dll
29
30 ifndef PROFILE_ANY_MOBILE
31 FINAL_MCS_FLAGS = -r:System.Configuration.dll -d:CONFIGURATION_DEP
32 endif
33
34 ifneq (bare/,$(intermediate))
35 LIB_MCS_FLAGS += $(FINAL_MCS_FLAGS)
36 endif
37
38 LOCAL_MCS_FLAGS += -lib:$(bare_libdir)
39
40 nist_dom_files = \
41         ChangeLog ITest.cs readme.txt util.cs \
42         fundamental/ChangeLog \
43         files/ChangeLog files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
44
45 xmlfiles_files = \
46         ChangeLog nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
47         xsl/ChangeLog xsl/empty.xsl \
48         XsdValidation/ChangeLog XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
49         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
50
51 EXTRA_DISTFILES = \
52         $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
53         $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
54         Test/ChangeLog                  \
55         Test/Microsoft.Test.csproj      \
56         Test/Mono.Test.csproj           \
57         Test/MonoMicro.Test.csproj      \
58         Test/XmlFiles/76102.xml         \
59         Test/XmlFiles/79683.dtd         \
60         Test/XmlFiles/496192.xml        \
61         Test/XmlFiles/*.xsd     \
62         $(wildcard Test/XmlFiles/xsd/*.xml) \
63         $(wildcard Test/XmlFiles/xsd/*.xsd) \
64         $(wildcard Test/XmlFiles/xsl/*.xml) \
65         $(wildcard Test/XmlFiles/xsl/*.xsl) \
66         Test/XmlFiles/xsl/current-in-select.ref \
67         Test/XmlFiles/xsl/ChangeLog \
68         $(xmlfiles_files:%=Test/XmlFiles/%) \
69         $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
70
71 include ../../build/library.make
72
73 ifeq (bare/,$(intermediate))
74 build-bare:
75 else
76 $(bare_libdir)/System.Xml.dll:
77         $(MAKE) intermediate=bare/ $(bare_libdir)/System.Xml.dll
78 endif
79
80 system_xml_library_deps :=                              \
81         $(bare_libdir)/System.dll                       \
82         $(bare_libdir)/System.Xml.dll
83
84 ifndef PROFILE_ANY_MOBILE
85 system_xml_library_deps += $(the_libdir_base)System.Configuration.dll
86 endif
87
88 artifacts = $(system_xml_library_deps)  \
89         $(the_libdir_base)System.Configuration.dll
90
91 .NOTPARALLEL: $(artifacts)
92
93 CLEAN_FILES = $(bare_libdir)/System.Xml.dll $(bare_libdir)/System.Xml.dll.pdb
94 $(the_libdir_base)System.Xml.dll: $(system_xml_library_deps) 
95 $(bare_libdir)/System.dll:
96         (cd ../System; $(MAKE) $@)
97 $(bare_libdir)/System.Xml.dll: $(bare_libdir)/System.dll 
98
99 $(the_libdir_base)System.Configuration.dll:
100         (cd ../System.Configuration; $(MAKE) $@)
101
102
103 ifndef intermediate
104 ifneq ($(PROFILE),basic)
105 csproj-local:
106         $(MAKE) csproj-local intermediate=bare/
107 endif
108 endif