[Feat] (CMake): make TRACY_ENABLE as an option

This commit is contained in:
2025-12-12 23:40:39 +08:00
parent 0519cdeb9c
commit 17bbe3e6ba
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ set(SPIRV_CROSS_STATIC ON CACHE BOOL "Prefer static libs" FORCE)
add_subdirectory(3rdparty/glslang)
add_subdirectory(3rdparty/SPIRV-Cross)
set(TRACY_ENABLE ON CACHE BOOL "Enable Tracy" FORCE)
option(TRACY_ENABLE "Enable Tracy" OFF)
if (TRACY_ENABLE)
set(TRACY_ON_DEMAND ON CACHE BOOL "Enable profiling only connected" FORCE)
+6
View File
@@ -8,6 +8,12 @@ android {
minSdk 26
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
// externalNativeBuild {
// cmake {
// arguments "-DTRACY_ENABLE=ON"
// }
// }
}
buildTypes {