This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
/
Makefile.am
63 lines (49 loc) · 2.03 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
assembly = Controls.Data.Test
SDK_SRCDIR=$(srcdir)/../../../../class/Microsoft.SilverlightControls/SDKControls/Data/test
CLEANFILES = \
$(srcdir)/App.xaml.g.cs \
$(assembly).xap \
test.dll \
test.dll.mdb \
test.g.resources
REFERENCES = \
-r:$(srcdir)/../Microsoft.Silverlight.Testing.dll \
-r:$(srcdir)/../Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll \
-r:$(srcdir)/../Controls.Test.Common/Controls.Test.Common.dll \
-r:$(srcdir)/../System.Windows.Controls.Data \
-r:$(srcdir)/../System.Windows.Controls \
-r:$(srcdir)/../System.Xml.Linq.dll \
-r:$(srcdir)/../Mono.Moonlight.UnitTesting.dll \
-r:System.Core \
-r:System \
-r:System.Xml \
-r:System.Net \
-r:System.Windows
CSCFLAGS = /codepage:65001 -d:SILVERLIGHT -d:MOONLIGHT -target:library -debug+ -noconfig $(REFERENCES)
SMCS = mcs -nostdlib -lib:../../../../class/lib/2.1 -r:mscorlib.dll $(CSCFLAGS)
FILES= $(shell cat $(srcdir)/$(assembly).sources)
SOURCES = $(foreach file,$(FILES),$(SDK_SRCDIR)/$(file))
SOURCES += $(srcdir)/App.xaml.g.cs
KEYFILE = $(SDK_SRCDIR)/../../MixControls.snk
MANIFEST = $(SDK_SRCDIR)/AppManifest.xaml
$(assembly).sources: $(SOURCES) $(assembly).sources
ls $(SOURCES) | grep -v aspx > $@
App.xaml.g.cs:
$(SYSTEM_MONO) --debug $(top_builddir)/tools/xamlg/xamlg.exe $(SDK_SRCDIR)/App.xaml,$(srcdir)/App.xaml.g.cs
test.g.resources:
$(SYSTEM_MONO) --debug $(top_builddir)/tools/respack/respack.exe test.g.resources $(SDK_SRCDIR)/App.xaml,app.xaml
test.dll: test.g.resources $(SOURCES)
$(SMCS) -out:test.dll $(SOURCES) -keyfile:$(KEYFILE) -res:test.g.resources
$(assembly).xap: test.dll
rm -f $(assembly).xap
zip -j $(assembly).xap \
test.dll* \
$(MANIFEST) \
$(srcdir)/../Controls.Test.Common/Controls.Test.Common.dll* \
$(srcdir)/../Microsoft.Silverlight.Testing.dll* \
$(srcdir)/../Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll* \
$(srcdir)/../System.Windows.Controls.Data.dll* \
$(srcdir)/../System.Xml.Linq.dll* \
$(srcdir)/../Mono.Moonlight.UnitTesting.dll*
all-local: $(assembly).xap
install: