Merge branch 'move_subdir_editing-services' into tizen_gst_1.19.2_mono
[platform/upstream/gstreamer.git] / subprojects / gstreamer-vaapi / tests / internal / meson.build
1 libdecutils_sources = [
2   'decoder.c',
3   'test-h264.c',
4   'test-jpeg.c',
5   'test-mpeg2.c',
6   'test-mpeg4.c',
7   'test-vc1.c',
8 ]
9
10 libdecutils_headers = [
11   'decoder.h',
12   'test-h264.h',
13   'test-jpeg.h',
14   'test-mpeg2.h',
15   'test-mpeg4.h',
16   'test-vc1.h',
17 ]
18
19 libutils_sources = [
20   'codec.c',
21   'image.c',
22   'output.c',
23   'test-subpicture-data.c',
24   'y4mreader.c',
25 ]
26
27 libutils_headers = [
28   'codec.h',
29   'image.h',
30   'output.h',
31   'test-subpicture-data.h',
32   'y4mreader.h',
33 ]
34
35 test_examples = [
36   'simple-decoder',
37   'test-decode',
38   'test-display',
39   'test-filter',
40   'test-surfaces',
41   'test-windows',
42   'test-subpicture',
43 ]
44
45 if USE_ENCODERS
46   test_examples += [ 'simple-encoder' ]
47 endif
48
49 if USE_GLX
50   test_examples += [ 'test-textures' ]
51 endif
52
53 libutils = static_library('libutils',
54   libutils_sources + libutils_headers,
55   c_args : gstreamer_vaapi_args,
56   include_directories: [configinc, libsinc],
57   dependencies : gstlibvaapi_deps,
58   install: false)
59
60 libdecutils = static_library('libdecutils',
61   libdecutils_sources + libdecutils_headers,
62   c_args : gstreamer_vaapi_args,
63   include_directories: [configinc, libsinc],
64   dependencies : gstlibvaapi_deps,
65   install: false)
66
67 foreach example : test_examples
68   executable(example, '@0@.c'.format(example),
69     c_args : gstreamer_vaapi_args,
70     include_directories: [configinc, libsinc],
71     dependencies : [gst_dep, libva_dep,  gstlibvaapi_dep],
72     link_with: [libutils, libdecutils],
73     install: false)
74 endforeach