summaryrefslogtreecommitdiff
path: root/cogl-sharp/Makefile.am
blob: 2648c35eee5aaa950920bd1d2c462bbcab536c21 (plain)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
V_MCS = $(v_MCS_$(V))
v_MCS_ = $(v_MCS_$(AM_DEFAULT_VERBOSITY))
v_MCS_0 = @echo "  MCS   " $@;

assemblydir = $(libdir)/cogl
assembly_DATA = cogl2-sharp.dll cogl2-sharp.dll.config cogl2-sharp.dll.mdb

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = cogl2-sharp.pc

sources =			\
	BufferBit.cs		\
	Color.cs		\
	ColorMask.cs		\
	Context.cs		\
	_Context.cs		\
	DepthTestFunction.cs	\
	Display.cs		\
	_Display.cs		\
	Driver.cs		\
	Exception.cs		\
	FrameBuffer.cs		\
	_FrameBuffer.cs		\
	Marshaller.cs		\
	Matrix.cs		\
	Object.cs		\
	OnScreen.cs		\
	_OnScreen.cs		\
	OnScreenTemplate.cs	\
	_OnScreenTemplate.cs	\
	Pipeline.cs		\
	_Pipeline.cs		\
	PipelineAlphaFunc.cs	\
	PipelineCullFaceMode.cs	\
	PipelineFilter.cs	\
	PipelineWrapMode.cs	\
	PixelFormat.cs		\
	Quaternion.cs		\
	Renderer.cs		\
	_Renderer.cs		\
	RendererConstraint.cs	\
	SwapChain.cs		\
	_SwapChain.cs		\
	Texture.cs		\
	_Texture.cs		\
	TextureFlags.cs		\
	TextureType.cs		\
	VerticesMode.cs		\
	Winding.cs		\
	WinsysID.cs		\
	AssemblyInfo.cs		\
	$(NULL)

cogl2-sharp.dll: $(sources)
	@rm -f cogl2-sharp.dll.mdb
	$(V_MCS)$(MCS) $(CSFLAGS) @$(srcdir)/cogl2-sharp.rsp -debug -unsafe $(sources)

cogl2-sharp.dll.mdb: cogl2-sharp.dll

EXTRA_DIST =			\
	$(sources)		\
	cogl2-sharp.pc.in	\
	$(NULL)

CLEANFILES =			\
	cogl2-sharp.dll		\
	cogl2-sharp.dll.mdb	\
	$(NULL)

DISTCLEANFILES =		\
	AssemblyInfo.cs		\
	$(NULL)

if BUILD_NUNIT_TESTS
noinst_DATA = CoglTests.dll

TESTS = launch-tests

launch-tests: CoglTests.dll

tests_sources =			\
	tests/Config.cs		\
	tests/TestColor.cs	\
	tests/TestMatrix.cs	\
	tests/TestTexture.cs	\
	$(NULL)

CoglTests.dll: $(tests_sources) cogl2-sharp.dll
	$(V_MCS)$(MCS) $(CSFLAGS) @$(srcdir)/CoglTests.rsp -lib:$(top_builddir)/cogl-sharp -r:cogl2-sharp.dll $(MONO_NUNIT_LIBS) $(tests_sources)

REWRITE = sed -e "s|\@testsdir\@|$(srcdir)/tests|g"

tests/Config.cs: tests/Config.cs.in Makefile
	$(AM_V_GEN)$(REWRITE) $@.in > $@.tmp
	@mv $@.tmp $@

EXTRA_DIST += $(tests_sources)
CLEANFILES += CoglTests.dll
endif