2018-07-27 13:29:23 +00:00
|
|
|
aom_dep = dependency('aom', required: get_option('aom'))
|
2023-03-19 16:26:56 +00:00
|
|
|
aom3_dep = dependency('aom', version: '>= 3', required: get_option('aom'))
|
|
|
|
aom3_2_dep = dependency('aom', version: '>= 3.2', required: get_option('aom'))
|
2017-06-27 22:50:41 +00:00
|
|
|
if aom_dep.found()
|
2023-03-19 16:26:56 +00:00
|
|
|
aom_defines = []
|
|
|
|
if aom3_dep.found()
|
|
|
|
aom_defines += ['-DHAVE_LIBAOM_3']
|
|
|
|
endif
|
|
|
|
if aom3_2_dep.found()
|
|
|
|
aom_defines += ['-DHAVE_LIBAOM_3_2']
|
|
|
|
endif
|
|
|
|
|
2017-06-27 22:50:41 +00:00
|
|
|
gstaom = library('gstaom',
|
2018-07-30 14:31:00 +00:00
|
|
|
['gstaom.c', 'gstav1enc.c', 'gstav1dec.c', 'gstav1utils.c'],
|
2023-03-19 16:26:56 +00:00
|
|
|
c_args : gst_plugins_bad_args + aom_defines,
|
2017-06-27 22:50:41 +00:00
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstpbutils_dep, gstvideo_dep, aom_dep],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2019-05-18 11:09:18 +00:00
|
|
|
plugins += [gstaom]
|
2017-06-27 22:50:41 +00:00
|
|
|
endif
|