From df463fcbfea81c411f8119d500b6971ebd11afa8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 7 Jul 2026 01:39:57 +0200 Subject: [PATCH] Add CMake presets for profiler. --- profiler/CMakePresets.json | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 profiler/CMakePresets.json diff --git a/profiler/CMakePresets.json b/profiler/CMakePresets.json new file mode 100644 index 00000000..20974bdd --- /dev/null +++ b/profiler/CMakePresets.json @@ -0,0 +1,47 @@ +{ + "version": 10, + "configurePresets": [ + { + "name": "common", + "hidden": true, + "binaryDir": "${sourceDir}/build-${presetName}", + "generator": "Ninja", + "cacheVariables": { + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON" + } + }, + { + "name": "debug", + "displayName": "Debug configuration", + "inherits": "common", + "binaryDir": "${sourceDir}/build", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug" + } + }, + { + "name": "release", + "displayName": "Release configuration", + "inherits": "common", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release" + } + }, + { + "name": "profile", + "displayName": "Self-profiling configuration", + "inherits": "release", + "cacheVariables": { + "SELF_PROFILE": "1" + } + }, + { + "name": "web", + "displayName": "Web build", + "inherits": "release", + "cacheVariables": { + "CMAKE_TOOLCHAIN_FILE": "~/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake" + } + } + ] +}