Skip to content

Commit 53758b0

Browse files
committed
rework cmake presets
1 parent f975b48 commit 53758b0

File tree

1 file changed

+16
-26
lines changed

1 file changed

+16
-26
lines changed

CMakePresets.json

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,58 +2,48 @@
22
"version": 2,
33
"configurePresets": [
44
{
5-
"name": "default-debug",
6-
"displayName": "Default OpenGL host build (Debug)",
5+
"name": "default",
6+
"displayName": "Default OpenGL host build",
77
"description": "Sets Ninja generator, build and install directory",
88
"generator": "Ninja",
99
"binaryDir": "${sourceDir}/out/build/${presetName}",
1010
"hidden": true,
1111
"cacheVariables": {
12-
"CMAKE_BUILD_TYPE": "Debug",
1312
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
1413
"TRY_ENABLE_OPENGL": false,
1514
"ENABLE_OPENGL": true,
16-
"TRY_ENABLE_VULKAN": false,
17-
"ENABLE_VULKAN": true,
1815
"BUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN": true,
19-
"TRY_BUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN": false,
2016
"BUILD_GSTREAMER_AUDIO_PLAYER_PLUGIN": true,
2117
"TRY_BUILD_GSTREAMER_AUDIO_PLAYER_PLUGIN": false,
2218
"BUILD_SENTRY_PLUGIN": true,
19+
"ENABLE_SESSION_SWITCHING": true,
20+
"ENABLE_TESTS": false
21+
}
22+
},
23+
{
24+
"name": "default-debug",
25+
"displayName": "Default OpenGL host build (Debug)",
26+
"inherits": "default",
27+
"cacheVariables": {
28+
"CMAKE_BUILD_TYPE": "Debug",
2329
"ENABLE_TESTS": true,
2430
"ENABLE_ASAN": true
2531
}
2632
},
2733
{
2834
"name": "default-relwithdebinfo",
2935
"displayName": "Default OpenGL host build (Release with Debug Info)",
30-
"description": "Sets Ninja generator, build and install directory",
31-
"generator": "Ninja",
32-
"binaryDir": "${sourceDir}/out/build/${presetName}",
36+
"inherits": "default",
3337
"cacheVariables": {
34-
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
35-
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
36-
"ENABLE_OPENGL": true,
37-
"BUILD_GSTREAMER_AUDIO_PLAYER_PLUGIN": true,
38-
"BUILD_SENTRY_PLUGIN": true,
39-
"ENABLE_TESTS": false,
40-
"ENABLE_ASAN": false
38+
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
4139
}
4240
},
4341
{
4442
"name": "default-release",
4543
"displayName": "Default OpenGL host build (Release)",
46-
"description": "Sets Ninja generator, build and install directory",
47-
"generator": "Ninja",
48-
"binaryDir": "${sourceDir}/out/build/${presetName}",
44+
"inherits": "default",
4945
"cacheVariables": {
50-
"CMAKE_BUILD_TYPE": "Release",
51-
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
52-
"ENABLE_OPENGL": true,
53-
"BUILD_GSTREAMER_AUDIO_PLAYER_PLUGIN": true,
54-
"BUILD_SENTRY_PLUGIN": true,
55-
"ENABLE_TESTS": false,
56-
"ENABLE_ASAN": false
46+
"CMAKE_BUILD_TYPE": "Release"
5747
}
5848
},
5949
{

0 commit comments

Comments
 (0)