If the window manager does not support _NET_ACTIVE_WINDOW, fall back to XGetInputFocus
[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 LIBRARY_USE_INTERMEDIATE_FILE = yes
7
8 lib_file := $(wildcard ../lib/$(PROFILE)/System.Xml.dll)
9 ifndef lib_file
10 USE_BOOT_COMPILE = yes
11 endif
12
13 ifdef USE_BOOT_COMPILE
14 LIBRARY_COMPILE = $(BOOT_COMPILE)
15 endif
16
17 LIB_MCS_FLAGS = -r:$(corlib) -r:System.dll -nowarn:0618,0612,0642
18 ifeq (net_1_1_java, $(PROFILE))
19 LIB_MCS_FLAGS += \
20         -r:System.Xml.dll               \
21         -r:rt.dll                       \
22         -r:J2SE.Helpers.dll             \
23         -r:unresolved.dll               \
24         /lib:../../class/lib/$(PROFILE)
25 endif
26 ifeq (2.1, $(FRAMEWORK_VERSION))
27 LIB_MCS_FLAGS += -unsafe -d:AGCLR -d:NET_2_1_HACK
28 endif
29 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169 -r:System.Data
30
31 ifeq (2.0, $(FRAMEWORK_VERSION))
32 # Happens on net_2_0_bootstrap and net_2_0 profiles
33 CONFIGURATION_DEP := System.Configuration.dll
34 CONFIGURATION_DEP_FILE := $(wildcard ../lib/$(PROFILE)/$(CONFIGURATION_DEP))
35 CYCLIC_DEPS += $(CONFIGURATION_DEP)
36 CYCLIC_DEP_FILES += $(CONFIGURATION_DEP_FILE)
37 TEST_MCS_FLAGS += -r:System.Configuration
38 endif
39
40 ifdef CONFIGURATION_DEP_FILE
41 LIB_MCS_FLAGS += -define:CONFIGURATION_DEP -r:$(CONFIGURATION_DEP)
42 $(the_lib): $(CONFIGURATION_DEP_FILE)
43 endif
44
45 nist_dom_files = \
46         ChangeLog ITest.cs readme.txt util.cs \
47         fundamental/ChangeLog \
48         files/ChangeLog files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
49
50 xmlfiles_files = \
51         ChangeLog nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
52         xsl/ChangeLog xsl/empty.xsl \
53         XsdValidation/ChangeLog XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
54         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
55
56 EXTRA_DISTFILES = \
57         System.Xml.Schema/BUGS-MS.txt   \
58         System.Xml.Schema/BUGS.txt      \
59         $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
60         $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
61         System.Xml.XPath/Parser.jay     \
62         Test/ChangeLog                  \
63         Test/Microsoft.Test.csproj      \
64         Test/Mono.Test.csproj           \
65         Test/MonoMicro.Test.csproj      \
66         Test/XmlFiles/76102.xml         \
67         Test/XmlFiles/79683.dtd         \
68         Test/XmlFiles/496192.xml        \
69         Test/XmlFiles/496192.xsd        \
70         $(wildcard Test/XmlFiles/xsd/*.xml) \
71         $(wildcard Test/XmlFiles/xsd/*.xsd) \
72         $(wildcard Test/XmlFiles/xsl/*.xml) \
73         $(wildcard Test/XmlFiles/xsl/*.xsl) \
74         Test/XmlFiles/xsl/current-in-select.ref \
75         Test/XmlFiles/xsl/ChangeLog \
76         $(xmlfiles_files:%=Test/XmlFiles/%) \
77         $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
78
79 System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
80         $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
81
82 Mono.Xml.Xsl/PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
83         sed "s/\%start Expr/\%start Pattern/" $< >$@
84
85 Mono.Xml.Xsl/PatternParser.cs: Mono.Xml.Xsl/PatternParser.jay $(topdir)/jay/skeleton.cs
86         echo "#define XSLT_PATTERN" > $@
87         $(topdir)/jay/jay -ct $< < $(topdir)/jay/skeleton.cs >>$@
88
89 Mono.Xml.Xsl/PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
90         echo "#define XSLT_PATTERN" > $@
91         cat $< >>$@
92
93 ifneq (moonlight_raw, $(PROFILE))
94 BUILT_SOURCES = System.Xml.XPath/Parser.cs \
95         Mono.Xml.Xsl/PatternParser.cs \
96         Mono.Xml.Xsl/PatternTokenizer.cs
97
98 CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
99         System.Xml.XPath/Parser.cs \
100         Mono.Xml.Xsl/PatternParser.cs \
101         Mono.Xml.Xsl/PatternTokenizer.cs
102 endif
103
104 include ../../build/library.make