gstreamer/subprojects/gst-plugins-bad/ext/aom/meson.build
Sebastian Dröge da198e59b2 av1enc: Use correct enum type with libaom >= 3
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>
2023-03-25 07:12:53 +00:00

23 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