diff --git a/CMakePresets.json b/CMakePresets.json index d8a1c7f..3e10f15 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -8,6 +8,7 @@ "configurePresets": [ { "name": "fastbuild", + "binaryDir": "${sourceDir}/build/fastbuild", "displayName": "Fast building config", "description": "Build with optimization for speed of building", "generator": "Ninja", @@ -25,6 +26,28 @@ "CMAKE_CXX_COMPILER_LAUNCHER": "ccache" } }, + { + "name": "smallbuild", + "displayName": "Small building config", + "description": "Build with optimization for size", + "binaryDir": "${sourceDir}/build/smallbuild", + "generator": "Ninja", + "cacheVariables": { + "CMAKE_POLICY_DEFAULT_CMP0069": "NEW", + "CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON", + "CMAKE_C_FLAGS": "-Os", + "CMAKE_CXX_FLAGS": "-Os", + "BUILD_SOUNDTOUCH": "ON", + "DISABLE_GTK_UI": "ON", + "DISABLE_QT_UI": "ON", + "DISABLE_HAIKU_UI": "ON", + "CMAKE_BUILD_TYPE": "Release" + }, + "environment": { + "CMAKE_C_COMPILER_LAUNCHER": "ccache", + "CMAKE_CXX_COMPILER_LAUNCHER": "ccache" + } + }, { "name": "default", "displayName": "Default Config",