Merge pull request #364 from Juice-Labs/meson-support

Adding tracy_no_sys_trace to enable MinGW builds which have an older version of envtprov.h
This commit is contained in:
Bartosz Taudul 2022-04-12 19:13:13 +02:00 committed by GitHub
commit ccf35eb24a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -49,6 +49,7 @@ set_option(TRACY_NO_SAMPLING "Disable call stack sampling" OFF)
set_option(TRACY_NO_VERIFY "Disable zone validation for C API" OFF)
set_option(TRACY_NO_VSYNC_CAPTURE "Disable capture of hardware Vsync events" OFF)
set_option(TRACY_NO_FRAME_IMAGE "Disable the frame image support and its thread" OFF)
set_option(TRACY_NO_SYS_TRACE "Disable systrace sampling" OFF)
set_option(TRACY_DELAYED_INIT "Enable delayed initialization of the library (init on first call)" OFF)
set_option(TRACY_MANUAL_LIFETIME "Enable the manual lifetime management of the profile" OFF)
set_option(TRACY_FIBERS "Enable fibers support" OFF)

View File

@ -60,6 +60,10 @@ if get_option('tracy_no_frame_image')
add_project_arguments('-DTRACY_NO_FRAME_IMAGE', language : 'cpp')
endif
if get_option('tracy_no_sys_trace')
add_project_arguments('-DTRACY_NO_SYSTEM_TRACING', language : 'cpp')
endif
if get_option('tracy_delayed_init')
add_project_arguments('-DTRACY_DELAYED_INIT', language : 'cpp')
endif

View File

@ -12,7 +12,8 @@ option('tracy_no_exit', type : 'boolean', value : false, description : 'Client e
option('tracy_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('tracy_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('tracy_no_frame_image', type : 'boolean', value : false, description : 'Disable the frame image support and its thread')
option('tracy_no_sys_trace', type : 'boolean', value : false, description : 'Disable systrace sampling')
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')