mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
da198e59b2
This fixes, among other things, a compiler warning with clang. Also add static assertions that our own enum values match with the ones from libaom. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4223>
22 lines
725 B
Meson
22 lines
725 B
Meson
aom_dep = dependency('aom', required: get_option('aom'))
|
|
aom3_dep = dependency('aom', version: '>= 3', required: get_option('aom'))
|
|
aom3_2_dep = dependency('aom', version: '>= 3.2', required: get_option('aom'))
|
|
if aom_dep.found()
|
|
aom_defines = []
|
|
if aom3_dep.found()
|
|
aom_defines += ['-DHAVE_LIBAOM_3']
|
|
endif
|
|
if aom3_2_dep.found()
|
|
aom_defines += ['-DHAVE_LIBAOM_3_2']
|
|
endif
|
|
|
|
gstaom = library('gstaom',
|
|
['gstaom.c', 'gstav1enc.c', 'gstav1dec.c', 'gstav1utils.c'],
|
|
c_args : gst_plugins_bad_args + aom_defines,
|
|
include_directories : [configinc],
|
|
dependencies : [gstpbutils_dep, gstvideo_dep, aom_dep],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
plugins += [gstaom]
|
|
endif
|