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
9 if INCLUDE_DESKTOP_MANAGED_CODE
10 assemblydesktop = ../lib/moonlight/$(assembly).dll
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
62 $(srcdir)/Test/System.Windows/WebApplicationTest.cs
64 EXTRA_DIST = $(system_windows_browser_sources) \
67 System.Windows.Browser/ChangeLog \
68 System.Windows.Browser.Net/ChangeLog \
69 System.Windows/ChangeLog \
70 System.Windows.Hosting/ChangeLog \
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
84 -s ResolveFromAssemblyStep:Mono.Tuner.MoonlightAssemblyStep,Mono.Tuner
88 -d ../lib/2.1/ -d ../lib/2.1-bootstrap \
89 -a $(assemblysl_raw) \
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
101 -rm -rf $(assemblies)
102 -rm -rf *.dll *.mdb tester.cs
104 if INCLUDE_BROWSER_MANAGED_CODE
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
112 if INCLUDE_DESKTOP_MANAGED_CODE
114 $(GACUTIL) /i $(assemblydesktop) /f /package moonlight
119 install-data-local: install-sl install-desktop
122 $(GACUTIL) /u $(assembly)