1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 18:52:30 +01:00
ScreenPlay/CMake/Platform/Common/CMakePresets.json

176 lines
5.7 KiB
JSON
Raw Permalink Normal View History

{
"version": 4,
"cmakeMinimumRequired": {
2024-07-14 15:44:05 +02:00
"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",
"QT_QML_GENERATE_QMLLS_INI": "ON",
"QCORO_BUILD_EXAMPLES": "OFF",
"BUILD_TESTING": "OFF"
}
},
{
"name": "debug",
"description": "Specifies build type for single-configuration generators: debug",
"hidden": true,
"cacheVariables": {
"QT_QML_DEBUG": "ON",
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Debug"
}
}
},
{
"name": "relwithdebinfo",
"description": "Specifies build type for single-configuration generators: RelWithDebInfo",
"hidden": true,
"cacheVariables": {
"QT_QML_DEBUG": "ON",
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "RelWithDebInfo"
}
}
},
{
"name": "release",
"description": "Specifies build type for single-configuration generators: release",
"hidden": true,
"cacheVariables": {
"QT_QML_DEBUG": "OFF",
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Release"
}
}
},
{
"name": "profile",
"description": "Specifies build type for single-configuration generators: profile",
"hidden": true,
"cacheVariables": {
"QT_QML_DEBUG": "OFF",
"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"
]
}
}
]
}