From 9b9ba29dfc75122e9d40b3b7f2ab39ae36040b4d Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Sun, 8 Dec 2024 11:01:04 -0800 Subject: [PATCH] Add small build preset --- CMakePresets.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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",