diff --git a/meson.build b/meson.build index 8940364f..782e2f66 100644 --- a/meson.build +++ b/meson.build @@ -95,8 +95,8 @@ if get_option('tracy_no_crash_handler') endif tracy_shared_libs = get_option('default_library') == 'shared' -if tracy_shared_libs and not get_option('tracy_shared_libs') - warning('tracy_shared_libs is set to false, but default_library is set to shared. Building shared library.') +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.') endif if tracy_shared_libs diff --git a/meson_options.txt b/meson_options.txt index f0005205..e88b5cb6 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -19,5 +19,5 @@ option('tracy_timer_fallback', type : 'boolean', value : false, description : 'U 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') -option('tracy_shared_libs', type : 'boolean', value : false, description : 'Builds Tracy as a shared object', deprecated : 'use default_library=shared instead') +option('tracy_shared_libs', type : 'boolean', value : false, description : 'Builds Tracy as a shared object', deprecated : 'default_library') option('tracy_no_crash_handler', type : 'boolean', value : false, description : 'Disable crash handling')