Move all the GTK+ test code into its own file, utils.c
[profile/ivi/pixman.git] / test / Makefile.am
1 TEST_LDADD = $(top_builddir)/pixman/libpixman-1.la
2 INCLUDES = -I$(top_srcdir)/pixman -I$(top_builddir)/pixman
3
4 TESTPROGRAMS =                  \
5         region-test             \
6         scaling-test            \
7         fetch-test              \
8         trap-crasher
9
10 fetch_test_LDADD = $(TEST_LDADD)
11 region_test_LDADD = $(TEST_LDADD)
12 scaling_test_LDADD = $(TEST_LDADD)
13 trap_crasher_LDADD = $(TEST_LDADD)
14
15 # GTK using test programs
16
17 if HAVE_GTK
18
19 GTK_LDADD = $(TEST_LDADD) $(GTK_LIBS)
20
21 TESTPROGRAMS +=                 \
22         clip-test               \
23         composite-test          \
24         gradient-test           \
25         trap-test
26
27 noinst_PROGRAMS = $(TESTPROGRAMS)
28
29 INCLUDES += $(GTK_CFLAGS)
30
31 gradient_test_LDADD = $(GTK_LDADD)
32 gradient_test_SOURCES = gradient-test.c utils.c
33
34 composite_test_LDADD = $(GTK_LDADD)
35 composite_test_SOURCES = composite-test.c utils.c
36
37 clip_test_LDADD = $(GTK_LDADD)
38 clip_test_SOURCES = clip-test.c utils.c
39
40 trap_test_LDADD = $(GTK_LDADD)
41 trap_test_SOURCES = trap-test.c utils.c
42
43 endif
44