diff --git a/meson.build b/meson.build index 9921db4f..be061b69 100644 --- a/meson.build +++ b/meson.build @@ -110,6 +110,15 @@ if get_option('tracy_libbacktrace_elf_dynload_support') tracy_compile_args += ['-DTRACY_LIBBACKTRACE_ELF_DYNLOAD_SUPPORT'] endif +if get_option('tracy_verbose') + tracy_common_args += ['-DTRACY_VERBOSE'] +endif + +if get_option('tracy_debuginfod') + tracy_common_args += ['-DTRACY_DEBUGINFOD'] + tracy_public_deps += dependency('libdebuginfod') +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.') diff --git a/meson_options.txt b/meson_options.txt index a2194417..ee7382e3 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -24,3 +24,5 @@ option('tracy_manual_lifetime', type : 'boolean', value : false, description : ' option('tracy_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('tracy_no_crash_handler', type : 'boolean', value : false, description : 'Disable crash handling') +option('tracy_verbose', type : 'boolean', value : false, description : 'Enable verbose logging') +option('tracy_debuginfod', type : 'boolean', value : false, description : 'Enable debuginfod support') \ No newline at end of file