summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 314afa951efa9699e3aa27d7887d588c1a851c71 (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
noinst_PROGRAMS = \
	test-decode			\
	test-display			\
	test-surfaces			\
	test-windows			\
	test-subpicture			\
	$(NULL)

if USE_GLX
noinst_PROGRAMS += \
	test-textures			\
	$(NULL)
endif

TEST_CFLAGS = \
	-DGST_USE_UNSTABLE_API		\
	-I$(top_srcdir)/gst-libs	\
	$(LIBVA_CFLAGS)			\
	$(GST_CFLAGS)			\
	$(NULL)

TEST_LIBS = \
	$(LIBVA_LIBS)			\
	$(GST_LIBS)			\
	$(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-@GST_MAJORMINOR@.la

if USE_DRM
TEST_CFLAGS	+= $(LIBVA_DRM_CFLAGS)
TEST_LIBS	+= \
	$(LIBVA_DRM_LIBS)		\
	$(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-drm-@GST_MAJORMINOR@.la
endif

if USE_X11
TEST_CFLAGS	+= $(X11_CFLAGS)
TEST_LIBS	+= \
	$(LIBVA_X11_LIBS)		\
	$(X11_LIBS)			\
	$(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-x11-@GST_MAJORMINOR@.la
endif

if USE_GLX
TEST_CFLAGS	+= $(X11_CFLAGS) $(GL_CFLAGS)
TEST_LIBS	+= \
	$(LIBVA_GLX_LIBS)		\
	$(X11_LIBS)			\
	$(GL_LIBS)			\
	$(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-glx-@GST_MAJORMINOR@.la
endif

if USE_WAYLAND
TEST_CFLAGS	+= $(WAYLAND_CFLAGS)
TEST_LIBS	+= \
	$(LIBVA_WAYLAND_LIBS)		\
	$(WAYLAND_LIBS)			\
	$(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-wayland-@GST_MAJORMINOR@.la
endif

test_codecs_source_c =	\
	test-h264.c	\
	test-jpeg.c	\
	test-mpeg2.c	\
	test-mpeg4.c	\
	test-vc1.c	\
	$(NULL)
test_codecs_source_h	= $(test_codecs_source_c:%.c=%.h) test-decode.h

test_utils_source_c	= image.c output.c $(test_codecs_source_c)
test_utils_source_h	= image.h output.h $(test_codecs_source_h)

noinst_LTLIBRARIES	= libutils.la
libutils_la_SOURCES	= $(test_utils_source_c)
libutils_la_CFLAGS	= $(TEST_CFLAGS)

test_decode_SOURCES	= test-decode.c $(test_codecs_source_c)
test_decode_CFLAGS	= $(TEST_CFLAGS)
test_decode_LDADD	= libutils.la $(TEST_LIBS)

test_display_SOURCES	= test-display.c
test_display_CFLAGS	= $(TEST_CFLAGS)
test_display_LDADD	= libutils.la $(TEST_LIBS)

test_surfaces_SOURCES	= test-surfaces.c
test_surfaces_CFLAGS	= $(TEST_CFLAGS)
test_surfaces_LDADD	= libutils.la $(TEST_LIBS)

test_subpicture_SOURCES = test-subpicture.c test-subpicture-data.c
test_subpicture_CFLAGS  = $(TEST_CFLAGS)
test_subpicture_LDADD   = libutils.la $(TEST_LIBS)

test_windows_SOURCES	= test-windows.c
test_windows_CFLAGS	= $(TEST_CFLAGS)
test_windows_LDADD	= libutils.la $(TEST_LIBS)

test_textures_SOURCES	= test-textures.c
test_textures_CFLAGS	= $(TEST_CFLAGS)
test_textures_LDADD	= libutils.la $(TEST_LIBS)

EXTRA_DIST = \
	test-subpicture-data.h	\
	$(test_utils_source_h)	\
	$(NULL)

# Extra clean files so that maintainer-clean removes *everything*
MAINTAINERCLEANFILES = Makefile.in