Debian Codegraph @

tests/interactive/Makefile.am

raw
1 include $(top_srcdir)/build-aux/autotools/Makefile.am.silent
2
3 UNIT_TESTS = \
4 test-texture-slicing.c \
5 test-texture-async.c \
6 test-texture-material.c \
7 test-events.c \
8 test-scale.c \
9 test-actors.c \
10 test-shader-effects.c \
11 test-script.c \
12 test-grab.c \
13 test-cogl-shader-arbfp.c \
14 test-cogl-shader-glsl.c \
15 test-animator.c \
16 test-state.c \
17 test-state-animator.c \
18 test-fbo.c \
19 test-multistage.c \
20 test-cogl-primitives.c \
21 test-cogl-tex-tile.c \
22 test-cogl-tex-convert.c \
23 test-cogl-tex-foreign.c \
24 test-cogl-tex-getset.c \
25 test-cogl-offscreen.c \
26 test-cogl-tex-polygon.c \
27 test-cogl-multitexture.c \
28 test-stage-read-pixels.c \
29 test-clip.c \
30 test-paint-wrapper.c \
31 test-texture-quality.c \
32 test-layout.c \
33 test-animation.c \
34 test-easing.c \
35 test-binding-pool.c \
36 test-text.c \
37 test-text-field.c \
38 test-cairo-clock.c \
39 test-cairo-flowers.c \
40 test-cogl-vertex-buffer.c \
41 test-stage-sizing.c \
42 test-scrolling.c \
43 test-swipe-action.c \
44 test-cogl-point-sprites.c \
45 test-table-layout.c \
46 test-path-constraint.c \
47 test-state-script.c \
48 test-devices.c \
49 test-content.c \
50 test-keyframe-transition.c \
51 test-bind-constraint.c \
52 test-touch-events.c \
53 test-rotate-zoom.c
54
55 if X11_TESTS
56 UNIT_TESTS += test-pixmap.c
57 endif
58
59 if PIXBUF_TESTS
60 UNIT_TESTS += \
61 test-image.c
62 endif
63
64 if OS_WIN32
65 SHEXT =
66 else
67 SHEXT = $(EXEEXT)
68 endif
69
70 # For convenience, this provides a way to easily run individual unit tests:
71 wrappers: stamp-test-interactive
72 @true
73
74 GIT_IGNORE_EXTRA = \
75 stamp-test-interactive \
76 stamp-test-unit-names \
77 test-unit-names.h \
78 $(UNIT_TESTS:.c=$(SHEXT))
79
80 include $(top_srcdir)/build-aux/autotools/Makefile.am.gitignore
81
82 stamp-test-interactive: Makefile
83 @wrapper=$(abs_builddir)/wrapper.sh ; \
84 chmod +x $$wrapper && \
85 for i in $(UNIT_TESTS); \
86 do \
87 test_bin=$${i%*.c} ; \
88 echo " GEN $$test_bin" ; \
89 ( echo "#!/bin/sh" ; \
90 echo "$$wrapper $$test_bin \$$@" \
91 ) > $$test_bin$(SHEXT) ; \
92 chmod +x $$test_bin$(SHEXT) ; \
93 done \
94 && echo timestamp > $(@F)
95
96 $(top_builddir)/build-aux/win32/test-interactive-clutter.bat: Makefile
97 @echo " GEN test-interactive-clutter.bat" ; \
98 for i in $(UNIT_TESTS); \
99 do \
100 case $$i in \
101 test-pixmap.c|test-devices.c) ;; \
102 *.c) test_bin=$${i%*.c} \
103 ;; \
104 esac; \
105 ( echo "test-interactive-clutter $$test_bin" ) > $$test_bin-clutter.bat ; \
106 ( echo "test-interactive-clutter $$test_bin" ) >> test-interactive-clutter.bat ; \
107 done \
108 && mv -f *.bat $(top_builddir)/build-aux/win32/
109
110 $(top_builddir)/build-aux/win32/test-unit-names.h: test-unit-names.h
111 @echo " CP "; cp test-unit-names.h $(top_builddir)/build-aux/win32/
112
113 test-unit-names.h: stamp-test-unit-names
114 @true
115
116 stamp-test-unit-names: Makefile
117 @( echo "/* ** This file is autogenerated. Do not edit. ** */" ; \
118 echo "" ; \
119 echo "const char *test_unit_names[] = {" ) > test-unit-names.h ; \
120 for i in $(UNIT_TESTS); \
121 do \
122 test_bin=$${i%*.c} ; \
123 echo " \"$$test_bin\"," >> test-unit-names.h ; \
124 done \
125 && echo "};" >> test-unit-names.h \
126 && echo timestamp > $(@F)
127
128 clean-wrappers:
129 @for i in $(UNIT_TESTS); \
130 do \
131 test_bin=$${i%*.c} ; \
132 echo " RM $$test_bin"; \
133 rm -f $$test_bin$(SHEXT); \
134 done \
135 && rm -f $(top_builddir)/build-aux/win32/*.bat \
136 && rm -f stamp-test-unit-names \
137 && rm -f stamp-test-interactive
138
139 .PHONY: wrappers clean-wrappers
140
141 common_ldadd = $(top_builddir)/clutter/libclutter-@[email protected]
142
143 check_PROGRAMS = test-interactive
144 check_SCRIPTS = wrappers $(top_builddir)/build-aux/win32/test-interactive-clutter.bat
145
146 test_interactive_SOURCES = test-main.c $(UNIT_TESTS)
147 nodist_test_interactive_SOURCES = test-unit-names.h
148 test_interactive_CFLAGS = $(CLUTTER_CFLAGS) $(GDK_PIXBUF_CFLAGS)
149 test_interactive_CPPFLAGS = \
150 -DTESTS_DATADIR=\""$(abs_srcdir)"\" \
151 -DG_DISABLE_SINGLE_INCLUDES \
152 -DGLIB_DISABLE_DEPRECATION_WARNINGS \
153 -DCOGL_DISABLE_DEPRECATION_WARNINGS \
154 -DCLUTTER_DISABLE_DEPRECATION_WARNINGS \
155 -I$(top_srcdir) \
156 -I$(top_builddir) \
157 -I$(top_srcdir)/clutter \
158 -I$(top_builddir)/clutter
159 test_interactive_LDFLAGS = -export-dynamic
160 test_interactive_LDADD = $(CLUTTER_LIBS) $(GDK_PIXBUF_LIBS) $(common_ldadd) $(LIBM)
161
162 EXTRA_DIST = \
163 wrapper.sh.in \
164 $(top_builddir)/build-aux/win32/test-unit-names.h \
165 test-script.json \
166 test-script-signals.json \
167 redhand.png
168
169 DISTCLEANFILES = wrapper.sh .gitignore test-unit-names.h
170
171 BUILT_SOURCES = test-unit-names.h
172
173 dist-hook: $(top_builddir)/build-aux/win32/vs9/test-interactive-clutter.vcproj $(top_builddir)/build-aux/win32/vs10/test-interactive-clutter.vcxproj $(top_builddir)/build-aux/win32/vs10/test-interactive-clutter.vcxproj.filters
174
175 $(top_builddir)/build-aux/win32/vs9/test-interactive-clutter.vcproj: $(top_srcdir)/build-aux/win32/vs9/test-interactive-clutter.vcprojin
176 for F in $(test_interactive_SOURCES); do \
177 case $$F in \
178 test-pixmap.c|test-devices.c) ;; \
179 *.c) echo ' <File RelativePath="..\..\..\tests\interactive\'$$F'" />' \
180 ;; \
181 esac; \
182 done > testinteractive.sourcefiles
183 $(CPP) -P - <$(top_srcdir)/build-aux/win32/vs9/test-interactive-clutter.vcprojin >$@
184 rm -f testinteractive.sourcefiles
185
186 $(top_builddir)/build-aux/win32/vs10/test-interactive-clutter.vcxproj: $(top_srcdir)/build-aux/win32/vs10/test-interactive-clutter.vcxprojin
187 for F in $(test_interactive_SOURCES); do \
188 case $$F in \
189 test-pixmap.c|test-devices.c) ;; \
190 *.c) echo ' <ClCompile Include="..\..\..\tests\interactive\'$$F'" />' \
191 ;; \
192 esac; \
193 done > testinteractive.vs10.sourcefiles
194 $(CPP) -P - <$(top_srcdir)/build-aux/win32/vs10/test-interactive-clutter.vcxprojin >$@
195 rm -f testinteractive.vs10.sourcefiles
196
197 $(top_builddir)/build-aux/win32/vs10/test-interactive-clutter.vcxproj.filters: $(top_srcdir)/build-aux/win32/vs10/test-interactive-clutter.vcxproj.filtersin
198 for F in $(test_interactive_SOURCES); do \
199 case $$F in \
200 test-pixmap.c|test-devices.c) ;; \
201 *.c) echo ' <ClCompile Include="..\..\..\tests\interactive\'$$F'"><Filter>Sources</Filter></ClCompile>' \
202 ;; \
203 esac; \
204 done > testinteractive.vs10.sourcefiles.filters
205 $(CPP) -P - <$(top_srcdir)/build-aux/win32/vs10/test-interactive-clutter.vcxproj.filtersin >$@
206 rm -f testinteractive.vs10.sourcefiles.filters
207
208 # Let the VS9/VS10 Project files be cleared out before they are re-expanded...
209 DISTCLEANFILES += \
210 $(top_builddir)/build-aux/win32/test-unit-names.h \
211 $(top_builddir)/build-aux/win32/vs9/test-interactive-clutter.vcproj \
212 $(top_builddir)/build-aux/win32/vs10/test-interactive-clutter.vcxproj \
213 $(top_builddir)/build-aux/win32/vs10/test-interactive-clutter.vcxproj.filters
214
215 EXTRA_DIST += \
216 $(top_builddir)/build-aux/win32/vs9/test-interactive-clutter.vcproj \
217 $(top_builddir)/build-aux/win32/vs10/test-interactive-clutter.vcxproj \
218 $(top_builddir)/build-aux/win32/vs10/test-interactive-clutter.vcxproj.filters
219
220 clean-local: clean-wrappers