Updated Vector Space Zero errors
[moon.git] / class / Moon.Windows.Desktop / Makefile.am
blobb040c63a72961ce50dae5590efca96c6afbafa2a
1 assembly = Moon.Windows.Desktop
3 NET_2_1_ASSEMBLY_DEPS=-r:System.Runtime.Serialization.dll
4 NET_3_0_ASSEMBLY_DEPS=
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
12 endif
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
24 endif
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)  \
39         Assembly/ChangeLog                      \
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
50 clean-local:
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
56 install-desktop:
57         $(GACUTIL) /i $(assemblydesktop) /f /package moonlight
58 else
59 install-desktop:
60 endif
62 install-data-local: install-desktop
64 uninstall-local:
65         $(GACUTIL) /u $(assembly)
67 check-code: check-static check-dynamic
69 check-static:
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
72         > check-static
74 check-dynamic:
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