mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-16 22:37:16 +02:00
feat: add CMakePresets.json
Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
parent
224503cc93
commit
9131f79cc0
14
CMakePresets.json
Normal file
14
CMakePresets.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
|
||||
"version": 8,
|
||||
"cmakeMinimumRequired": {
|
||||
"major": 3,
|
||||
"minor": 28
|
||||
},
|
||||
"include": [
|
||||
"cmake/linuxPreset.json",
|
||||
"cmake/macosPreset.json",
|
||||
"cmake/windowsMinGWPreset.json",
|
||||
"cmake/windowsMSVCPreset.json"
|
||||
]
|
||||
}
|
70
cmake/commonPresets.json
Normal file
70
cmake/commonPresets.json
Normal file
@ -0,0 +1,70 @@
|
||||
{
|
||||
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
|
||||
"version": 8,
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "base",
|
||||
"hidden": true,
|
||||
"binaryDir": "build",
|
||||
"installDir": "install",
|
||||
"cacheVariables": {
|
||||
"Launcher_BUILD_PLATFORM": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "base_debug",
|
||||
"hidden": true,
|
||||
"inherits": [
|
||||
"base"
|
||||
],
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "base_release",
|
||||
"hidden": true,
|
||||
"inherits": [
|
||||
"base"
|
||||
],
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Release",
|
||||
"ENABLE_LTO": "ON"
|
||||
}
|
||||
}
|
||||
],
|
||||
"testPresets": [
|
||||
{
|
||||
"name": "base",
|
||||
"hidden": true,
|
||||
"output": {
|
||||
"outputOnFailure": true
|
||||
},
|
||||
"execution": {
|
||||
"noTestsAction": "error"
|
||||
},
|
||||
"filter": {
|
||||
"exclude": {
|
||||
"name": "^example64|example$"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "base_debug",
|
||||
"hidden": true,
|
||||
"inherits": [
|
||||
"base"
|
||||
],
|
||||
"output": {
|
||||
"debug": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "base_release",
|
||||
"hidden": true,
|
||||
"inherits": [
|
||||
"base"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
95
cmake/linuxPreset.json
Normal file
95
cmake/linuxPreset.json
Normal file
@ -0,0 +1,95 @@
|
||||
{
|
||||
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
|
||||
"version": 8,
|
||||
"include": [
|
||||
"commonPresets.json"
|
||||
],
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "linux_base",
|
||||
"hidden": true,
|
||||
"condition": {
|
||||
"type": "equals",
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Linux"
|
||||
},
|
||||
"generator": "Ninja",
|
||||
"cacheVariables": {
|
||||
"Launcher_BUILD_ARTIFACT": "Linux-Qt6",
|
||||
"Launcher_ENABLE_JAVA_DOWNLOADER": "ON"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "linux_debug",
|
||||
"inherits": [
|
||||
"base_debug",
|
||||
"linux_base"
|
||||
],
|
||||
"displayName": "Linux (Debug)"
|
||||
},
|
||||
{
|
||||
"name": "linux_release",
|
||||
"inherits": [
|
||||
"base_release",
|
||||
"linux_base"
|
||||
],
|
||||
"displayName": "Linux (Release)"
|
||||
}
|
||||
],
|
||||
"buildPresets": [
|
||||
{
|
||||
"name": "linux_base",
|
||||
"hidden": true,
|
||||
"condition": {
|
||||
"type": "equals",
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Linux"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "linux_debug",
|
||||
"inherits": [
|
||||
"linux_base"
|
||||
],
|
||||
"displayName": "Linux (Debug)",
|
||||
"configurePreset": "linux_debug"
|
||||
},
|
||||
{
|
||||
"name": "linux_release",
|
||||
"inherits": [
|
||||
"linux_base"
|
||||
],
|
||||
"displayName": "Linux (Release)",
|
||||
"configurePreset": "linux_release"
|
||||
}
|
||||
],
|
||||
"testPresets": [
|
||||
{
|
||||
"name": "linux_base",
|
||||
"hidden": true,
|
||||
"condition": {
|
||||
"type": "equals",
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Linux"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "linux_debug",
|
||||
"inherits": [
|
||||
"base_debug",
|
||||
"linux_base"
|
||||
],
|
||||
"displayName": "Linux (Debug)",
|
||||
"configurePreset": "linux_debug"
|
||||
},
|
||||
{
|
||||
"name": "linux_release",
|
||||
"inherits": [
|
||||
"base_release",
|
||||
"linux_base"
|
||||
],
|
||||
"displayName": "Linux (Release)",
|
||||
"configurePreset": "linux_release"
|
||||
}
|
||||
]
|
||||
}
|
152
cmake/macosPreset.json
Normal file
152
cmake/macosPreset.json
Normal file
@ -0,0 +1,152 @@
|
||||
{
|
||||
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
|
||||
"version": 8,
|
||||
"include": [
|
||||
"commonPresets.json"
|
||||
],
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "macos_base",
|
||||
"hidden": true,
|
||||
"condition": {
|
||||
"type": "equals",
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Darwin"
|
||||
},
|
||||
"generator": "Ninja"
|
||||
},
|
||||
{
|
||||
"name": "macos_universal_base",
|
||||
"hidden": true,
|
||||
"inherits": [
|
||||
"macos_base"
|
||||
],
|
||||
"cacheVariables": {
|
||||
"CMAKE_OSX_ARCHITECTURES": "x86_64;arm64",
|
||||
"Launcher_BUILD_ARTIFACT": "macOS-Qt6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "macos_debug",
|
||||
"inherits": [
|
||||
"base_debug",
|
||||
"macos_base"
|
||||
],
|
||||
"displayName": "macOS (Debug)"
|
||||
},
|
||||
{
|
||||
"name": "macos_release",
|
||||
"inherits": [
|
||||
"base_release",
|
||||
"macos_base"
|
||||
],
|
||||
"displayName": "macOS (Release)"
|
||||
},
|
||||
{
|
||||
"name": "macos_universal_debug",
|
||||
"inherits": [
|
||||
"base_debug",
|
||||
"macos_universal_base"
|
||||
],
|
||||
"displayName": "macOS (Universal Binary, Debug)"
|
||||
},
|
||||
{
|
||||
"name": "macos_universal_release",
|
||||
"inherits": [
|
||||
"base_release",
|
||||
"macos_universal_base"
|
||||
],
|
||||
"displayName": "macOS (Universal Binary, Release)"
|
||||
}
|
||||
],
|
||||
"buildPresets": [
|
||||
{
|
||||
"name": "macos_base",
|
||||
"hidden": true,
|
||||
"condition": {
|
||||
"type": "equals",
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Darwin"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "macos_debug",
|
||||
"inherits": [
|
||||
"macos_base"
|
||||
],
|
||||
"displayName": "macOS (Debug)",
|
||||
"configurePreset": "macos_debug"
|
||||
},
|
||||
{
|
||||
"name": "macos_release",
|
||||
"inherits": [
|
||||
"macos_base"
|
||||
],
|
||||
"displayName": "macOS (Release)",
|
||||
"configurePreset": "macos_release"
|
||||
},
|
||||
{
|
||||
"name": "macos_universal_debug",
|
||||
"inherits": [
|
||||
"macos_base"
|
||||
],
|
||||
"displayName": "macOS (Universal Binary, Debug)",
|
||||
"configurePreset": "macos_universal_debug"
|
||||
},
|
||||
{
|
||||
"name": "macos_universal_release",
|
||||
"inherits": [
|
||||
"macos_base"
|
||||
],
|
||||
"displayName": "macOS (Universal Binary, Release)",
|
||||
"configurePreset": "macos_universal_release"
|
||||
}
|
||||
],
|
||||
"testPresets": [
|
||||
{
|
||||
"name": "macos_base",
|
||||
"hidden": true,
|
||||
"condition": {
|
||||
"type": "equals",
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Darwin"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "macos_debug",
|
||||
"inherits": [
|
||||
"base_debug",
|
||||
"macos_base"
|
||||
],
|
||||
"displayName": "MacOS (Debug)",
|
||||
"configurePreset": "macos_debug"
|
||||
},
|
||||
{
|
||||
"name": "macos_release",
|
||||
"inherits": [
|
||||
"base_release",
|
||||
"macos_base"
|
||||
],
|
||||
"displayName": "macOS (Release)",
|
||||
"configurePreset": "macos_release"
|
||||
},
|
||||
{
|
||||
"name": "macos_universal_debug",
|
||||
"inherits": [
|
||||
"base_debug",
|
||||
"macos_base"
|
||||
],
|
||||
"displayName": "MacOS (Universal Binary, Debug)",
|
||||
"configurePreset": "macos_universal_debug"
|
||||
},
|
||||
{
|
||||
"name": "macos_universal_release",
|
||||
"inherits": [
|
||||
"base_release",
|
||||
"macos_base"
|
||||
],
|
||||
"displayName": "macOS (Universal Binary, Release)",
|
||||
"configurePreset": "macos_universal_release"
|
||||
}
|
||||
]
|
||||
}
|
155
cmake/windowsMSVCPreset.json
Normal file
155
cmake/windowsMSVCPreset.json
Normal file
@ -0,0 +1,155 @@
|
||||
{
|
||||
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
|
||||
"version": 8,
|
||||
"include": [
|
||||
"commonPresets.json"
|
||||
],
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "windows_msvc_base",
|
||||
"hidden": true,
|
||||
"condition": {
|
||||
"type": "equals",
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Windows"
|
||||
},
|
||||
"cacheVariables": {
|
||||
"Launcher_BUILD_ARTIFACT": "Windows-MSVC-Qt6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "windows_msvc_arm64_cross_base",
|
||||
"hidden": true,
|
||||
"inherits": [
|
||||
"windows_msvc_base"
|
||||
],
|
||||
"architecture": "arm64",
|
||||
"cacheVariables": {
|
||||
"Launcher_BUILD_ARTIFACT": "Windows-MSVC-arm64-Qt6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "windows_msvc_debug",
|
||||
"inherits": [
|
||||
"base_debug",
|
||||
"windows_msvc_base"
|
||||
],
|
||||
"displayName": "Windows MSVC (Debug)",
|
||||
"generator": "Ninja"
|
||||
},
|
||||
{
|
||||
"name": "windows_msvc_release",
|
||||
"inherits": [
|
||||
"base_release",
|
||||
"windows_msvc_base"
|
||||
],
|
||||
"displayName": "Windows MSVC (Release)"
|
||||
},
|
||||
{
|
||||
"name": "windows_msvc_arm64_cross_debug",
|
||||
"inherits": [
|
||||
"base_debug",
|
||||
"windows_msvc_arm64_cross_base"
|
||||
],
|
||||
"displayName": "Windows MSVC (ARM64 cross, Debug)"
|
||||
},
|
||||
{
|
||||
"name": "windows_msvc_arm64_cross_release",
|
||||
"inherits": [
|
||||
"base_release",
|
||||
"windows_msvc_arm64_cross_base"
|
||||
],
|
||||
"displayName": "Windows MSVC (ARM64 cross, Release)"
|
||||
}
|
||||
],
|
||||
"buildPresets": [
|
||||
{
|
||||
"name": "windows_msvc_base",
|
||||
"hidden": true,
|
||||
"condition": {
|
||||
"type": "equals",
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Windows"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "windows_msvc_debug",
|
||||
"inherits": [
|
||||
"windows_msvc_base"
|
||||
],
|
||||
"displayName": "Windows MSVC (Debug)",
|
||||
"configurePreset": "windows_msvc_debug",
|
||||
"configuration": "Debug"
|
||||
},
|
||||
{
|
||||
"name": "windows_msvc_release",
|
||||
"inherits": [
|
||||
"windows_msvc_base"
|
||||
],
|
||||
"displayName": "Windows MSVC (Release)",
|
||||
"configurePreset": "windows_msvc_release",
|
||||
"configuration": "Release",
|
||||
"nativeToolOptions": [
|
||||
"/p:UseMultiToolTask=true",
|
||||
"/p:EnforceProcessCountAcrossBuilds=true"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "windows_msvc_arm64_cross_debug",
|
||||
"inherits": [
|
||||
"windows_msvc_base"
|
||||
],
|
||||
"displayName": "Windows MSVC (ARM64 cross, Debug)",
|
||||
"configurePreset": "windows_msvc_arm64_cross_debug",
|
||||
"configuration": "Debug",
|
||||
"nativeToolOptions": [
|
||||
"/p:UseMultiToolTask=true",
|
||||
"/p:EnforceProcessCountAcrossBuilds=true"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "windows_msvc_arm64_cross_release",
|
||||
"inherits": [
|
||||
"windows_msvc_base"
|
||||
],
|
||||
"displayName": "Windows MSVC (ARM64 cross, Release)",
|
||||
"configurePreset": "windows_msvc_arm64_cross_release",
|
||||
"configuration": "Release",
|
||||
"nativeToolOptions": [
|
||||
"/p:UseMultiToolTask=true",
|
||||
"/p:EnforceProcessCountAcrossBuilds=true"
|
||||
]
|
||||
}
|
||||
],
|
||||
"testPresets": [
|
||||
{
|
||||
"name": "windows_msvc_base",
|
||||
"hidden": true,
|
||||
"condition": {
|
||||
"type": "equals",
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Windows"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "windows_msvc_debug",
|
||||
"inherits": [
|
||||
"base_debug",
|
||||
"windows_msvc_base"
|
||||
],
|
||||
"displayName": "Windows MSVC (Debug)",
|
||||
"configurePreset": "windows_msvc_debug",
|
||||
"configuration": "Debug"
|
||||
},
|
||||
{
|
||||
"name": "windows_msvc_release",
|
||||
"inherits": [
|
||||
"base_release",
|
||||
"windows_msvc_base"
|
||||
],
|
||||
"displayName": "Windows MSVC (Release)",
|
||||
"configurePreset": "windows_msvc_release",
|
||||
"configuration": "Release"
|
||||
}
|
||||
]
|
||||
}
|
99
cmake/windowsMinGWPreset.json
Normal file
99
cmake/windowsMinGWPreset.json
Normal file
@ -0,0 +1,99 @@
|
||||
{
|
||||
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
|
||||
"version": 8,
|
||||
"include": [
|
||||
"commonPresets.json"
|
||||
],
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "windows_mingw_base",
|
||||
"hidden": true,
|
||||
"condition": {
|
||||
"type": "equals",
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Windows"
|
||||
},
|
||||
"generator": "Ninja",
|
||||
"cacheVariables": {
|
||||
"Launcher_BUILD_ARTIFACT": "Windows-MinGW-w64-Qt6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "windows_mingw_debug",
|
||||
"inherits": [
|
||||
"base_debug",
|
||||
"windows_mingw_base"
|
||||
],
|
||||
"displayName": "Windows MinGW (Debug)"
|
||||
},
|
||||
{
|
||||
"name": "windows_mingw_release",
|
||||
"inherits": [
|
||||
"base_release",
|
||||
"windows_mingw_base"
|
||||
],
|
||||
"displayName": "Windows MinGW (Release)"
|
||||
}
|
||||
],
|
||||
"buildPresets": [
|
||||
{
|
||||
"name": "windows_mingw_base",
|
||||
"hidden": true,
|
||||
"condition": {
|
||||
"type": "equals",
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Windows"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "windows_mingw_debug",
|
||||
"inherits": [
|
||||
"windows_mingw_base"
|
||||
],
|
||||
"displayName": "Windows MinGW (Debug)",
|
||||
"configurePreset": "windows_mingw_debug"
|
||||
},
|
||||
{
|
||||
"name": "windows_mingw_release",
|
||||
"inherits": [
|
||||
"windows_mingw_base"
|
||||
],
|
||||
"displayName": "Windows MinGW (Release)",
|
||||
"configurePreset": "windows_mingw_release"
|
||||
}
|
||||
],
|
||||
"testPresets": [
|
||||
{
|
||||
"name": "windows_mingw_base",
|
||||
"hidden": true,
|
||||
"condition": {
|
||||
"type": "equals",
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Windows"
|
||||
},
|
||||
"filter": {
|
||||
"exclude": {
|
||||
"name": "^example64|example$"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "windows_mingw_debug",
|
||||
"inherits": [
|
||||
"base_debug",
|
||||
"windows_mingw_base"
|
||||
],
|
||||
"displayName": "Windows MinGW (Debug)",
|
||||
"configurePreset": "windows_mingw_debug"
|
||||
},
|
||||
{
|
||||
"name": "windows_mingw_release",
|
||||
"inherits": [
|
||||
"base_release",
|
||||
"windows_mingw_base"
|
||||
],
|
||||
"displayName": "Windows MinGW (Release)",
|
||||
"configurePreset": "windows_mingw_release"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user