mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-04 16:39:39 +00:00
4fc3aa6ef4
AES128 support was added since nettle version 3.0 ../subprojects/gst-plugins-bad/ext/hls/gsthlsdemux.h:110:10: error: field ‘ctx’ has incomplete type struct CBC_CTX (struct aes128_ctx, AES_BLOCK_SIZE) aes_ctx;
67 lines
1.8 KiB
Meson
67 lines
1.8 KiB
Meson
hls_sources = [
|
|
'gsthlsdemux.c',
|
|
'gsthlsdemux-util.c',
|
|
'gsthlsplugin.c',
|
|
'gsthlssink.c',
|
|
'gsthlssink2.c',
|
|
'gstm3u8playlist.c',
|
|
'm3u8.c',
|
|
]
|
|
|
|
hls_cargs = ['-DGST_USE_UNSTABLE_API']
|
|
|
|
hls_crypto = get_option('hls-crypto')
|
|
hls_option = get_option('hls')
|
|
hls_crypto_dep = dependency('', required : false)
|
|
# used for unit test
|
|
hls_dep = dependency('', required : false)
|
|
|
|
if hls_option.disabled()
|
|
subdir_done()
|
|
endif
|
|
|
|
if ['auto', 'nettle'].contains(hls_crypto)
|
|
hls_crypto_dep = dependency('nettle', version : '>= 3.0', required : false)
|
|
if hls_crypto_dep.found()
|
|
hls_cargs += ['-DHAVE_NETTLE']
|
|
endif
|
|
endif
|
|
|
|
if not hls_crypto_dep.found() and ['auto', 'libgcrypt'].contains(hls_crypto)
|
|
hls_crypto_dep = cc.find_library('gcrypt', required : false)
|
|
if hls_crypto_dep.found()
|
|
hls_cargs += ['-DHAVE_LIBGCRYPT']
|
|
endif
|
|
endif
|
|
|
|
if not hls_crypto_dep.found() and ['auto', 'openssl'].contains(hls_crypto)
|
|
hls_crypto_dep = dependency('openssl', required : false)
|
|
if hls_crypto_dep.found()
|
|
hls_cargs += ['-DHAVE_OPENSSL']
|
|
endif
|
|
endif
|
|
|
|
if not hls_crypto_dep.found()
|
|
if hls_crypto == 'auto'
|
|
message('Enable HLS plugin enable without crypto')
|
|
elif hls_option.enabled()
|
|
error('HLS plugin enabled with crypto, but crypto library "@0@" not found'.format(hls_crypto))
|
|
else
|
|
subdir_done()
|
|
endif
|
|
endif
|
|
|
|
gsthls = library('gsthls',
|
|
hls_sources,
|
|
c_args : gst_plugins_bad_args + hls_cargs,
|
|
link_args : noseh_link_args,
|
|
include_directories : [configinc],
|
|
dependencies : [gstpbutils_dep, gsttag_dep, gstvideo_dep,
|
|
gstadaptivedemux_dep, gsturidownloader_dep,
|
|
hls_crypto_dep, gio_dep, libm],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
pkgconfig.generate(gsthls, install_dir : plugins_pkgconfig_install_dir)
|
|
plugins += [gsthls]
|
|
hls_dep = declare_dependency(include_directories : include_directories('.'))
|