Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dosbox-staging/dosbox-staging.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkcgen <kcgen@users.noreply.github.com>2022-08-04 23:58:40 +0300
committerkcgen <1557255+kcgen@users.noreply.github.com>2022-08-06 05:07:51 +0300
commitc9c589679c38c00b904ec317a2fafb600c1cb244 (patch)
tree7cc5e8d7dc566eee532e375973db4c60c9cdbcf6 /meson.build
parent04286056cd306e05319590428b8de750840d1750 (diff)
Only use Tracy when requested
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build9
1 files changed, 5 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index abceb0abb..ce3671976 100644
--- a/meson.build
+++ b/meson.build
@@ -161,6 +161,7 @@ conf_data.set10('C_NE2000', get_option('use_slirp'))
conf_data.set10('C_FLUIDSYNTH', get_option('use_fluidsynth'))
conf_data.set10('C_MT32EMU', get_option('use_mt32emu'))
conf_data.set10('C_SSHOT', get_option('use_png'))
+conf_data.set10('C_TRACY', get_option('tracy'))
conf_data.set10('C_FPU', true)
conf_data.set10('C_FPU_X86', host_machine.cpu_family() in ['x86', 'x86_64'])
@@ -314,6 +315,7 @@ libslirp_dep = optional_dep
mt32emu_dep = optional_dep
png_dep = optional_dep
slirp_dep = optional_dep
+tracy_dep = optional_dep
alsa_dep = optional_dep # Linux-only
coreaudio_dep = optional_dep # macOS-only
corefoundation_dep = optional_dep # macOS-only
@@ -384,11 +386,10 @@ if get_option('use_png')
not_found_message : msg.format('use_png'))
endif
-tracy_proj = subproject('tracy')
-tracy_dep = tracy_proj.get_variable('tracy_dep')
-
+# Tracy
if get_option('tracy')
- add_project_arguments('-DTRACY_ENABLE', language : ['c','cpp'])
+ tracy_proj = subproject('tracy')
+ tracy_dep = tracy_proj.get_variable('tracy_dep')
add_project_arguments('-g', language : ['c','cpp'])
add_project_arguments('-fno-omit-frame-pointer', language : ['c','cpp'])
endif