Makefile 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. thisdir = class/System.XML
  2. SUBDIRS =
  3. include ../../build/rules.make
  4. LIBRARY = System.Xml.dll
  5. lib_file := $(wildcard ../lib/$(PROFILE)/System.Xml.dll)
  6. ifndef lib_file
  7. USE_BOOT_COMPILE = yes
  8. endif
  9. ifdef USE_BOOT_COMPILE
  10. LIBRARY_COMPILE = $(BOOT_COMPILE)
  11. endif
  12. TXT_RESOURCE_STRINGS = \
  13. ../referencesource/System.Xml/System.Xml.txt \
  14. ../referencesource/System.Data.SqlXml/System.Xml.Utils.txt
  15. LIB_MCS_FLAGS = -nowarn:219,414,649,1717 -unsafe -d:ASYNC
  16. ifeq (2.1, $(FRAMEWORK_VERSION))
  17. LIB_MCS_FLAGS += -d:AGCLR -d:DISABLE_XSLT_COMPILER -d:DISABLE_XSLT_SCRIPT,MONO_HYBRID_SYSTEM_XML -d:DISABLE_CAS_USE
  18. endif
  19. TEST_LIB_REFS = System.Data System.Core
  20. TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169
  21. ifneq (bare/,$(intermediate))
  22. LIB_REFS += secxml/System
  23. ifndef MOBILE_PROFILE
  24. LIB_REFS += System.Configuration
  25. LIB_MCS_FLAGS += -d:CONFIGURATION_DEP
  26. endif
  27. else
  28. LIB_REFS += $(intermediate)System
  29. endif
  30. nist_dom_files = \
  31. ITest.cs readme.txt util.cs \
  32. files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
  33. xmlfiles_files = \
  34. nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
  35. xsl/empty.xsl \
  36. XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
  37. 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
  38. EXTRA_DISTFILES = \
  39. $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
  40. $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
  41. Test/Microsoft.Test.csproj \
  42. Test/Mono.Test.csproj \
  43. Test/MonoMicro.Test.csproj \
  44. Test/XmlFiles/76102.xml \
  45. Test/XmlFiles/79683.dtd \
  46. Test/XmlFiles/496192.xml \
  47. Test/XmlFiles/*.xsd \
  48. $(wildcard Test/XmlFiles/xsd/*.xml) \
  49. $(wildcard Test/XmlFiles/xsd/*.xsd) \
  50. $(wildcard Test/XmlFiles/xsl/*.xml) \
  51. $(wildcard Test/XmlFiles/xsl/*.xsl) \
  52. Test/XmlFiles/xsl/current-in-select.ref \
  53. $(xmlfiles_files:%=Test/XmlFiles/%) \
  54. $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
  55. include ../../build/library.make
  56. ifeq (bare/,$(intermediate))
  57. build-bare:
  58. else
  59. $(bare_libdir)/System.Xml.dll:
  60. $(MAKE) intermediate=bare/ $(bare_libdir)/System.Xml.dll
  61. endif
  62. system_xml_library_deps := \
  63. $(bare_libdir)/System.dll \
  64. $(bare_libdir)/System.Xml.dll
  65. ifndef MOBILE_PROFILE
  66. system_xml_library_deps += $(the_libdir_base)System.Configuration.dll
  67. endif
  68. artifacts = $(system_xml_library_deps) \
  69. $(the_libdir_base)System.Configuration.dll
  70. .NOTPARALLEL: $(artifacts)
  71. CLEAN_FILES = $(bare_libdir)/System.Xml.dll $(bare_libdir)/System.Xml.dll.pdb
  72. $(the_libdir_base)System.Xml.dll: $(system_xml_library_deps)
  73. $(bare_libdir)/System.dll:
  74. (cd ../System; $(MAKE) $@)
  75. $(bare_libdir)/System.Xml.dll: $(bare_libdir)/System.dll
  76. $(the_libdir_base)System.Configuration.dll:
  77. (cd ../System.Configuration; $(MAKE) $@)
  78. ifndef intermediate
  79. ifneq ($(PROFILE),basic)
  80. csproj-local:
  81. $(MAKE) csproj-local intermediate=bare/
  82. endif
  83. endif