mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-13 13:15:59 +00:00
[cmake] Show Windows presets only on Windows (#3172)
Also did a small cleanup to remove duplicated cache variables.
This commit is contained in:
parent
7f727340aa
commit
bdd2419de9
1 changed files with 26 additions and 21 deletions
|
@ -7,14 +7,31 @@
|
||||||
},
|
},
|
||||||
"configurePresets": [
|
"configurePresets": [
|
||||||
{
|
{
|
||||||
"name": "x64-Clang-Base",
|
"name": "Base",
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
"generator": "Ninja",
|
"generator": "Ninja",
|
||||||
"binaryDir": "${sourceDir}/Build/${presetName}",
|
"binaryDir": "${sourceDir}/Build/${presetName}",
|
||||||
|
"installDir": "${sourceDir}/Install/${presetName}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Qt-GUI",
|
||||||
|
"hidden": true,
|
||||||
|
"cacheVariables": {
|
||||||
|
"ENABLE_QT_GUI": "ON"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x64-Windows-Base",
|
||||||
|
"inherits": [ "Base" ],
|
||||||
|
"hidden": true,
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_C_COMPILER": "clang-cl",
|
"CMAKE_C_COMPILER": "clang-cl",
|
||||||
"CMAKE_CXX_COMPILER": "clang-cl",
|
"CMAKE_CXX_COMPILER": "clang-cl"
|
||||||
"CMAKE_INSTALL_PREFIX": "${sourceDir}/Build/${presetName}"
|
},
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Windows"
|
||||||
},
|
},
|
||||||
"vendor": {
|
"vendor": {
|
||||||
"microsoft.com/VisualStudioSettings/CMake/1.0": {
|
"microsoft.com/VisualStudioSettings/CMake/1.0": {
|
||||||
|
@ -25,7 +42,7 @@
|
||||||
{
|
{
|
||||||
"name": "x64-Clang-Debug",
|
"name": "x64-Clang-Debug",
|
||||||
"displayName": "Clang x64 Debug",
|
"displayName": "Clang x64 Debug",
|
||||||
"inherits": ["x64-Clang-Base"],
|
"inherits": [ "x64-Windows-Base" ],
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "Debug"
|
"CMAKE_BUILD_TYPE": "Debug"
|
||||||
}
|
}
|
||||||
|
@ -33,16 +50,12 @@
|
||||||
{
|
{
|
||||||
"name": "x64-Clang-Debug-Qt",
|
"name": "x64-Clang-Debug-Qt",
|
||||||
"displayName": "Clang x64 Debug with Qt",
|
"displayName": "Clang x64 Debug with Qt",
|
||||||
"inherits": ["x64-Clang-Base"],
|
"inherits": [ "x64-Clang-Debug", "Qt-GUI" ]
|
||||||
"cacheVariables": {
|
|
||||||
"CMAKE_BUILD_TYPE": "Debug",
|
|
||||||
"ENABLE_QT_GUI": "ON"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "x64-Clang-Release",
|
"name": "x64-Clang-Release",
|
||||||
"displayName": "Clang x64 Release",
|
"displayName": "Clang x64 Release",
|
||||||
"inherits": ["x64-Clang-Base"],
|
"inherits": [ "x64-Windows-Base" ],
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "Release"
|
"CMAKE_BUILD_TYPE": "Release"
|
||||||
}
|
}
|
||||||
|
@ -50,16 +63,12 @@
|
||||||
{
|
{
|
||||||
"name": "x64-Clang-Release-Qt",
|
"name": "x64-Clang-Release-Qt",
|
||||||
"displayName": "Clang x64 Release with Qt",
|
"displayName": "Clang x64 Release with Qt",
|
||||||
"inherits": ["x64-Clang-Base"],
|
"inherits": [ "x64-Clang-Release", "Qt-GUI" ]
|
||||||
"cacheVariables": {
|
|
||||||
"CMAKE_BUILD_TYPE": "Release",
|
|
||||||
"ENABLE_QT_GUI": "ON"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "x64-Clang-RelWithDebInfo",
|
"name": "x64-Clang-RelWithDebInfo",
|
||||||
"displayName": "Clang x64 RelWithDebInfo",
|
"displayName": "Clang x64 RelWithDebInfo",
|
||||||
"inherits": ["x64-Clang-Base"],
|
"inherits": [ "x64-Windows-Base" ],
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
||||||
}
|
}
|
||||||
|
@ -67,11 +76,7 @@
|
||||||
{
|
{
|
||||||
"name": "x64-Clang-RelWithDebInfo-Qt",
|
"name": "x64-Clang-RelWithDebInfo-Qt",
|
||||||
"displayName": "Clang x64 RelWithDebInfo with Qt",
|
"displayName": "Clang x64 RelWithDebInfo with Qt",
|
||||||
"inherits": ["x64-Clang-Base"],
|
"inherits": [ "x64-Clang-RelWithDebInfo", "Qt-GUI" ]
|
||||||
"cacheVariables": {
|
|
||||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
|
||||||
"ENABLE_QT_GUI": "ON"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue