-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use CMake version 3.20 and presets version 2 * Flatten presets into one * Use presetName for the include file * Start using multi-config generators * Add a Linux release configuration and build preset * Display PROJECT_NAME during configuration * Fix all SDL2 related target names
- Loading branch information
Showing
4 changed files
with
52 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,55 @@ | ||
{ | ||
"version": 3, | ||
"version": 2, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 20, | ||
"patch": 0 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "base", | ||
"description": "Base Build Configuration", | ||
"name": "windows-tiles-sounds-x64-msvc", | ||
"binaryDir": "${sourceDir}/out/build/${presetName}", | ||
"installDir": "${sourceDir}/out/install/${presetName}", | ||
"hidden": true | ||
}, | ||
{ | ||
"name": "windows", | ||
"description": "Windows Build Configuration", | ||
"condition": { | ||
"type": "allOf", | ||
"conditions": [ | ||
{ | ||
"type": "equals", | ||
"lhs": "$env{MSYSTEM}", | ||
"rhs": "" | ||
}, | ||
{ | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Windows" | ||
} | ||
] | ||
}, | ||
"cacheVariables": { | ||
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/build-scripts" | ||
}, | ||
"hidden": true | ||
}, | ||
{ | ||
"name": "MSVC", | ||
"inherits": [ "windows" ], | ||
"description": "Visual C++ Configuration", | ||
"toolchainFile": "${sourceDir}/build-scripts/MSVC.cmake", | ||
"cacheVariables": { | ||
"VCPKG_ROOT": "C:/vcpkg" | ||
}, | ||
"hidden": true | ||
}, | ||
{ | ||
"name": "x64-windows-static", | ||
"inherits": [ "base", "MSVC" ], | ||
"description": "Link Statically", | ||
"displayName": "Windows Tiles Sounds x64 MSVC", | ||
"description": "Target Windows (64-bit) with the Visual Studio development environment.", | ||
"generator": "Ninja Multi-Config", | ||
"cacheVariables": { | ||
"CMAKE_PROJECT_INCLUDE_BEFORE": "${sourceDir}/build-scripts/${presetName}.cmake", | ||
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build-scripts/MSVC.cmake", | ||
"VCPKG_TARGET_TRIPLET": "x64-windows-static", | ||
"DYNAMIC_LINKING": "False" | ||
}, | ||
"hidden": true | ||
"VCPKG_ROOT": "C:/vcpkg", | ||
"DYNAMIC_LINKING": "False", | ||
"RELEASE": "True", | ||
"CURSES": "False", | ||
"LOCALIZE": "True", | ||
"TILES": "True", | ||
"SOUND": "True", | ||
"TESTS": "False" | ||
} | ||
}, | ||
{ | ||
"name": "windows-tiles-sounds-x64-msvc", | ||
"inherits": [ "x64-windows-static" ], | ||
"displayName": "Windows Tiles Sounds x64 MSVC", | ||
"description": "Target Windows (64-bit) with the Visual Studio development environment. (RelWithDebInfo)", | ||
"name": "linux-tiles-sounds-x64", | ||
"binaryDir": "${sourceDir}/out/build/${presetName}", | ||
"displayName": "Linux Tiles Sounds x64", | ||
"description": "Target Linux (64-bit) with the GCC development environment.", | ||
"generator": "Ninja Multi-Config", | ||
"cacheVariables": { | ||
"CMAKE_PROJECT_INCLUDE_BEFORE": "${sourceDir}/build-scripts/windows-tiles-sounds-x64-msvc.cmake", | ||
"CMAKE_BUILD_TYPE": "RelWithDebInfo", | ||
"VCPKG_TARGET_TRIPLET": "x64-linux", | ||
"CMAKE_TOOLCHAIN_FILE": "/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake", | ||
"VCPKG_MANIFEST_DIR": "msvc-full-features/", | ||
"DYNAMIC_LINKING": "False", | ||
"RELEASE": "True", | ||
"CURSES": "False", | ||
"LOCALIZE": "True", | ||
"TILES": "True", | ||
"SOUND": "True", | ||
"TESTS": "False" | ||
"TESTS": "False" | ||
} | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "linux-tiles-sounds-x64", | ||
"configurePreset": "linux-tiles-sounds-x64" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": 3, | ||
"version": 2, | ||
"buildPresets": [ | ||
{ | ||
"name": "@BUILD_PRESET_NAME@", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters