|
| 1 | +{ |
| 2 | + "version": 2, |
| 3 | + "cmakeMinimumRequired": { "major": 3, "minor": 21, "patch": 0 }, |
| 4 | + "configurePresets": [ |
| 5 | + { |
| 6 | + "name": "flags", |
| 7 | + "hidden": true, |
| 8 | + "cacheVariables": { |
| 9 | + "CMAKE_CXX_FLAGS": "/permissive- /Zc:preprocessor /EHsc /MP /W4 -DWIN32_LEAN_AND_MEAN -DNOMINMAX -DUNICODE -D_UNICODE" |
| 10 | + } |
| 11 | + }, |
| 12 | + { |
| 13 | + "name": "vcpkg", |
| 14 | + "hidden": true, |
| 15 | + "cacheVariables": { |
| 16 | + "CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", |
| 17 | + "VCPKG_TARGET_TRIPLET": "x64-windows-static-md", |
| 18 | + "VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/cmake", |
| 19 | + "CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL" |
| 20 | + } |
| 21 | + }, |
| 22 | + { |
| 23 | + "name": "x64", |
| 24 | + "hidden": true, |
| 25 | + "architecture": { "value": "x64", "strategy": "external" } |
| 26 | + }, |
| 27 | + { |
| 28 | + "name": "msvc", |
| 29 | + "hidden": true, |
| 30 | + "generator": "Visual Studio 17 2022", |
| 31 | + "vendor": { |
| 32 | + "microsoft.com/VisualStudioSettings/CMake/1.0": { |
| 33 | + "intelliSenseMode": "windows-msvc-x64", |
| 34 | + "enableMicrosoftCodeAnalysis": true, |
| 35 | + "enableClangTidyCodeAnalysis": true |
| 36 | + } |
| 37 | + } |
| 38 | + }, |
| 39 | + { |
| 40 | + "name": "mod-deploy", |
| 41 | + "hidden": true, |
| 42 | + "cacheVariables": { |
| 43 | + "DEPLOY_MOD": { "type": "BOOL", "value": "ON" }, |
| 44 | + "DEPLOY_ROOT": { "type": "STRING", "value": "$env{SKYRIM_MODS_DEPLOY_ROOT}" } |
| 45 | + } |
| 46 | + }, |
| 47 | + { |
| 48 | + "name": "base-configuration", |
| 49 | + "hidden": true, |
| 50 | + "inherits": [ "flags", "vcpkg", "x64", "msvc" ] |
| 51 | + }, |
| 52 | + { |
| 53 | + "name": "debug-configuration", |
| 54 | + "inherits": [ "base-configuration" ], |
| 55 | + "displayName": "Debug", |
| 56 | + "description": "Debug build", |
| 57 | + "binaryDir": "${sourceDir}/build/Debug", |
| 58 | + "cacheVariables": { "CMAKE_BUILD_TYPE": { "type": "STRING", "value": "Debug" }} |
| 59 | + }, |
| 60 | + { |
| 61 | + "name": "debug-configuration-deploy", |
| 62 | + "inherits": ["debug-configuration", "mod-deploy"], |
| 63 | + "displayName": "Debug + Deploy", |
| 64 | + "description": "Debug and copy .dll and mod resources to SKYRIM_MODS" |
| 65 | + }, |
| 66 | + { |
| 67 | + "name": "release-configuration", |
| 68 | + "inherits": [ "base-configuration" ], |
| 69 | + "displayName": "Release", |
| 70 | + "description": "Release build", |
| 71 | + "binaryDir": "${sourceDir}/build/Release", |
| 72 | + "cacheVariables": { "CMAKE_BUILD_TYPE": { "type": "STRING", "value": "Release" }} |
| 73 | + }, |
| 74 | + { |
| 75 | + "name": "release-configuration-deploy", |
| 76 | + "inherits": ["release-configuration", "mod-deploy"], |
| 77 | + "displayName": "Release + Deploy", |
| 78 | + "description": "Release and copy .dll and mod resources to SKYRIM_MODS" |
| 79 | + } |
| 80 | + ], |
| 81 | + "buildPresets": [ |
| 82 | + { "name": "build-debug", "displayName": "Debug", "configurePreset": "debug-configuration" }, |
| 83 | + { "name": "build-debug-deploy", "displayName": "Debug Deploy", "configurePreset": "debug-configuration-deploy" }, |
| 84 | + { "name": "build-release", "displayName": "Release", "configurePreset": "release-configuration" }, |
| 85 | + { "name": "build-release-deploy", "displayName": "Release Deploy", "configurePreset": "release-configuration-deploy" } |
| 86 | + ] |
| 87 | +} |
0 commit comments