mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-26 17:37:34 +00:00
cmake: Add CMakePresets.json
This commit is contained in:
parent
604815cb51
commit
03c3b41f39
81
CMakePresets.json
Normal file
81
CMakePresets.json
Normal file
|
@ -0,0 +1,81 @@
|
|||
{
|
||||
"version": 2,
|
||||
"cmakeMinimumRequired": {
|
||||
"major": 3,
|
||||
"minor": 20,
|
||||
"patch": 0
|
||||
},
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "default",
|
||||
"inherits": "service-debug",
|
||||
"displayName": "Default (same as service-debug)"
|
||||
},
|
||||
{
|
||||
"name": "service-debug",
|
||||
"displayName": "Debug Monado service",
|
||||
"generator": "Ninja",
|
||||
"binaryDir": "${sourceDir}/build",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug",
|
||||
"BUILD_DOC": "OFF",
|
||||
"SANITIZE_ADDRESS": "ON",
|
||||
"SANITIZE_UNDEFINED": "ON"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "standalone-debug",
|
||||
"inherits": "service-debug",
|
||||
"displayName": "Debug Monado standalone",
|
||||
"cacheVariables": {
|
||||
"XRT_FEATURE_SERVICE": "OFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "service-release",
|
||||
"displayName": "Release Monado service",
|
||||
"inherits": "service-debug",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Release",
|
||||
"BUILD_DOC": "ON",
|
||||
"BUILD_DOC_EXTRACT_ALL": "ON",
|
||||
"SANITIZE_ADDRESS": "OFF",
|
||||
"SANITIZE_UNDEFINED": "OFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "standalone-release",
|
||||
"displayName": "Release Monado standalone",
|
||||
"inherits": "service-release",
|
||||
"cacheVariables": {
|
||||
"XRT_FEATURE_SERVICE": "OFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "service-debug-optimized",
|
||||
"displayName": "Debug Monado service with optimizations",
|
||||
"inherits": "service-debug",
|
||||
"cacheVariables": {
|
||||
"CMAKE_CXX_FLAGS": "-g -march=native -O3 -fno-omit-frame-pointer",
|
||||
"CMAKE_C_FLAGS": "-g -march=native -O3 -fno-omit-frame-pointer",
|
||||
"SANITIZE_UNDEFINED": "OFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "standalone-debug-optimized",
|
||||
"displayName": "Debug Monado standalone with optimizations",
|
||||
"inherits": "service-debug-optimized",
|
||||
"cacheVariables": {
|
||||
"XRT_FEATURE_SERVICE": "OFF"
|
||||
}
|
||||
}
|
||||
],
|
||||
"buildPresets": [
|
||||
{
|
||||
"name": "default",
|
||||
"displayName": "Build and install",
|
||||
"configurePreset": "default",
|
||||
"targets": "install"
|
||||
}
|
||||
]
|
||||
}
|
2
CMakePresets.json.license
Normal file
2
CMakePresets.json.license
Normal file
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: 2022 Collabora, Ltd
|
||||
SPDX-License-Identifier: CC0-1.0
|
Loading…
Reference in a new issue