b7c5e0e4f0
The IPA module signing mechanism relies on openssl to generate keys and sign the module. If openssl is not found on the system, the build will fail. Make the dependency optional by detecting openssl, and skip generation of signatures if openssl isn't found. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
20 lines
685 B
Meson
20 lines
685 B
Meson
ipa_name = 'ipa_vimc'
|
|
|
|
mod = shared_module(ipa_name,
|
|
'vimc.cpp',
|
|
name_prefix : '',
|
|
include_directories : [ipa_includes, libipa_includes],
|
|
dependencies : libcamera_dep,
|
|
link_with : libipa,
|
|
install : true,
|
|
install_dir : ipa_install_dir)
|
|
|
|
if ipa_sign_module
|
|
custom_target(ipa_name + '.so.sign',
|
|
input : mod,
|
|
output : ipa_name + '.so.sign',
|
|
command : [ ipa_sign, ipa_priv_key, '@INPUT@', '@OUTPUT@' ],
|
|
install : true,
|
|
install_dir : ipa_install_dir)
|
|
endif
|