mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
8b1634930f
In ext/aes/meson.build, the aes_dep will return not-found if -Daes=disabled, regardless of whether openssl is found or not. Thus, we don't need a separate check for the option. This will also ensure that aes_dep is always defined and we can use it in the tests/check/meson.build unit. Fixes #1660 v2: handle -Daes=disabled, too. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2522>
28 lines
717 B
Meson
28 lines
717 B
Meson
aes_sources = [
|
|
'gstaes.c',
|
|
'gstaeshelper.c',
|
|
'gstaesenc.c',
|
|
'gstaesdec.c',
|
|
]
|
|
|
|
aes_cargs = []
|
|
aes_dep = dependency('openssl', required : get_option('aes'))
|
|
if aes_dep.found()
|
|
aes_cargs += ['-DHAVE_OPENSSL']
|
|
else
|
|
subdir_done()
|
|
endif
|
|
|
|
gstaes = library('gstaes',
|
|
aes_sources,
|
|
c_args : gst_plugins_bad_args + aes_cargs,
|
|
link_args : noseh_link_args,
|
|
include_directories : [configinc],
|
|
dependencies : [gstpbutils_dep, gstvideo_dep,
|
|
aes_dep, gio_dep, libm],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
pkgconfig.generate(gstaes, install_dir : plugins_pkgconfig_install_dir)
|
|
plugins += [gstaes]
|
|
aes_dep = declare_dependency(include_directories : include_directories('.'))
|