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