@@ -42,6 +42,11 @@ option('lc-compliance',
value : 'auto',
description : 'Compile the lc-compliance test application')
+option('libdw',
+ type : 'feature',
+ value : 'auto',
+ description : 'Enable libdw integration for backtrace symbolization')
+
option('libunwind',
type : 'feature',
value : 'auto',
@@ -26,7 +26,7 @@ libcamera_base_internal_sources = files([
'utils.cpp',
])
-libdw = dependency('libdw', required : false)
+libdw = dependency('libdw', required : get_option('libdw'))
libunwind = dependency('libunwind', required : get_option('libunwind'))
if cc.has_header_symbol('execinfo.h', 'backtrace')
Previously it was not possible to disable libdw usage if it was detected. Fix that by adding a meson feature option. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> --- meson_options.txt | 5 +++++ src/libcamera/base/meson.build | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)