meson: Add support for libunwind
This commit is contained in:
parent
42aaf37241
commit
ee9f6e20de
|
@ -233,6 +233,7 @@ conf_data.set('XvExtension', build_xv)
|
|||
conf_data.set('XvMCExtension', build_xvmc)
|
||||
|
||||
conf_data.set('HAVE_SHA1_IN_' + sha1.to_upper(), '1', description: 'Use @0@ SHA1 functions'.format(sha1))
|
||||
conf_data.set('HAVE_LIBUNWIND', get_option('libunwind'))
|
||||
|
||||
conf_data.set('HAVE_APM', build_apm or build_acpi)
|
||||
conf_data.set('HAVE_ACPI', build_acpi)
|
||||
|
|
|
@ -639,6 +639,10 @@ if host_machine.system() == 'windows'
|
|||
common_dep += socket_dep
|
||||
endif
|
||||
|
||||
if get_option('libunwind')
|
||||
common_dep += dependency('libunwind', required: true)
|
||||
endif
|
||||
|
||||
glx_inc = include_directories('glx')
|
||||
|
||||
top_dir_inc = include_directories('.')
|
||||
|
|
|
@ -121,3 +121,6 @@ option('sparkle-feed-url', type: 'string',
|
|||
description: 'Feed URL for autoupdating with the Sparkle Framework (default: disabled)')
|
||||
option('xpbproxy', type: 'boolean', value: false,
|
||||
description: 'Build a standalone X pasteboard proxy')
|
||||
|
||||
option('libunwind', type: 'boolean', value: false,
|
||||
description: 'Use libunwind for backtrace reporting')
|
||||
|
|
Loading…
Reference in New Issue