meson: build h264 fei encoder if possible
[platform/upstream/gstreamer.git] / tests / 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_H264_FEI_ENCODER
50   test_examples += [
51     'test-fei-enc-out',
52     'test-fei-enc-in',
53   ]
54 endif
55
56 if USE_GLX
57   test_examples += [ 'test-textures' ]
58 endif
59
60 libutils = static_library('libutils',
61   libutils_sources + libutils_headers,
62   c_args : gstreamer_vaapi_args,
63   include_directories: [configinc, libsinc],
64   dependencies : gstlibvaapi_deps,
65   install: false)
66
67 libdecutils = static_library('libdecutils',
68   libdecutils_sources + libdecutils_headers,
69   c_args : gstreamer_vaapi_args,
70   include_directories: [configinc, libsinc],
71   dependencies : gstlibvaapi_deps,
72   install: false)
73
74 foreach example : test_examples
75   executable(example, '@0@.c'.format(example),
76     c_args : gstreamer_vaapi_args,
77     include_directories: [configinc, libsinc],
78     dependencies : [gst_dep, libva_dep,  gstlibvaapi_dep],
79     link_with: [libutils, libdecutils],
80     install: false)
81 endforeach
82
83 subdir('elements')