Build: Add option to enable profiling

This commit is contained in:
Tony Wasserka 2024-11-23 10:36:36 +01:00
parent 2b7ac71ab4
commit 4ec7cb4a2d

View file

@ -15,11 +15,19 @@ class MikageConan(ConanFile):
"catch2/2.13.7", "catch2/2.13.7",
"glslang/1.3.268.0", "glslang/1.3.268.0",
"spirv-tools/1.3.268.0", "spirv-tools/1.3.268.0",
"tracy/0.9.1", "tracy/0.11.1",
"xxhash/0.8.0", "xxhash/0.8.0",
"fmt/8.1.1", "fmt/8.1.1",
] ]
options = {
"enable_profiler": [True, False]
}
default_options = {
"enable_profiler": False
}
def configure(self): def configure(self):
# TODO: Works around conan-center-index issue 7118 # TODO: Works around conan-center-index issue 7118
self.options["sdl"].nas = False self.options["sdl"].nas = False
@ -29,7 +37,7 @@ class MikageConan(ConanFile):
self.options["pulseaudio"].with_alsa = False self.options["pulseaudio"].with_alsa = False
#self.options["sdl"].nas = True #self.options["sdl"].nas = True
self.options["tracy"].enable = False # TODO: Allow overriding this setting self.options["tracy"].enable = self.options.enable_profiler
self.options["tracy"].fibers = True self.options["tracy"].fibers = True
if self.settings.os == "Android": if self.settings.os == "Android":