build(cmake): centralize preset files
Now that we don't need so many variants for each platform, this is much more sensible Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
@@ -5,10 +5,210 @@
|
|||||||
"major": 3,
|
"major": 3,
|
||||||
"minor": 28
|
"minor": 28
|
||||||
},
|
},
|
||||||
"include": [
|
"configurePresets": [
|
||||||
"cmake/linuxPreset.json",
|
{
|
||||||
"cmake/macosPreset.json",
|
"name": "base",
|
||||||
"cmake/windowsMinGWPreset.json",
|
"hidden": true,
|
||||||
"cmake/windowsMSVCPreset.json"
|
"binaryDir": "build",
|
||||||
|
"installDir": "install",
|
||||||
|
"generator": "Ninja Multi-Config",
|
||||||
|
"cacheVariables": {
|
||||||
|
"Launcher_BUILD_ARTIFACT": "$penv{ARTIFACT_NAME}",
|
||||||
|
"Launcher_BUILD_PLATFORM": "$penv{BUILD_PLATFORM}",
|
||||||
|
"Launcher_ENABLE_JAVA_DOWNLOADER": "ON",
|
||||||
|
"ENABLE_LTO": "ON"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "linux",
|
||||||
|
"displayName": "Linux",
|
||||||
|
"inherits": [
|
||||||
|
"base"
|
||||||
|
],
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Linux"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "macos",
|
||||||
|
"displayName": "macOS",
|
||||||
|
"inherits": [
|
||||||
|
"base"
|
||||||
|
],
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Darwin"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "macos_universal",
|
||||||
|
"displayName": "macOS (Universal Binary)",
|
||||||
|
"inherits": [
|
||||||
|
"macos"
|
||||||
|
],
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_OSX_ARCHITECTURES": "x86_64;arm64",
|
||||||
|
"VCPKG_TARGET_TRIPLET": "universal-osx"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "windows_mingw",
|
||||||
|
"displayName": "Windows (MinGW)",
|
||||||
|
"inherits": [
|
||||||
|
"base"
|
||||||
|
],
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Windows"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "windows_msvc",
|
||||||
|
"displayName": "Windows (MSVC)",
|
||||||
|
"inherits": [
|
||||||
|
"base"
|
||||||
|
],
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Windows"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"buildPresets": [
|
||||||
|
{
|
||||||
|
"name": "linux",
|
||||||
|
"displayName": "Linux",
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Linux"
|
||||||
|
},
|
||||||
|
"configurePreset": "linux"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "macos",
|
||||||
|
"displayName": "macOS",
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Darwin"
|
||||||
|
},
|
||||||
|
"configurePreset": "macos"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "macos_universal",
|
||||||
|
"displayName": "macOS (Universal Binary)",
|
||||||
|
"inherits": [
|
||||||
|
"macos"
|
||||||
|
],
|
||||||
|
"configurePreset": "macos_universal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "windows_mingw",
|
||||||
|
"displayName": "Windows (MinGW)",
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Windows"
|
||||||
|
},
|
||||||
|
"configurePreset": "windows_mingw"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "windows_msvc",
|
||||||
|
"displayName": "Windows (MSVC)",
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Windows"
|
||||||
|
},
|
||||||
|
"configurePreset": "windows_msvc"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"testPresets": [
|
||||||
|
{
|
||||||
|
"name": "base",
|
||||||
|
"hidden": true,
|
||||||
|
"output": {
|
||||||
|
"outputOnFailure": true
|
||||||
|
},
|
||||||
|
"execution": {
|
||||||
|
"noTestsAction": "error"
|
||||||
|
},
|
||||||
|
"filter": {
|
||||||
|
"exclude": {
|
||||||
|
"name": "^example64|example$"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "linux",
|
||||||
|
"displayName": "Linux",
|
||||||
|
"inherits": [
|
||||||
|
"base"
|
||||||
|
],
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Linux"
|
||||||
|
},
|
||||||
|
"configurePreset": "linux"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "macos",
|
||||||
|
"displayName": "macOS",
|
||||||
|
"inherits": [
|
||||||
|
"base"
|
||||||
|
],
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Darwin"
|
||||||
|
},
|
||||||
|
"configurePreset": "macos"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "macos_universal",
|
||||||
|
"displayName": "macOS (Universal Binary)",
|
||||||
|
"inherits": [
|
||||||
|
"base"
|
||||||
|
],
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Darwin"
|
||||||
|
},
|
||||||
|
"configurePreset": "macos_universal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "windows_mingw",
|
||||||
|
"displayName": "Windows (MinGW)",
|
||||||
|
"inherits": [
|
||||||
|
"base"
|
||||||
|
],
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Windows"
|
||||||
|
},
|
||||||
|
"configurePreset": "windows_mingw"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "windows_msvc",
|
||||||
|
"displayName": "Windows (MSVC)",
|
||||||
|
"inherits": [
|
||||||
|
"base"
|
||||||
|
],
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Windows"
|
||||||
|
},
|
||||||
|
"configurePreset": "windows_msvc"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
|
|
||||||
"version": 8,
|
|
||||||
"configurePresets": [
|
|
||||||
{
|
|
||||||
"name": "base",
|
|
||||||
"hidden": true,
|
|
||||||
"binaryDir": "build",
|
|
||||||
"installDir": "install",
|
|
||||||
"generator": "Ninja Multi-Config",
|
|
||||||
"cacheVariables": {
|
|
||||||
"Launcher_BUILD_ARTIFACT": "$penv{ARTIFACT_NAME}",
|
|
||||||
"Launcher_BUILD_PLATFORM": "$penv{BUILD_PLATFORM}",
|
|
||||||
"Launcher_ENABLE_JAVA_DOWNLOADER": "ON",
|
|
||||||
"ENABLE_LTO": "ON"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"testPresets": [
|
|
||||||
{
|
|
||||||
"name": "base",
|
|
||||||
"hidden": true,
|
|
||||||
"output": {
|
|
||||||
"outputOnFailure": true
|
|
||||||
},
|
|
||||||
"execution": {
|
|
||||||
"noTestsAction": "error"
|
|
||||||
},
|
|
||||||
"filter": {
|
|
||||||
"exclude": {
|
|
||||||
"name": "^example64|example$"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
|
|
||||||
"version": 8,
|
|
||||||
"include": [
|
|
||||||
"commonPresets.json"
|
|
||||||
],
|
|
||||||
"configurePresets": [
|
|
||||||
{
|
|
||||||
"name": "linux",
|
|
||||||
"displayName": "Linux",
|
|
||||||
"inherits": [
|
|
||||||
"base"
|
|
||||||
],
|
|
||||||
"condition": {
|
|
||||||
"type": "equals",
|
|
||||||
"lhs": "${hostSystemName}",
|
|
||||||
"rhs": "Linux"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"buildPresets": [
|
|
||||||
{
|
|
||||||
"name": "linux",
|
|
||||||
"displayName": "Linux",
|
|
||||||
"condition": {
|
|
||||||
"type": "equals",
|
|
||||||
"lhs": "${hostSystemName}",
|
|
||||||
"rhs": "Linux"
|
|
||||||
},
|
|
||||||
"configurePreset": "linux"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"testPresets": [
|
|
||||||
{
|
|
||||||
"name": "linux",
|
|
||||||
"displayName": "Linux",
|
|
||||||
"inherits": [
|
|
||||||
"base"
|
|
||||||
],
|
|
||||||
"condition": {
|
|
||||||
"type": "equals",
|
|
||||||
"lhs": "${hostSystemName}",
|
|
||||||
"rhs": "Linux"
|
|
||||||
},
|
|
||||||
"configurePreset": "linux"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
|
|
||||||
"version": 8,
|
|
||||||
"include": [
|
|
||||||
"commonPresets.json"
|
|
||||||
],
|
|
||||||
"configurePresets": [
|
|
||||||
{
|
|
||||||
"name": "macos",
|
|
||||||
"displayName": "macOS",
|
|
||||||
"inherits": [
|
|
||||||
"base"
|
|
||||||
],
|
|
||||||
"condition": {
|
|
||||||
"type": "equals",
|
|
||||||
"lhs": "${hostSystemName}",
|
|
||||||
"rhs": "Darwin"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "macos_universal",
|
|
||||||
"displayName": "macOS (Universal Binary)",
|
|
||||||
"inherits": [
|
|
||||||
"macos"
|
|
||||||
],
|
|
||||||
"cacheVariables": {
|
|
||||||
"CMAKE_OSX_ARCHITECTURES": "x86_64;arm64",
|
|
||||||
"VCPKG_TARGET_TRIPLET": "universal-osx"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"buildPresets": [
|
|
||||||
{
|
|
||||||
"name": "macos",
|
|
||||||
"displayName": "macOS",
|
|
||||||
"condition": {
|
|
||||||
"type": "equals",
|
|
||||||
"lhs": "${hostSystemName}",
|
|
||||||
"rhs": "Darwin"
|
|
||||||
},
|
|
||||||
"configurePreset": "macos"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "macos_universal",
|
|
||||||
"displayName": "macOS (Universal Binary)",
|
|
||||||
"inherits": [
|
|
||||||
"macos"
|
|
||||||
],
|
|
||||||
"configurePreset": "macos_universal"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"testPresets": [
|
|
||||||
{
|
|
||||||
"name": "macos",
|
|
||||||
"displayName": "macOS",
|
|
||||||
"inherits": [
|
|
||||||
"base"
|
|
||||||
],
|
|
||||||
"condition": {
|
|
||||||
"type": "equals",
|
|
||||||
"lhs": "${hostSystemName}",
|
|
||||||
"rhs": "Darwin"
|
|
||||||
},
|
|
||||||
"configurePreset": "macos"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "macos_universal",
|
|
||||||
"displayName": "macOS (Universal Binary)",
|
|
||||||
"inherits": [
|
|
||||||
"base"
|
|
||||||
],
|
|
||||||
"condition": {
|
|
||||||
"type": "equals",
|
|
||||||
"lhs": "${hostSystemName}",
|
|
||||||
"rhs": "Darwin"
|
|
||||||
},
|
|
||||||
"configurePreset": "macos_universal"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
|
|
||||||
"version": 8,
|
|
||||||
"include": [
|
|
||||||
"commonPresets.json"
|
|
||||||
],
|
|
||||||
"configurePresets": [
|
|
||||||
{
|
|
||||||
"name": "windows_msvc",
|
|
||||||
"displayName": "Windows (MSVC)",
|
|
||||||
"inherits": [
|
|
||||||
"base"
|
|
||||||
],
|
|
||||||
"condition": {
|
|
||||||
"type": "equals",
|
|
||||||
"lhs": "${hostSystemName}",
|
|
||||||
"rhs": "Windows"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"buildPresets": [
|
|
||||||
{
|
|
||||||
"name": "windows_msvc",
|
|
||||||
"displayName": "Windows (MSVC)",
|
|
||||||
"condition": {
|
|
||||||
"type": "equals",
|
|
||||||
"lhs": "${hostSystemName}",
|
|
||||||
"rhs": "Windows"
|
|
||||||
},
|
|
||||||
"configurePreset": "windows_msvc"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"testPresets": [
|
|
||||||
{
|
|
||||||
"name": "windows_msvc",
|
|
||||||
"displayName": "Windows (MSVC)",
|
|
||||||
"inherits": [
|
|
||||||
"base"
|
|
||||||
],
|
|
||||||
"condition": {
|
|
||||||
"type": "equals",
|
|
||||||
"lhs": "${hostSystemName}",
|
|
||||||
"rhs": "Windows"
|
|
||||||
},
|
|
||||||
"configurePreset": "windows_msvc"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
|
|
||||||
"version": 8,
|
|
||||||
"include": [
|
|
||||||
"commonPresets.json"
|
|
||||||
],
|
|
||||||
"configurePresets": [
|
|
||||||
{
|
|
||||||
"name": "windows_mingw",
|
|
||||||
"displayName": "Windows (MinGW)",
|
|
||||||
"inherits": [
|
|
||||||
"base"
|
|
||||||
],
|
|
||||||
"condition": {
|
|
||||||
"type": "equals",
|
|
||||||
"lhs": "${hostSystemName}",
|
|
||||||
"rhs": "Windows"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"buildPresets": [
|
|
||||||
{
|
|
||||||
"name": "windows_mingw",
|
|
||||||
"displayName": "Windows (MinGW)",
|
|
||||||
"condition": {
|
|
||||||
"type": "equals",
|
|
||||||
"lhs": "${hostSystemName}",
|
|
||||||
"rhs": "Windows"
|
|
||||||
},
|
|
||||||
"configurePreset": "windows_mingw"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"testPresets": [
|
|
||||||
{
|
|
||||||
"name": "windows_mingw",
|
|
||||||
"displayName": "Windows (MinGW)",
|
|
||||||
"inherits": [
|
|
||||||
"base"
|
|
||||||
],
|
|
||||||
"condition": {
|
|
||||||
"type": "equals",
|
|
||||||
"lhs": "${hostSystemName}",
|
|
||||||
"rhs": "Windows"
|
|
||||||
},
|
|
||||||
"configurePreset": "windows_mingw"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user