mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-16 21:36:35 +00:00
7f001b6311
The code in the aes elements assumes OpenSSL >= 1.1.0: - implicit library initialization; - version retrieved with OpenSSL_version(OPENSSL_VERSION); and it fails to build with older versions. Specify the required OpenSSL version explicitly in meson.build so that the elements are excluded on older systems (e.g. Ubuntu 16.04) and the rest of GStreamer can still build. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1067>
28 lines
739 B
Meson
28 lines
739 B
Meson
aes_sources = [
|
|
'gstaes.c',
|
|
'gstaeshelper.c',
|
|
'gstaesenc.c',
|
|
'gstaesdec.c',
|
|
]
|
|
|
|
aes_cargs = []
|
|
aes_dep = dependency('openssl', version : '>= 1.1.0', 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('.'))
|