File: Makefile.am

package info (click to toggle)
mutter 3.30.2-9~deb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 42,456 kB
  • sloc: ansic: 326,624; sh: 5,440; makefile: 2,776; xml: 874; ruby: 149; perl: 142; python: 86; sed: 16
file content (148 lines) | stat: -rw-r--r-- 3,675 bytes parent folder | download
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
UNIT_TESTS = \
	test-texture-slicing.c \
	test-texture-async.c \
	test-texture-material.c \
	test-events.c \
	test-scale.c \
        test-actors.c \
	test-shader-effects.c \
	test-script.c \
	test-grab.c \
	test-cogl-shader-arbfp.c \
	test-cogl-shader-glsl.c \
	test-animator.c \
	test-state.c \
	test-state-animator.c \
	test-fbo.c \
	test-multistage.c \
	test-cogl-tex-tile.c \
	test-cogl-tex-convert.c \
	test-cogl-tex-foreign.c \
	test-cogl-offscreen.c \
	test-cogl-tex-polygon.c \
	test-cogl-multitexture.c \
	test-stage-read-pixels.c \
	test-paint-wrapper.c \
	test-texture-quality.c \
	test-layout.c \
        test-animation.c \
        test-easing.c \
        test-binding-pool.c \
        test-text.c \
        test-text-field.c \
	test-cairo-clock.c \
	test-cairo-flowers.c \
	test-cogl-vertex-buffer.c \
	test-stage-sizing.c \
	test-scrolling.c \
	test-swipe-action.c \
	test-cogl-point-sprites.c \
	test-table-layout.c \
	test-path-constraint.c \
	test-state-script.c \
	test-devices.c \
	test-content.c \
	test-keyframe-transition.c \
	test-bind-constraint.c \
	test-touch-events.c \
	test-rotate-zoom.c

if X11_TESTS
UNIT_TESTS += test-pixmap.c
endif

if PIXBUF_TESTS
UNIT_TESTS += \
	test-image.c
endif

SHEXT = $(EXEEXT)

# For convenience, this provides a way to easily run individual unit tests:
wrappers: stamp-test-interactive
	@true

GIT_IGNORE_EXTRA = \
	stamp-test-interactive \
	stamp-test-unit-names \
	test-unit-names.h \
	$(UNIT_TESTS:.c=$(SHEXT))

stamp-test-interactive: Makefile
	@wrapper=$(abs_builddir)/wrapper.sh ; \
	chmod +x $$wrapper && \
	for i in $(UNIT_TESTS); \
	do \
		test_bin=$${i%*.c} ; \
		echo "  GEN      $$test_bin" ; \
		( echo "#!/bin/sh" ; \
		  echo "$$wrapper $$test_bin \$$@" \
		) > $$test_bin$(SHEXT) ; \
		chmod +x $$test_bin$(SHEXT) ; \
	done \
	&& echo timestamp > $(@F)

test-unit-names.h: stamp-test-unit-names
	@true

stamp-test-unit-names: Makefile
	@( echo "/* ** This file is autogenerated. Do not edit. ** */" ; \
	  echo "" ; \
	  echo "const char *test_unit_names[] = {" ) > test-unit-names.h ; \
	for i in $(UNIT_TESTS); \
	do \
		test_bin=$${i%*.c} ; \
		echo "  \"$$test_bin\"," >> test-unit-names.h ; \
	done \
	&& echo "};" >> test-unit-names.h \
	&& echo timestamp > $(@F)

clean-wrappers:
	@for i in $(UNIT_TESTS); \
	do \
		test_bin=$${i%*.c} ; \
		echo "  RM      $$test_bin"; \
		rm -f $$test_bin$(SHEXT); \
	done \
	&& rm -f stamp-test-unit-names \
	&& rm -f stamp-test-interactive

.PHONY: wrappers clean-wrappers

common_ldadd = \
  $(top_builddir)/clutter/libmutter-clutter-@LIBMUTTER_API_VERSION@.la \
  $(top_builddir)/../cogl/cogl/libmutter-cogl-@LIBMUTTER_API_VERSION@.la

check_PROGRAMS = test-interactive
check_SCRIPTS = wrappers

test_interactive_SOURCES = test-main.c $(UNIT_TESTS)
nodist_test_interactive_SOURCES = test-unit-names.h
test_interactive_CFLAGS = $(CLUTTER_CFLAGS) $(GDK_PIXBUF_CFLAGS)
test_interactive_CPPFLAGS = \
	-DTESTS_DATADIR=\""$(abs_srcdir)"\" \
	-DG_DISABLE_SINGLE_INCLUDES \
	-DGLIB_DISABLE_DEPRECATION_WARNINGS \
	-DCOGL_DISABLE_DEPRECATION_WARNINGS \
	-DCLUTTER_DISABLE_DEPRECATION_WARNINGS \
	-I$(top_srcdir)/../cogl                 \
	-I$(top_builddir)/../cogl               \
	-I$(top_builddir)/../cogl/cogl          \
	-I$(top_srcdir)	\
	-I$(top_builddir) \
	-I$(top_srcdir)/clutter \
	-I$(top_builddir)/clutter
test_interactive_LDFLAGS = -export-dynamic
test_interactive_LDADD = $(CLUTTER_LIBS) $(GDK_PIXBUF_LIBS) $(common_ldadd) $(LIBM)

EXTRA_DIST = \
	wrapper.sh.in \
	test-script.json \
	test-script-signals.json \
	redhand.png

DISTCLEANFILES = wrapper.sh .gitignore test-unit-names.h

BUILT_SOURCES = test-unit-names.h

clean-local: clean-wrappers