1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-18 08:22:33 +02:00
ScreenPlay/CMake/Platform/Common/CMakePresets.json
2024-07-29 12:38:22 +02:00

170 lines
5.5 KiB
JSON

{
"version": 4,
"cmakeMinimumRequired": {
"major": 3,
"minor": 27,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"description": "Placeholder configuration that buildPresets and testPresets can inherit from",
"hidden": true,
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/../vcpkg/scripts/buildsystems/vcpkg.cmake",
"QCORO_BUILD_EXAMPLES": "OFF",
"BUILD_TESTING": "OFF"
}
},
{
"name": "debug",
"description": "Specifies build type for single-configuration generators: debug",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Debug"
}
}
},
{
"name": "relwithdebinfo",
"description": "Specifies build type for single-configuration generators: RelWithDebInfo",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "RelWithDebInfo"
}
}
},
{
"name": "release",
"description": "Specifies build type for single-configuration generators: release",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Release"
}
}
},
{
"name": "profile",
"description": "Specifies build type for single-configuration generators: profile",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Profile"
}
}
},
{
"name": "compile-commands-json",
"description": "Generate compile_commands.json file when used with a Makefile or Ninja Generator",
"hidden": true,
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": {
"type": "BOOL",
"value": "ON"
}
}
},
{
"name": "config-steam-deploy",
"description": "CMake flags for the deploy version",
"hidden": true,
"cacheVariables": {
"SCREENPLAY_STEAM": "ON",
"SCREENPLAY_DEPLOY": "ON",
"SCREENPLAY_INSTALLER": "OFF",
"SCREENPLAY_TESTS": "OFF",
"SCREENPLAY_GODOT": "OFF"
}
},
{
"name": "config-pro-steam-deploy",
"description": "CMake flags for the deploy version",
"hidden": true,
"cacheVariables": {
"SCREENPLAY_STEAM": "ON",
"SCREENPLAY_DEPLOY": "ON",
"SCREENPLAY_INSTALLER": "OFF",
"SCREENPLAY_TESTS": "OFF",
"SCREENPLAY_GODOT": "ON"
}
},
{
"name": "config-develop",
"description": "CMake flags for the deploy version",
"hidden": true,
"cacheVariables": {
"SCREENPLAY_STEAM": "ON",
"SCREENPLAY_DEPLOY": "OFF",
"SCREENPLAY_INSTALLER": "OFF",
"SCREENPLAY_TESTS": "ON",
"SCREENPLAY_GODOT": "ON"
}
},
{
"name": "ninja",
"displayName": "Ninja",
"description": "Configure using Ninja generator",
"binaryDir": "${sourceDir}/../build_ScreenPlay",
"hidden": true,
"generator": "Ninja",
"inherits": [
"compile-commands-json"
]
},
{
"name": "host-windows",
"displayName": "Host OS - Windows",
"description": "Specifies Windows host condition for configure preset",
"hidden": true,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "host-linux",
"displayName": "Host OS - Linux",
"description": "Specifies Linux host condition for configure preset",
"hidden": true,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "host-mac",
"displayName": "Host OS - Mac",
"description": "Specifies Mac host condition for configure preset",
"hidden": true,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
}
},
{
"name": "host-windows-linux-mac",
"displayName": "Host OS - Any",
"description": "Allows Windows, Linux or Mac to be used for host condition for configure preset",
"hidden": true,
"condition": {
"type": "inList",
"string": "${hostSystemName}",
"list": [
"Darwin",
"Linux",
"Windows"
]
}
}
]
}