{ "version": 2, "cmakeMinimumRequired": { "major": 3, "minor": 20, "patch": 0 }, "configurePresets": [ { "name": "debug", "hidden": true, "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" } }, { "name": "relwithdebinfo", "hidden": true, "cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo" } }, { "name": "linux-default", "displayName": "Linux (default)", "generator": "Ninja", "binaryDir": "${sourceDir}/build/${presetName}", "vendor": { "microsoft.com/VisualStudioSettings/CMake/1.0": { "hostOS": [ "Linux" ] }, "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" } } }, { "name": "linux-default-debug", "displayName": "Linux (default) Debug", "inherits": [ "linux-default", "debug" ] }, { "name": "linux-default-relwithdebinfo", "displayName": "Linux (default) RelWithDebInfo", "inherits": [ "linux-default", "relwithdebinfo" ] }, { "name": "linux-clang", "displayName": "Linux (Clang)", "inherits": [ "linux-default" ], "cacheVariables": { "CMAKE_C_COMPILER": "clang", "CMAKE_CXX_COMPILER": "clang++" } }, { "name": "linux-clang-debug", "displayName": "Linux (Clang) Debug", "inherits": [ "linux-clang", "debug" ] }, { "name": "linux-clang-relwithdebinfo", "displayName": "Linux (Clang) RelWithDebInfo", "inherits": [ "linux-clang", "relwithdebinfo" ] }, { "name": "windows-msvc", "displayName": "Windows (MSVC)", "generator": "Ninja", "binaryDir": "${sourceDir}/out/build/${presetName}", "architecture": { "value": "x64", "strategy": "external" }, "cacheVariables": { "CMAKE_C_COMPILER": "cl", "CMAKE_CXX_COMPILER": "cl", "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", "CMAKE_TOOLCHAIN_FILE": { "type": "FILEPATH", "value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" }, "CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded", "VCPKG_TARGET_TRIPLET": "x64-windows-static" }, "vendor": { "microsoft.com/VisualStudioSettings/CMake/1.0": { "hostOS": [ "Windows" ] } } }, { "name": "windows-msvc-debug", "displayName": "Windows (MSVC) Debug", "inherits": [ "windows-msvc", "debug" ] }, { "name": "windows-msvc-relwithdebinfo", "displayName": "Windows (MSVC) RelWithDebInfo", "inherits": [ "windows-msvc", "relwithdebinfo" ] }, { "name": "windows-clang", "displayName": "Windows (Clang)", "inherits": [ "windows-msvc" ], "cacheVariables": { "CMAKE_C_COMPILER": "clang-cl", "CMAKE_CXX_COMPILER": "clang-cl", "CMAKE_LINKER": "lld-link" }, "vendor": { "microsoft.com/VisualStudioSettings/CMake/1.0": { "intelliSenseMode": "windows-clang-x64" } } }, { "name": "windows-clang-debug", "displayName": "Windows (Clang) Debug", "inherits": [ "windows-clang", "debug" ] }, { "name": "windows-clang-relwithdebinfo", "displayName": "Windows (Clang) RelWithDebInfo", "inherits": [ "windows-clang", "relwithdebinfo" ] }, { "name": "linux-ci", "hidden": true, "inherits": [ "relwithdebinfo" ], "cacheVariables": { "Clang_DIR": { "type": "FILEPATH", "value": "/usr/lib/cmake/clang-11" } } }, { "name": "linux-ci-gcc", "inherits": [ "linux-default", "linux-ci" ] }, { "name": "linux-ci-clang", "inherits": [ "linux-clang", "linux-ci" ] }, { "name": "windows-ci", "hidden": true, "inherits": [ "relwithdebinfo" ], "cacheVariables": { "LLVM_ROOT_DIR": "$env{RUNNER_WORKSPACE}/LLVM" }, "environment": { "VCPKG_ROOT": "$env{RUNNER_WORKSPACE}/vcpkg-qt-$env{Qt_VERSION}" } }, { "name": "windows-ci-msvc", "inherits": [ "windows-msvc", "windows-ci" ] }, { "name": "windows-ci-clang", "inherits": [ "windows-clang", "windows-ci" ] } ], "buildPresets": [ { "name": "linux-default-debug", "configurePreset": "linux-default-debug", "description": "Linux (default) debug build", "displayName": "Linux (default) Debug" }, { "name": "linux-default-relwithdebinfo", "configurePreset": "linux-default-relwithdebinfo", "description": "Linux (default) release build with debug info", "displayName": "Linux (default) RelWithDebInfo" }, { "name": "linux-clang-debug", "configurePreset": "linux-clang-debug", "description": "Linux (Clang) debug build", "displayName": "Linux (Clang) Debug" }, { "name": "linux-clang-relwithdebinfo", "configurePreset": "linux-clang-relwithdebinfo", "description": "Linux (Clang) release build with debug info", "displayName": "Linux (Clang) RelWithDebInfo" }, { "name": "windows-msvc-debug", "configurePreset": "windows-msvc-debug", "description": "Windows (MSVC) debug build", "displayName": "Windows (MSVC) Debug" }, { "name": "windows-msvc-relwithdebinfo", "configurePreset": "windows-msvc-relwithdebinfo", "description": "Windows (MSVC) release build with debug info", "displayName": "Windows (MSVC) RelWithDebInfo" }, { "name": "windows-clang-debug", "configurePreset": "windows-clang-debug", "description": "Windows (Clang) debug build", "displayName": "Windows (Clang) Debug" }, { "name": "windows-clang-relwithdebinfo", "configurePreset": "windows-clang-relwithdebinfo", "description": "Windows (Clang) release build with debug info", "displayName": "Windows (Clang) RelWithDebInfo" }, { "name": "linux-ci-gcc", "configurePreset": "linux-ci-gcc", "targets": ["metaforce", "metaforce-gui", "hecl", "visigen"] }, { "name": "linux-ci-clang", "configurePreset": "linux-ci-clang", "targets": ["metaforce", "metaforce-gui", "hecl", "visigen"] }, { "name": "windows-ci-msvc", "configurePreset": "windows-ci-msvc", "targets": ["metaforce", "metaforce-gui", "hecl", "visigen"] }, { "name": "windows-ci-clang", "configurePreset": "windows-ci-clang", "targets": ["metaforce", "metaforce-gui", "hecl", "visigen"] } ] }