Files
Cataclysm-DDA/CMakePresets.json
2025-09-23 07:33:25 -07:00

175 lines
6.1 KiB
JSON

{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "windows-x64",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"displayName": "Windows x64 MSYS2 (MinGW)",
"description": "Target Windows (64-bit) with the MingGW Win64 development environment.",
"generator": "Ninja Multi-Config",
"cacheVariables": {
"DYNAMIC_LINKING": "False",
"CURSES": "True", "LOCALIZE": "True", "TILES": "False", "SOUND": "False", "TESTS": "True",
"CMAKE_INSTALL_MESSAGE": "NEVER"
}
},
{
"name": "windows-x64-msvc",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"displayName": "Windows x64 MSVC",
"description": "Target Windows (64-bit) with the Visual Studio development environment.",
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"DYNAMIC_LINKING": "False",
"CURSES": "True", "LOCALIZE": "True", "TILES": "False", "SOUND": "False", "TESTS": "True",
"CMAKE_PROJECT_INCLUDE_BEFORE": "${sourceDir}/build-scripts/windows-tiles-sounds-x64-msvc.cmake",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build-scripts/MSVC.cmake",
"VCPKG_TARGET_TRIPLET": "x64-windows-static",
"CMAKE_INSTALL_MESSAGE": "NEVER"
}
},
{
"name": "windows-tiles-sounds-x64",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"displayName": "Windows Tiles Sounds x64 MSYS2 (MinGW)",
"description": "Target Windows (64-bit) with the MingGW Win64 development environment.",
"generator": "Ninja Multi-Config",
"cacheVariables": {
"DYNAMIC_LINKING": "False",
"CURSES": "False", "LOCALIZE": "True", "TILES": "True", "SOUND": "True", "TESTS": "True",
"CMAKE_INSTALL_MESSAGE": "NEVER"
}
},
{
"name": "windows-tiles-sounds-x64-msvc",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"displayName": "Windows Tiles Sounds x64 MSVC",
"description": "Target Windows (64-bit) with the Visual Studio development environment.",
"generator": "Visual Studio 17 2022",
"inherits": "windows-tiles-sounds-x64",
"cacheVariables": {
"CMAKE_PROJECT_INCLUDE_BEFORE": "${sourceDir}/build-scripts/${presetName}.cmake",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build-scripts/MSVC.cmake",
"VCPKG_TARGET_TRIPLET": "x64-windows-static"
}
},
{
"name": "windows-tiles-sounds-x64-clang-cl",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"displayName": "Windows Tiles Sounds x64 ClangCL",
"description": "Target Windows (64-bit) with the ClangCL development environment.",
"inherits": "windows-tiles-sounds-x64-msvc",
"toolset": "CLangCL",
"environment": {
"CXXFLAGS": "-ftime-trace"
},
"cacheVariables": {
"CMAKE_PROJECT_INCLUDE_BEFORE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"CMAKE_TOOLCHAIN_FILE": null,
"VCPKG_MANIFEST_DIR": "${sourceDir}/msvc-full-features",
"VCPKG_APPLOCAL_DEPS": "False"
}
},
{
"name": "linux-x64",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"displayName": "Linux x64",
"description": "Target Linux (64-bit) with the GCC development environment.",
"generator": "Ninja Multi-Config",
"cacheVariables": {
"DYNAMIC_LINKING": "True",
"CURSES": "True", "LOCALIZE": "True", "TILES": "False", "SOUND": "False", "TESTS": "True",
"CMAKE_INSTALL_MESSAGE": "NEVER"
}
},
{
"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": {
"DYNAMIC_LINKING": "True",
"CURSES": "False", "LOCALIZE": "True", "TILES": "True", "SOUND": "True", "TESTS": "True",
"CMAKE_INSTALL_MESSAGE": "NEVER"
}
},
{
"name": "linux-tiles-sounds-x64-vcpkg",
"inherits": ["linux-tiles-sounds-x64"],
"displayName": "Linux Tiles Sounds x64 VCPKG",
"description": "Target Linux (64-bit) with the GCC development environment and VCPKG.",
"generator": "Ninja Multi-Config",
"environment": {
"VCPKG_ROOT": "/usr/local/vcpkg"
},
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_TARGET_TRIPLET": "x64-linux-dynamic",
"VCPKG_MANIFEST_DIR": "${sourceDir}/msvc-full-features/"
}
}
],
"buildPresets": [
{
"name": "windows-x64",
"configurePreset": "windows-x64",
"configuration": "RelWithDebInfo"
},
{
"name": "windows-x64-msvc",
"configurePreset": "windows-x64-msvc",
"configuration": "RelWithDebInfo"
},
{
"name": "windows-tiles-sounds-x64",
"configurePreset": "windows-tiles-sounds-x64",
"configuration": "RelWithDebInfo"
},
{
"name": "linux-x64",
"configurePreset": "linux-x64",
"configuration": "RelWithDebInfo"
},
{
"name": "linux-tiles-sounds-x64",
"configurePreset": "linux-tiles-sounds-x64",
"configuration": "RelWithDebInfo"
},
{
"name": "linux-tiles-sounds-x64-vcpkg",
"configurePreset": "linux-tiles-sounds-x64-vcpkg"
},
{
"name": "windows-tiles-sounds-x64-msvc",
"configurePreset": "windows-tiles-sounds-x64-msvc",
"configuration": "RelWithDebInfo"
},
{
"name": "windows-tiles-sounds-x64-clang-cl",
"configurePreset": "windows-tiles-sounds-x64-clang-cl",
"configuration": "RelWithDebInfo",
"environment": {
"UseMultiToolTask": "true"
}
}
],
"testPresets": [
{
"name": "windows-tiles-sounds-x64-msvc",
"configurePreset": "windows-tiles-sounds-x64-msvc",
"configuration": "RelWithDebInfo"
},
{
"name": "linux-tiles-sounds-x64",
"configurePreset": "linux-tiles-sounds-x64",
"configuration": "RelWithDebInfo"
}
]
}