Drop tracy_ prefix from meson options.

This commit is contained in:
Bartosz Taudul 2024-02-11 17:20:43 +01:00
parent 0762d4bbd1
commit 783bc7c939
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 54 additions and 54 deletions

View File

@ -13,114 +13,114 @@ if get_option('tracy_enable')
tracy_common_args += ['-DTRACY_ENABLE'] tracy_common_args += ['-DTRACY_ENABLE']
endif endif
if get_option('tracy_on_demand') if get_option('on_demand')
tracy_common_args += ['-DTRACY_ON_DEMAND'] tracy_common_args += ['-DTRACY_ON_DEMAND']
endif endif
if get_option('tracy_callstack') if get_option('callstack')
tracy_common_args += ['-DTRACY_CALLSTACK'] tracy_common_args += ['-DTRACY_CALLSTACK']
endif endif
if get_option('tracy_no_callstack') if get_option('no_callstack')
tracy_common_args += ['-DTRACY_NO_CALLSTACK'] tracy_common_args += ['-DTRACY_NO_CALLSTACK']
endif endif
if get_option('tracy_no_callstack_inlines') if get_option('no_callstack_inlines')
tracy_common_args += ['-DTRACY_NO_CALLSTACK_INLINES'] tracy_common_args += ['-DTRACY_NO_CALLSTACK_INLINES']
endif endif
if get_option('tracy_only_localhost') if get_option('only_localhost')
tracy_common_args += ['-DTRACY_ONLY_LOCALHOST'] tracy_common_args += ['-DTRACY_ONLY_LOCALHOST']
endif endif
if get_option('tracy_no_broadcast') if get_option('no_broadcast')
tracy_common_args += ['-DTRACY_NO_BROADCAST'] tracy_common_args += ['-DTRACY_NO_BROADCAST']
endif endif
if get_option('tracy_only_ipv4') if get_option('only_ipv4')
tracy_common_args += ['-DTRACY_ONLY_IPV4'] tracy_common_args += ['-DTRACY_ONLY_IPV4']
endif endif
if get_option('tracy_no_code_transfer') if get_option('no_code_transfer')
tracy_common_args += ['-DTRACY_NO_CODE_TRANSFER'] tracy_common_args += ['-DTRACY_NO_CODE_TRANSFER']
endif endif
if get_option('tracy_no_context_switch') if get_option('no_context_switch')
tracy_common_args += ['-DTRACY_NO_CONTEXT_SWITCH'] tracy_common_args += ['-DTRACY_NO_CONTEXT_SWITCH']
endif endif
if get_option('tracy_no_exit') if get_option('no_exit')
tracy_common_args += ['-DTRACY_NO_EXIT'] tracy_common_args += ['-DTRACY_NO_EXIT']
endif endif
if get_option('tracy_no_sampling') if get_option('no_sampling')
tracy_common_args += ['-DTRACY_NO_SAMPLING'] tracy_common_args += ['-DTRACY_NO_SAMPLING']
endif endif
if get_option('tracy_no_verify') if get_option('no_verify')
tracy_common_args += ['-DTRACY_NO_VERIFY'] tracy_common_args += ['-DTRACY_NO_VERIFY']
endif endif
if get_option('tracy_no_vsync_capture') if get_option('no_vsync_capture')
tracy_common_args += ['-DTRACY_NO_VSYNC_CAPTURE'] tracy_common_args += ['-DTRACY_NO_VSYNC_CAPTURE']
endif endif
if get_option('tracy_no_frame_image') if get_option('no_frame_image')
tracy_common_args += ['-DTRACY_NO_FRAME_IMAGE'] tracy_common_args += ['-DTRACY_NO_FRAME_IMAGE']
endif endif
if get_option('tracy_no_system_tracing') if get_option('no_system_tracing')
tracy_common_args += ['-DTRACY_NO_SYSTEM_TRACING'] tracy_common_args += ['-DTRACY_NO_SYSTEM_TRACING']
endif endif
if get_option('tracy_patchable_nopsleds') if get_option('patchable_nopsleds')
tracy_common_args += ['-DTRACY_PATCHABLE_NOPSLEDS'] tracy_common_args += ['-DTRACY_PATCHABLE_NOPSLEDS']
endif endif
if get_option('tracy_delayed_init') if get_option('delayed_init')
tracy_common_args += ['-DTRACY_DELAYED_INIT'] tracy_common_args += ['-DTRACY_DELAYED_INIT']
endif endif
if get_option('tracy_manual_lifetime') if get_option('manual_lifetime')
tracy_common_args += ['-DTRACY_MANUAL_LIFETIME'] tracy_common_args += ['-DTRACY_MANUAL_LIFETIME']
endif endif
if get_option('tracy_fibers') if get_option('fibers')
tracy_common_args += ['-DTRACY_FIBERS'] tracy_common_args += ['-DTRACY_FIBERS']
endif endif
if get_option('tracy_timer_fallback') if get_option('timer_fallback')
tracy_common_args += ['-DTRACY_TIMER_FALLBACK'] tracy_common_args += ['-DTRACY_TIMER_FALLBACK']
endif endif
if get_option('tracy_no_crash_handler') if get_option('no_crash_handler')
tracy_common_args += ['-DTRACY_NO_CRASH_HANDLER'] tracy_common_args += ['-DTRACY_NO_CRASH_HANDLER']
endif endif
if get_option('tracy_libunwind_backtrace') if get_option('libunwind_backtrace')
tracy_common_args += ['-DTRACY_LIBUNWIND_BACKTRACE'] tracy_common_args += ['-DTRACY_LIBUNWIND_BACKTRACE']
tracy_public_deps += dependency('libunwind') tracy_public_deps += dependency('libunwind')
endif endif
if get_option('tracy_symbol_offline_resolve') if get_option('symbol_offline_resolve')
tracy_compile_args += ['-DTRACY_SYMBOL_OFFLINE_RESOLVE'] tracy_compile_args += ['-DTRACY_SYMBOL_OFFLINE_RESOLVE']
endif endif
if get_option('tracy_libbacktrace_elf_dynload_support') if get_option('libbacktrace_elf_dynload_support')
tracy_compile_args += ['-DTRACY_LIBBACKTRACE_ELF_DYNLOAD_SUPPORT'] tracy_compile_args += ['-DTRACY_LIBBACKTRACE_ELF_DYNLOAD_SUPPORT']
endif endif
if get_option('tracy_verbose') if get_option('verbose')
tracy_common_args += ['-DTRACY_VERBOSE'] tracy_common_args += ['-DTRACY_VERBOSE']
endif endif
if get_option('tracy_debuginfod') if get_option('debuginfod')
tracy_common_args += ['-DTRACY_DEBUGINFOD'] tracy_common_args += ['-DTRACY_DEBUGINFOD']
tracy_public_deps += dependency('libdebuginfod') tracy_public_deps += dependency('libdebuginfod')
endif endif
tracy_shared_libs = get_option('default_library') == 'shared' tracy_shared_libs = get_option('default_library') == 'shared'
if not tracy_shared_libs and get_option('tracy_shared_libs') if not tracy_shared_libs and get_option('shared_libs')
warning('tracy_shared_libs is set to true, but default_library is set to static. Building static library.') warning('tracy_shared_libs is set to true, but default_library is set to static. Building static library.')
endif endif

View File

@ -1,28 +1,28 @@
option('tracy_enable', type : 'boolean', value : true, description : 'Enable profiling', yield: true) option('tracy_enable', type : 'boolean', value : true, description : 'Enable profiling', yield: true)
option('tracy_on_demand', type : 'boolean', value : false, description : 'On-demand profiling') option('on_demand', type : 'boolean', value : false, description : 'On-demand profiling')
option('tracy_callstack', type : 'boolean', value : false, description : 'Enfore callstack collection for tracy regions') option('callstack', type : 'boolean', value : false, description : 'Enfore callstack collection for tracy regions')
option('tracy_no_callstack', type : 'boolean', value : false, description : 'Disable all callstack related functionality') option('no_callstack', type : 'boolean', value : false, description : 'Disable all callstack related functionality')
option('tracy_no_callstack_inlines', type : 'boolean', value : false, description : 'Disables the inline functions in callstacks') option('no_callstack_inlines', type : 'boolean', value : false, description : 'Disables the inline functions in callstacks')
option('tracy_only_localhost', type : 'boolean', value : false, description : 'Only listen on the localhost interface') option('only_localhost', type : 'boolean', value : false, description : 'Only listen on the localhost interface')
option('tracy_no_broadcast', type : 'boolean', value : false, description : 'Disable client discovery by broadcast to local network') option('no_broadcast', type : 'boolean', value : false, description : 'Disable client discovery by broadcast to local network')
option('tracy_only_ipv4', type : 'boolean', value : false, description : 'Tracy will only accept connections on IPv4 addresses (disable IPv6)') option('only_ipv4', type : 'boolean', value : false, description : 'Tracy will only accept connections on IPv4 addresses (disable IPv6)')
option('tracy_no_code_transfer', type : 'boolean', value : false, description : 'Disable collection of source code') option('no_code_transfer', type : 'boolean', value : false, description : 'Disable collection of source code')
option('tracy_no_context_switch', type : 'boolean', value : false, description : 'Disable capture of context switches') option('no_context_switch', type : 'boolean', value : false, description : 'Disable capture of context switches')
option('tracy_no_exit', type : 'boolean', value : false, description : 'Client executable does not exit until all profile data is sent to server') option('no_exit', type : 'boolean', value : false, description : 'Client executable does not exit until all profile data is sent to server')
option('tracy_no_sampling', type : 'boolean', value : false, description : 'Disable call stack sampling') option('no_sampling', type : 'boolean', value : false, description : 'Disable call stack sampling')
option('tracy_no_verify', type : 'boolean', value : false, description : 'Disable zone validation for C API') option('no_verify', type : 'boolean', value : false, description : 'Disable zone validation for C API')
option('tracy_no_vsync_capture', type : 'boolean', value : false, description : 'Disable capture of hardware Vsync events') option('no_vsync_capture', type : 'boolean', value : false, description : 'Disable capture of hardware Vsync events')
option('tracy_no_frame_image', type : 'boolean', value : false, description : 'Disable the frame image support and its thread') option('no_frame_image', type : 'boolean', value : false, description : 'Disable the frame image support and its thread')
option('tracy_no_system_tracing', type : 'boolean', value : false, description : 'Disable systrace sampling') option('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('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('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('libunwind_backtrace', type : 'boolean', value : false, description : 'Use libunwind backtracing where supported')
option('tracy_symbol_offline_resolve', type : 'boolean', value : false, description : 'Instead of full runtime symbol resolution, only resolve the image path and offset to enable offline symbol resolution') option('symbol_offline_resolve', type : 'boolean', value : false, description : 'Instead of full runtime symbol resolution, only resolve the image path and offset to enable offline symbol resolution')
option('tracy_libbacktrace_elf_dynload_support', type : 'boolean', value : false, description : 'Enable libbacktrace to support dynamically loaded elfs in symbol resolution resolution after the first symbol resolve operation') option('libbacktrace_elf_dynload_support', type : 'boolean', value : false, description : 'Enable libbacktrace to support dynamically loaded elfs in symbol resolution resolution after the first symbol resolve operation')
option('tracy_delayed_init', type : 'boolean', value : false, description : 'Enable delayed initialization of the library (init on first call)') option('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('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') option('fibers', type : 'boolean', value : false, description : 'Enable fibers support')
option('tracy_shared_libs', type : 'boolean', value : false, description : 'Builds Tracy as a shared object (deprecated in favour of default_library=shared)', deprecated : true) option('shared_libs', type : 'boolean', value : false, description : 'Builds Tracy as a shared object (deprecated in favour of default_library=shared)', deprecated : true)
option('tracy_no_crash_handler', type : 'boolean', value : false, description : 'Disable crash handling') option('no_crash_handler', type : 'boolean', value : false, description : 'Disable crash handling')
option('tracy_verbose', type : 'boolean', value : false, description : 'Enable verbose logging') option('verbose', type : 'boolean', value : false, description : 'Enable verbose logging')
option('tracy_debuginfod', type : 'boolean', value : false, description : 'Enable debuginfod support') option('debuginfod', type : 'boolean', value : false, description : 'Enable debuginfod support')