8a27305557b99afbbaa7ac5687c823e4d00a77ed
[profile/ivi/gstreamer-vaapi.git] / tests / Makefile.am
1 noinst_PROGRAMS =       \
2         test-decode     \
3         test-display    \
4         test-surfaces   \
5         test-windows    \
6         $(NULL)
7
8 if USE_GLX
9 noinst_PROGRAMS +=      \
10         test-textures   \
11         $(NULL)
12 endif
13
14 TEST_CFLAGS             = $(LIBVA_CFLAGS) -I$(top_srcdir)/gst-libs $(GST_CFLAGS) -DGST_USE_UNSTABLE_API
15 TEST_X11_CFLAGS         = -DUSE_X11 $(X11_CFLAGS)
16 TEST_GLX_CFLAGS         = -DUSE_GLX $(GLX_CFLAGS)
17 TEST_MIX_CFLAGS         = $(TEST_X11_CFLAGS)
18 if USE_GLX
19 TEST_MIX_CFLAGS         += $(TEST_GLX_CFLAGS)
20 endif
21
22 TEST_LIBS = \
23         $(GST_LIBS) \
24         $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-@GST_MAJORMINOR@.la
25
26 TEST_X11_LIBS = \
27         $(X11_LIBS) \
28         $(GST_LIBS) \
29         $(LIBVA_X11_LIBS) \
30         $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-x11-@GST_MAJORMINOR@.la
31
32 TEST_GLX_LIBS = \
33         $(GLX_LIBS) \
34         $(GST_LIBS) \
35         $(LIBVA_GLX_LIBS) \
36         $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-glx-@GST_MAJORMINOR@.la
37
38 TEST_MIX_LIBS           = $(TEST_X11_LIBS)
39 if USE_GLX
40 TEST_MIX_LIBS           += $(TEST_GLX_LIBS)
41 endif
42
43 test_codecs_source_c    = test-mpeg2.c test-h264.c test-vc1.c
44 test_codecs_source_h    = $(test_codecs_source_c:%.c=%.h)
45
46 test_decode_SOURCES     = test-decode.c $(test_codecs_source_c)
47 test_decode_CFLAGS      = $(TEST_CFLAGS) $(TEST_X11_CFLAGS)
48 test_decode_LDADD       = $(TEST_LIBS) $(TEST_X11_LIBS)
49
50 test_display_SOURCES    = test-display.c
51 test_display_CFLAGS     = $(TEST_CFLAGS) $(TEST_MIX_CFLAGS)
52 test_display_LDADD      = $(TEST_LIBS) $(TEST_MIX_LIBS)
53
54 test_surfaces_SOURCES   = test-surfaces.c
55 test_surfaces_CFLAGS    = $(TEST_CFLAGS) $(TEST_X11_CFLAGS)
56 test_surfaces_LDADD     = $(TEST_LIBS) $(TEST_X11_LIBS)
57
58 test_windows_SOURCES    = test-windows.c image.c
59 test_windows_CFLAGS     = $(TEST_CFLAGS) $(TEST_X11_CFLAGS)
60 test_windows_LDADD      = $(TEST_LIBS) $(TEST_X11_LIBS)
61
62 test_textures_SOURCES   = test-textures.c image.c
63 test_textures_CFLAGS    = $(TEST_CFLAGS) $(TEST_GLX_CFLAGS)
64 test_textures_LDADD     = $(TEST_LIBS) $(TEST_GLX_LIBS)
65
66 EXTRA_DIST = \
67         image.h                 \
68         test-decode.h           \
69         $(test_codecs_source_c) \
70         $(test_codecs_source_h) \
71         $(NULL)
72
73 # Extra clean files so that maintainer-clean removes *everything*
74 MAINTAINERCLEANFILES = Makefile.in