meson: Add libdw option to control libdw dependency
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> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user