1 assembly = Moon.Windows.Desktop
3 NET_2_1_ASSEMBLY_DEPS=-r:System.Runtime.Serialization.dll
6 sl_secattr = ../tuning/SecurityAttributes/$(assembly).secattr
8 if INCLUDE_DESKTOP_MANAGED_CODE
9 assemblydesktop = ../lib/moonlight/$(assembly).dll
11 FLAGS_DESKTOP= -r:../lib/moonlight/System.Windows.dll
14 assemblies = $(assemblydesktop)
16 noinst_DATA = $(assemblies)
18 CSCFLAGS = /codepage:65001 -d:SANITY -d:NET_1_1 -d:NET_2_0 -d:MOONLIGHT -debug+ -noconfig -r:System -r:System.Core -r:System.Xml -d:AGCLR -unsafe
20 ## this hack will be dropped once we get this working:
21 ## http://www.mono-project.com/Moonlight/SecurityStatus#Assembly_Loading
22 if MOON_A11Y_INTERNAL_HACK
23 CSCFLAGS += -define:MOON_A11Y_INTERNAL_HACK
26 GMCS = MONO_PATH="../lib/moonlight:$$MONO_PATH" gmcs $(CSCFLAGS) -lib:../lib/moonlight -d:NET_3_0
27 GACUTIL = gacutil /gacdir $(DESTDIR)$(prefix)/lib /root $(DESTDIR)$(prefix)/lib
29 system_windows_sources = \
30 $(srcdir)/Assembly/AssemblyInfo.cs \
31 $(srcdir)/Assembly/MonoTODOAttribute.cs \
32 $(srcdir)/../Consts.cs \
33 $(srcdir)/Moon.Windows.Desktop/Window.cs
35 XAML_RESOURCES = $(srcdir)/themes/generic.xaml,themes/generic.xaml
36 XAML_RESOURCES_DEPS = $(srcdir)/themes/generic.xaml
38 EXTRA_DIST = $(system_windows_sources) \
40 Moon.Windows.Desktop/ChangeLog
42 $(assembly).g.resources: $(XAML_RESOURCES_DEPS)
43 mono $(top_builddir)/tools/respack/respack.exe $@ $(XAML_RESOURCES)
45 $(assemblydesktop): $(system_windows_sources) Makefile $(assembly).g.resources
46 $(GMCS) $(NET_3_0_ASSEMBLY_DEPS) $(FLAGS_DESKTOP) -target:library -out:$@ $(system_windows_sources) \
47 -resource:$(assembly).g.resources \
48 -keyfile:$(srcdir)/../mono.snk
51 -rm -rf $(assemblies) check-static check-dynamic
52 -rm -rf *.exe *.mdb tester.cs
53 -rm -rf $(assembly).g.resources
55 if INCLUDE_DESKTOP_MANAGED_CODE
57 $(GACUTIL) /i $(assemblydesktop) /f /package moonlight
62 install-data-local: install-desktop
65 $(GACUTIL) /u $(assembly)
67 check-code: check-static check-dynamic
70 gmcs $(srcdir)/scripts/checks.cs -r:../lib/moonlight/Moon.Windows.Desktop.dll -out:check-static.exe
71 MONO_PATH=../lib/moonlight:$$MONO_PATH mono --debug check-static.exe
75 gmcs $(srcdir)/scripts/checks.cs -r:../lib/moonlight/Moon.Windows.Desktop.dll -out:check-static.exe
76 mono --debug check-static.exe generate-test-code > tester.cs
77 gmcs tester.cs -r:../lib/moonlight/System.Windows.dll -debug:full -nowarn:219
78 MONO_PATH=../lib/moonlight:$$MONO_PATH mono --debug tester.exe