tests: image: fix string representation for GstVideoFormat.
[platform/upstream/gstreamer-vaapi.git] / tests / Makefile.am
1 noinst_PROGRAMS = \
2         simple-decoder                  \
3         test-decode                     \
4         test-display                    \
5         test-surfaces                   \
6         test-windows                    \
7         test-subpicture                 \
8         $(NULL)
9
10 if USE_GLX
11 noinst_PROGRAMS += \
12         test-textures                   \
13         $(NULL)
14 endif
15
16 TEST_CFLAGS = \
17         -DGST_USE_UNSTABLE_API          \
18         -I$(top_srcdir)/gst-libs        \
19         -I$(top_builddir)/gst-libs      \
20         $(LIBVA_CFLAGS)                 \
21         $(GST_CFLAGS)                   \
22         $(NULL)
23
24 TEST_LIBS = \
25         $(LIBVA_LIBS)                   \
26         $(GST_LIBS)                     \
27         $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-$(GST_API_VERSION).la
28
29 if USE_DRM
30 TEST_CFLAGS     += $(LIBVA_DRM_CFLAGS)
31 TEST_LIBS       += \
32         $(LIBVA_DRM_LIBS)               \
33         $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-drm-$(GST_API_VERSION).la
34 endif
35
36 if USE_X11
37 TEST_CFLAGS     += $(X11_CFLAGS)
38 TEST_LIBS       += \
39         $(LIBVA_X11_LIBS)               \
40         $(X11_LIBS)                     \
41         $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-x11-$(GST_API_VERSION).la
42 endif
43
44 if USE_GLX
45 TEST_CFLAGS     += $(X11_CFLAGS) $(GL_CFLAGS)
46 TEST_LIBS       += \
47         $(LIBVA_GLX_LIBS)               \
48         $(X11_LIBS)                     \
49         $(GL_LIBS)                      \
50         $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-glx-$(GST_API_VERSION).la
51 endif
52
53 if USE_WAYLAND
54 TEST_CFLAGS     += $(WAYLAND_CFLAGS)
55 TEST_LIBS       += \
56         $(LIBVA_WAYLAND_LIBS)           \
57         $(WAYLAND_LIBS)                 \
58         $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-wayland-$(GST_API_VERSION).la
59 endif
60
61 test_utils_dec_source_c =       \
62         decoder.c       \
63         test-h264.c     \
64         test-jpeg.c     \
65         test-mpeg2.c    \
66         test-mpeg4.c    \
67         test-vc1.c      \
68         $(NULL)
69 test_utils_dec_source_h = $(test_utils_dec_source_c:%.c=%.h) test-decode.h
70
71 test_utils_source_c     = codec.c image.c output.c
72 test_utils_source_h     = codec.h image.h output.h
73
74 noinst_LTLIBRARIES      = libutils.la libutils_dec.la
75 libutils_la_SOURCES     = $(test_utils_source_c)
76 libutils_la_CFLAGS      = $(TEST_CFLAGS)
77 libutils_dec_la_SOURCES = $(test_utils_dec_source_c)
78 libutils_dec_la_CFLAGS  = $(TEST_CFLAGS)
79
80 test_decode_SOURCES     = test-decode.c
81 test_decode_CFLAGS      = $(TEST_CFLAGS)
82 test_decode_LDADD       = libutils.la libutils_dec.la $(TEST_LIBS)
83
84 test_display_SOURCES    = test-display.c
85 test_display_CFLAGS     = $(TEST_CFLAGS)
86 test_display_LDADD      = libutils.la $(TEST_LIBS)
87
88 test_surfaces_SOURCES   = test-surfaces.c
89 test_surfaces_CFLAGS    = $(TEST_CFLAGS) $(GST_VIDEO_CFLAGS)
90 test_surfaces_LDADD     = libutils.la $(TEST_LIBS) $(GST_VIDEO_LIBS) \
91         $(top_builddir)/gst-libs/gst/video/libgstvaapi-videoutils.la
92
93 test_subpicture_SOURCES = test-subpicture.c test-subpicture-data.c
94 test_subpicture_CFLAGS  = $(TEST_CFLAGS) $(GST_VIDEO_CFLAGS)
95 test_subpicture_LDADD   = libutils.la libutils_dec.la $(TEST_LIBS) \
96         $(GST_VIDEO_LIBS)
97
98 test_windows_SOURCES    = test-windows.c
99 test_windows_CFLAGS     = $(TEST_CFLAGS)
100 test_windows_LDADD      = libutils.la $(TEST_LIBS)
101
102 test_textures_SOURCES   = test-textures.c
103 test_textures_CFLAGS    = $(TEST_CFLAGS)
104 test_textures_LDADD     = libutils.la $(TEST_LIBS)
105
106 simple_decoder_source_c = simple-decoder.c
107 simple_decoder_source_h =
108 simple_decoder_SOURCES  = $(simple_decoder_source_c)
109 simple_decoder_CFLAGS   = $(TEST_CFLAGS) $(GST_VIDEO_CFLAGS)
110 simple_decoder_LDADD    = libutils.la $(TEST_LIBS) $(GST_VIDEO_LIBS) \
111         $(top_builddir)/gst-libs/gst/video/libgstvaapi-videoutils.la
112
113 EXTRA_DIST = \
114         test-subpicture-data.h          \
115         $(simple_decoder_source_h)      \
116         $(test_utils_dec_source_h)      \
117         $(test_utils_source_h)          \
118         $(NULL)
119
120 # Extra clean files so that maintainer-clean removes *everything*
121 MAINTAINERCLEANFILES = Makefile.in