2009-12-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
[moon.git] / class / System.Windows.Browser / Makefile.am
blob008af36d75f5d1c5375e6e1fde0f7dc764c00cde
1 assembly = System.Windows.Browser
3 if INCLUDE_BROWSER_MANAGED_CODE
4 assemblysl = ../lib/2.1/$(assembly).dll
5 assemblysl_raw = ../lib/2.1_raw/$(assembly).dll
6 sl_secattr = ../tuning/SecurityAttributes/$(assembly).secattr
7 endif
9 if INCLUDE_DESKTOP_MANAGED_CODE
10 assemblydesktop = ../lib/moonlight/$(assembly).dll
11 endif
13 assemblies = $(assemblysl) $(assemblydesktop)
15 noinst_DATA = $(assemblies)
17 CSCFLAGS = /codepage:65001 -d:NET_1_1 -d:NET_2_0 -debug+ -noconfig -r:System -d:AGCLR -unsafe
19 GMCS = gmcs $(CSCFLAGS) -lib:../lib/moonlight
20 SMCS = MONO_PATH="../lib/2.1:../lib/2.1-bootstrap:$$MONO_PATH" mono --runtime=moonlight --security=temporary-smcs-hack ../lib/2.1/smcs.exe $(CSCFLAGS)
21 GACUTIL = gacutil /gacdir $(DESTDIR)$(prefix)/lib /root $(DESTDIR)$(prefix)/lib
22 monoloc = `pkg-config --variable=libdir mono`/mono/moonlight
23 nunit = -r:$(monoloc)/nunit.framework.dll -r:$(monoloc)/nunit.core.dll -r:$(monoloc)/nunit.util.dll 
25 system_windows_browser_sources =                                        \
26         $(srcdir)/Assembly/AssemblyInfo.cs                                      \
27         $(srcdir)/System.Windows.Browser.Net/BrowserHttpWebRequest.cs           \
28         $(srcdir)/System.Windows.Browser.Net/BrowserHttpWebRequestInternal.cs   \
29         $(srcdir)/System.Windows.Browser.Net/BrowserHttpWebResponse.cs          \
30         $(srcdir)/System.Windows.Browser.Net/BrowserHttpWebAsyncResult.cs               \
31         $(srcdir)/System.Windows.Browser.Net/BrowserHttpWebRequestStream.cs             \
32         $(srcdir)/System.Windows.Browser.Net/BaseDomainPolicy.cs                \
33         $(srcdir)/System.Windows.Browser.Net/ClientAccessPolicy.cs              \
34         $(srcdir)/System.Windows.Browser.Net/ClientAccessPolicyParser.cs        \
35         $(srcdir)/System.Windows.Browser.Net/CrossDomainPolicyManager.cs        \
36         $(srcdir)/System.Windows.Browser.Net/FlashCrossDomainPolicy.cs          \
37         $(srcdir)/System.Windows.Browser.Net/FlashCrossDomainPolicyParser.cs    \
38         $(srcdir)/System.Windows.Browser.Net/ICrossDomainPolicy.cs              \
39         $(srcdir)/System.Windows.Browser.Net/NoAccessPolicy.cs                  \
40         $(srcdir)/System.Windows.Browser.Net/PolicyDownloadPolicy.cs            \
41         $(srcdir)/System.Windows.Browser.Net/SiteOfOriginPolicy.cs              \
42         $(srcdir)/System.Windows.Browser/BrowserInformation.cs                  \
43         $(srcdir)/System.Windows.Browser/HtmlDocument.cs                                \
44         $(srcdir)/System.Windows.Browser/HtmlElement.cs                         \
45         $(srcdir)/System.Windows.Browser/HtmlEventArgs.cs                               \
46         $(srcdir)/System.Windows.Browser/HtmlObject.cs                          \
47         $(srcdir)/System.Windows.Browser/HtmlPage.cs                            \
48         $(srcdir)/System.Windows.Browser/HtmlPopupWindowOptions.cs                              \
49         $(srcdir)/System.Windows.Browser/HtmlWindow.cs                          \
50         $(srcdir)/System.Windows.Browser/HttpUtility.cs                         \
51         $(srcdir)/System.Windows.Browser/MouseButtons.cs                                \
52         $(srcdir)/System.Windows.Browser/ScriptableMemberAttribute.cs                   \
53         $(srcdir)/System.Windows.Browser/ScriptableObjectWrapper.cs                     \
54         $(srcdir)/System.Windows.Browser/ScriptableTypeAttribute.cs                     \
55         $(srcdir)/System.Windows.Browser/ScriptEventHandler.cs                  \
56         $(srcdir)/System.Windows.Browser/ScriptObject.cs                        \
57         $(srcdir)/System.Windows.Browser/ScriptableObjectEventInfo.cs           \
58         $(srcdir)/System.Windows.Browser/ScriptObjectCollection.cs                              \
59         $(srcdir)/System.Windows/ScriptableObjectGenerator.cs
61 test_sources = \
62         $(srcdir)/Test/System.Windows/WebApplicationTest.cs
64 EXTRA_DIST = $(system_windows_browser_sources)                          \
65         $(test_sources)                                                 \
66         Assembly/ChangeLog                                              \
67         System.Windows.Browser/ChangeLog                                \
68         System.Windows.Browser.Net/ChangeLog                            \
69         System.Windows/ChangeLog                                        \
70         System.Windows.Hosting/ChangeLog                                \
71         ChangeLog
73 CLEANFILES =                    \
74         TestResult-net_3_0.log  \
75         TestResult-net_3_0.xml
77 $(assemblysl_raw): $(system_windows_browser_sources) Makefile $(top_builddir)/class/lib/2.1-bootstrap/System.Windows.dll
78         $(SMCS) -target:library -out:$@ $(system_windows_browser_sources) -d:NET_2_1 -r:$(top_builddir)/class/lib/2.1-bootstrap/System.Windows.dll -r:System.Core -r:System.Net -r:System.Xml -keyfile:$(srcdir)/../silverlight.pub -delaysign+
79         sn -q -R $@ $(srcdir)/../mono.snk
81 LINKER = ../lib/tuner/monolinker.exe
83 LINKER_STEPS =  \
84         -s ResolveFromAssemblyStep:Mono.Tuner.MoonlightAssemblyStep,Mono.Tuner
86 LINKER_FLAGS =  \
87         -o ../lib/2.1/  \
88         -d ../lib/2.1/ -d ../lib/2.1-bootstrap \
89         -a $(assemblysl_raw)    \
90         -b true \
91         -m secattrs ../tuning/SecurityAttributes
93 $(assemblysl): $(assemblysl_raw) $(sl_secattr)
94         MONO_PATH="../lib/tuner:$$MONO_PATH" mono --debug $(LINKER) $(LINKER_FLAGS) $(LINKER_STEPS)
95         sn -q -R $@ $(srcdir)/../mono.snk
97 $(assemblydesktop): $(system_windows_browser_sources) Makefile $(top_builddir)/class/lib/moonlight-bootstrap/System.Windows.dll
98         $(GMCS) -target:library -out:$@ $(system_windows_browser_sources) -r:$(top_builddir)/class/lib/moonlight-bootstrap/System.Windows.dll -keyfile:$(srcdir)/../mono.snk
100 clean-local:
101         -rm -rf $(assemblies) 
102         -rm -rf *.dll *.mdb tester.cs
104 if INCLUDE_BROWSER_MANAGED_CODE
105 install-sl:
106         $(INSTALL) -c -m 755  $(assemblysl) $(DESTDIR)$(pkglibdir)/plugin/$(assembly).dll
107         test ! -f $(assemblysl).mdb || $(INSTALL) -c -m 755 $(assemblysl).mdb $(DESTDIR)$(pkglibdir)/plugin/$(assembly).dll.mdb
108 else
109 install-sl:
110 endif
112 if INCLUDE_DESKTOP_MANAGED_CODE
113 install-desktop:
114         $(GACUTIL) /i $(assemblydesktop) /f /package moonlight
115 else
116 install-desktop:
117 endif
119 install-data-local: install-sl install-desktop
121 uninstall-local:
122         $(GACUTIL) /u $(assembly)