1openh264_sources = [
2  'gstopenh264dec.cpp',
3  'gstopenh264enc.cpp',
4  'gstopenh264plugin.c',
5]
6
7openh264_dep = dependency('openh264', version : '>= 1.3.0',
8                          required : get_option('openh264'),
9                          fallback: ['openh264', 'openh264_dep'])
10
11if openh264_dep.found()
12  gstopenh264 = library('gstopenh264',
13    openh264_sources,
14    c_args : gst_plugins_bad_args,
15    link_args : noseh_link_args,
16    include_directories : [configinc],
17    dependencies : [gstvideo_dep, openh264_dep],
18    install : true,
19    install_dir : plugins_install_dir,
20  )
21  pkgconfig.generate(gstopenh264, install_dir : plugins_pkgconfig_install_dir)
22endif
23