summaryrefslogtreecommitdiff
path: root/cogl-sharp/Makefile.am
blob: 48073bae66e6415505522cc092a437dbd95671d1 (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
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		\
	Exception.cs		\
	FrameBuffer.cs		\
	_FrameBuffer.cs		\
	Marshaller.cs		\
	Matrix.cs		\
	Object.cs		\
	OnScreen.cs		\
	Pipeline.cs		\
	_Pipeline.cs		\
	PipelineAlphaFunc.cs	\
	PipelineCullFaceMode.cs	\
	PipelineFilter.cs	\
	PipelineWrapMode.cs	\
	PixelFormat.cs		\
	Texture.cs		\
	_Texture.cs		\
	TextureFlags.cs		\
	TextureType.cs		\
	VerticesMode.cs		\
	Winding.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/TestColor.cs	\
	tests/TestMatrix.cs	\
	$(NULL)

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

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