summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 80840c2adcf4dc0c5cac3952efc0f50d9d067de3 (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
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
include $(top_srcdir)/glib-tap.mk

AM_CPPFLAGS =				\
	-I$(top_srcdir)			\
	-I$(top_srcdir)/gdk-pixbuf	\
	$(GDK_PIXBUF_DEBUG_FLAGS)	\
	$(GDK_PIXBUF_DEP_CFLAGS)	\
	$(NULL)

DEPS = \
	$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GDK_PIXBUF_API_VERSION).la

LDADD = \
	$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GDK_PIXBUF_API_VERSION).la 	\
	$(GDK_PIXBUF_DEP_LIBS) \
	$(GLIB_LIBS) \
	$(NULL)

noinst_PROGRAMS += 			\
	pixbuf-read			\
	pixbuf-lowmem			\
	pixbuf-random			\
	$(NULL)

test_programs = 			\
	animation			\
	pixbuf-icon-serialize 		\
	pixbuf-randomly-modified	\
	pixbuf-threads			\
	pixbuf-icc			\
	pixbuf-stream			\
	pixbuf-resource			\
	pixbuf-scale			\
	pixbuf-save			\
	$(NULL)

dist_installed_test_data =		\
	test-image.png			\
	test-animation.gif		\
	test-animation.ani		\
	icc-profile.jpeg		\
	icc-profile.png			\
	$(wildcard $(srcdir)/test-images/*)

pixbuf_icc_SOURCES = 			\
	pixbuf-icc.c			\
	test-common.c			\
	test-common.h			\
	$(NULL)

pixbuf_scale_SOURCES = 			\
	pixbuf-scale.c			\
	test-common.c			\
	test-common.h			\
	$(NULL)

pixbuf_stream_SOURCES =			\
	pixbuf-stream.c			\
	test-common.c			\
	test-common.h			\
	$(NULL)

pixbuf_threads_SOURCES =		\
	pixbuf-threads.c		\
	test-common.c			\
	test-common.h			\
	$(NULL)

pixbuf_icon_serialize_SOURCES =		\
	pixbuf-icon-serialize.c		\
	test-common.c			\
	test-common.h			\
	$(NULL)

pixbuf_save_SOURCES =			\
	pixbuf-save.c			\
	test-common.c			\
	test-common.h			\
	$(NULL)

pixbuf_resource_SOURCES = 		\
	pixbuf-resource.c		\
	test-common.c			\
	test-common.h			\
	resources.h			\
	resources.c			\
	$(NULL)

BUILT_SOURCES += resources.h resources.c
DISTCLEANFILES += 			\
	resources.h resources.c 	\
	pixbuf-save-options		\
	pixbuf-randomly-modified-image	\
	pixbuf-save-roundtrip		\
	$(NULL)
	
EXTRA_DIST += resources.gresource.xml
TESTS_ENVIRONMENT += GDK_PIXBUF_MODULE_FILE=$(top_builddir)/gdk-pixbuf/loaders.cache

resources.h: resources.gresource.xml
	$(AM_V_GEN) GDK_PIXBUF_MODULE_FILE=$(top_builddir)/gdk-pixbuf/loaders.cache GDK_PIXBUF_PIXDATA=$(top_builddir)/gdk-pixbuf/gdk-pixbuf-pixdata $(GLIB_COMPILE_RESOURCES) $(srcdir)/resources.gresource.xml --target=$@ --sourcedir=$(srcdir) --generate-header

resources.c: resources.gresource.xml
	$(AM_V_GEN) GDK_PIXBUF_MODULE_FILE=$(top_builddir)/gdk-pixbuf/loaders.cache GDK_PIXBUF_PIXDATA=$(top_builddir)/gdk-pixbuf/gdk-pixbuf-pixdata $(GLIB_COMPILE_RESOURCES) $(srcdir)/resources.gresource.xml --target=$@ --sourcedir=$(srcdir) --generate-source

-include $(top_srcdir)/git.mk