mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
meson: Add libunwind option
The CMake name was a bit weird, so I changed it to the standard format for meson.
This commit is contained in:
parent
c0e4652edf
commit
2b0be68b4a
@ -97,6 +97,11 @@ if get_option('tracy_no_crash_handler')
|
||||
tracy_common_args += ['-DTRACY_NO_CRASH_HANDLER']
|
||||
endif
|
||||
|
||||
if get_option('tracy_libunwind_backtrace')
|
||||
tracy_common_args += ['-DTRACE_CLIENT_LIBUNWIND_BACKTRACE']
|
||||
tracy_public_deps += dependency('libunwind')
|
||||
endif
|
||||
|
||||
tracy_shared_libs = get_option('default_library') == 'shared'
|
||||
if not tracy_shared_libs and get_option('tracy_shared_libs')
|
||||
warning('tracy_shared_libs is set to true, but default_library is set to static. Building static library.')
|
||||
|
@ -16,6 +16,7 @@ option('tracy_no_frame_image', type : 'boolean', value : false, description : 'D
|
||||
option('tracy_no_system_tracing', type : 'boolean', value : false, description : 'Disable systrace sampling')
|
||||
option('tracy_patchable_nopsleds', type : 'boolean', value : false, description : 'Enable nopsleds for efficient patching by system-level tools (e.g. rr)')
|
||||
option('tracy_timer_fallback', type : 'boolean', value : false, description : 'Use lower resolution timers')
|
||||
option('tracy_libunwind_backtrace', type : 'boolean', value : false, description : 'Use libunwind backtracing where supported')
|
||||
option('tracy_delayed_init', type : 'boolean', value : false, description : 'Enable delayed initialization of the library (init on first call)')
|
||||
option('tracy_manual_lifetime', type : 'boolean', value : false, description : 'Enable the manual lifetime management of the profile')
|
||||
option('tracy_fibers', type : 'boolean', value : false, description : 'Enable fibers support')
|
||||
|
Loading…
x
Reference in New Issue
Block a user