1 include $(top_srcdir)/build/autotools/Makefile.am.silent
6 test-texture-material.c \
22 test-cogl-shader-arbfp.c \
23 test-cogl-shader-glsl.c \
26 test-state-animator.c \
31 test-cogl-primitives.c \
32 test-cogl-tex-tile.c \
33 test-cogl-tex-convert.c \
34 test-cogl-tex-foreign.c \
35 test-cogl-tex-getset.c \
36 test-cogl-offscreen.c \
37 test-cogl-tex-polygon.c \
38 test-cogl-multitexture.c \
39 test-stage-read-pixels.c \
41 test-paint-wrapper.c \
42 test-texture-quality.c \
49 test-cairo-flowers.c \
50 test-cogl-vertex-buffer.c \
59 test-cogl-point-sprites.c \
63 UNIT_TESTS += test-pixmap.c
64 UNIT_TESTS += test-devices.c
67 # For convenience, this provides a way to easily run individual unit tests:
68 wrappers: stamp-test-interactive
70 stamp-test-interactive: Makefile test-interactive$(EXEEXT)
71 @wrapper=$(abs_builddir)/wrapper.sh ; \
72 chmod +x $$wrapper && \
73 ( echo "/stamp-test-interactive" ; \
74 echo "/test-interactive" ; \
76 echo ".gitignore" ) > .gitignore ; \
77 for i in $(UNIT_TESTS); \
79 test_bin=$${i%*.c} ; \
80 echo " GEN $$test_bin" ; \
81 ( echo "#!/bin/sh" ; \
82 echo "$$wrapper $$test_bin \$$@" \
83 ) > $$test_bin$(EXEEXT) ; \
84 chmod +x $$test_bin$(EXEEXT) ; \
85 echo "/$$test_bin$(EXEEXT)" >> .gitignore ; \
87 && echo timestamp > $(@F)
90 @for i in $(UNIT_TESTS); \
92 test_bin=$${i%*.c} ; \
93 echo " RM $$test_bin"; \
94 rm -f $$test_bin$(EXEEXT); \
96 && rm -f stamp-test-interactive
98 .PHONY: wrappers clean-wrappers
102 -I$(top_srcdir)/clutter \
103 -I$(top_srcdir)/clutter/cogl \
104 -I$(top_builddir)/clutter \
105 -I$(top_builddir)/clutter/cogl
107 common_ldadd = $(top_builddir)/clutter/libclutter-@CLUTTER_SONAME_INFIX@-@CLUTTER_API_VERSION@.la
109 noinst_PROGRAMS = test-interactive
111 test_interactive_SOURCES = test-main.c $(UNIT_TESTS)
112 test_interactive_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS)
113 test_interactive_CPPFLAGS = \
114 -DTESTS_DATADIR=\""$(abs_top_srcdir)/tests/data"\" \
115 -DG_DISABLE_SINGLE_INCLUDES \
116 -DCOGL_DISABLE_DEPRECATED \
117 -DCLUTTER_DISABLE_DEPRECATED
118 test_interactive_LDFLAGS = -export-dynamic
119 test_interactive_LDADD = $(CLUTTER_LIBS) $(common_ldadd)
121 EXTRA_DIST = wrapper.sh.in
122 DISTCLEANFILES = wrapper.sh .gitignore
124 BUILT_SOURCES = wrappers
126 clean-local: clean-wrappers