omxvideoenc: drain encoder on ALLOCATION and DRAIN queries
[platform/upstream/gstreamer.git] / omx / meson.build
1 omx_sources = [
2   'gstomx.c',
3   'gstomxallocator.c',
4   'gstomxbufferpool.c',
5   'gstomxvideo.c',
6   'gstomxvideodec.c',
7   'gstomxvideoenc.c',
8   'gstomxaudiodec.c',
9   'gstomxaudioenc.c',
10   'gstomxmjpegdec.c',
11   'gstomxmpeg4videodec.c',
12   'gstomxmpeg2videodec.c',
13   'gstomxh264dec.c',
14   'gstomxh264utils.c',
15   'gstomxh263dec.c',
16   'gstomxwmvdec.c',
17   'gstomxmpeg4videoenc.c',
18   'gstomxh264enc.c',
19   'gstomxh263enc.c',
20   'gstomxaacdec.c',
21   'gstomxmp3dec.c',
22   'gstomxaacenc.c',
23   'gstomxamrdec.c',
24   'gstomxaudiosink.c',
25   'gstomxanalogaudiosink.c',
26   'gstomxhdmiaudiosink.c',
27   'gstomxmp3enc.c',
28 ]
29
30 extra_c_args = []
31
32 if have_omx_vp8
33   omx_sources += 'gstomxvp8dec.c'
34 endif
35
36 if have_omx_theora
37   omx_sources += 'gstomxtheoradec.c'
38 endif
39
40 if have_omx_hevc
41   omx_sources += 'gstomxh265utils.c'
42   omx_sources += 'gstomxh265enc.c'
43   omx_sources += 'gstomxh265dec.c'
44 endif
45
46 optional_deps = []
47 if gstgl_dep.found()
48   optional_deps += gstgl_dep
49   extra_c_args += ['-DGST_USE_UNSTABLE_API']
50 endif
51
52 gstomx = library('gstomx',
53   omx_sources,
54   c_args : gst_omx_args + extra_c_args,
55 #  link_args : noseh_link_args,
56   include_directories : [configinc, omx_inc],
57   dependencies : [gstvideo_dep, gstaudio_dep, gstbase_dep, gstcontroller_dep,
58                   libm, gmodule_dep, gstallocators_dep] + optional_deps,
59   install : true,
60   install_dir : plugins_install_dir,
61 )
62
63 plugins = [gstomx]