[bcl] Build all XUnit and NUnit tests for monodroid, monotouch, monotouch_tv, monotou...
[mono-project.git] / mcs / class / System.XML / Makefile
blob9afb68bccdbd4117043eed5afbd18c3e17a7ed8e
1 thisdir = class/System.XML
2 SUBDIRS =
3 include ../../build/rules.make
5 LIBRARY = System.Xml.dll
7 TXT_RESOURCE_STRINGS = \
8 ../referencesource/System.Xml/System.Xml.txt \
9 ../referencesource/System.Data.SqlXml/System.Xml.Utils.txt
10 RESX_RESOURCE_STRING = \
11 ../../../external/corefx/src/System.Private.Xml/src/Resources/Strings.resx
13 LIB_MCS_FLAGS = -nowarn:219,414,649,1717 -unsafe -d:ASYNC
15 ifeq (2.1, $(FRAMEWORK_VERSION))
16 LIB_MCS_FLAGS += -d:AGCLR -d:DISABLE_XSLT_COMPILER -d:DISABLE_XSLT_SCRIPT,MONO_HYBRID_SYSTEM_XML -d:DISABLE_CAS_USE
17 endif
19 TEST_LIB_REFS = System.Data System.Core
20 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169
21 XTEST_LIB_REFS = System System.Core System.Xml System.Xml.Linq Facades/System.Threading.Tasks System.Runtime.Serialization Facades/System.Text.Encoding.CodePages
23 ifneq ($(PROFILE),monodroid)
24 ifneq ($(PROFILE),monotouch)
25 ifneq ($(PROFILE),monotouch_tv)
26 ifneq ($(PROFILE),monotouch_watch)
27 XTEST_LIB_REFS += System.Drawing
28 endif
29 endif
30 endif
31 endif
33 LIBRARY_WARN_AS_ERROR = yes
35 LIB_REFS = System
37 ifndef MOBILE_PROFILE
38 API_BIN_REFS += System.Configuration
39 LIB_MCS_FLAGS += -d:CONFIGURATION_DEP
40 endif
42 nist_dom_files = \
43 ITest.cs readme.txt util.cs
45 TEST_RESOURCE_FILES = \
46 Test/System.Xml/nist_dom/files/noDTDXMLfile.xml \
47 Test/System.Xml/nist_dom/files/otherDoc.xml \
48 Test/System.Xml/nist_dom/files/staff.dtd \
49 Test/System.Xml/nist_dom/files/staff.html \
50 Test/System.Xml/nist_dom/files/staff.xml \
51 Test/XmlFiles/xsl/current-in-select.ref \
52 $(wildcard Test/XmlFiles/*.xsd) \
53 $(wildcard Test/XmlFiles/*.xml) \
54 $(wildcard Test/XmlFiles/*.dtd) \
55 $(wildcard Test/XmlFiles/xsd/*.xml) \
56 $(wildcard Test/XmlFiles/xsd/*.xsd) \
57 $(wildcard Test/XmlFiles/xsl/*.xml) \
58 $(wildcard Test/XmlFiles/xsl/*.xsl) \
59 $(wildcard Test/XmlFiles/XsdValidation/*.xsd)
61 TEST_MCS_FLAGS += $(foreach r, $(TEST_RESOURCE_FILES), -resource:$(r),$(r))
63 EXTRA_DISTFILES = \
64 $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
65 $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
66 $(TEST_RESOURCE_FILES) \
67 $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
69 include ../../build/library.make