Add small build preset

This commit is contained in:
Zachary Hall 2024-12-08 11:01:04 -08:00
parent 2d66041928
commit 9b9ba29dfc

View file

@ -8,6 +8,7 @@
"configurePresets": [ "configurePresets": [
{ {
"name": "fastbuild", "name": "fastbuild",
"binaryDir": "${sourceDir}/build/fastbuild",
"displayName": "Fast building config", "displayName": "Fast building config",
"description": "Build with optimization for speed of building", "description": "Build with optimization for speed of building",
"generator": "Ninja", "generator": "Ninja",
@ -25,6 +26,28 @@
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache" "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", "name": "default",
"displayName": "Default Config", "displayName": "Default Config",