mirror of
https://github.com/mikage-emu/mikage-dev.git
synced 2025-01-20 12:31:06 +01:00
Build: Add option to enable profiling
This commit is contained in:
parent
2b7ac71ab4
commit
4ec7cb4a2d
1 changed files with 10 additions and 2 deletions
12
conanfile.py
12
conanfile.py
|
@ -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":
|
||||||
|
|
Loading…
Reference in a new issue