mirror of
https://github.com/GTAIV-Complete-Edition-text/GTA4.CHS
synced 2026-11-26 09:27:55 +08:00
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"version": 3,
|
|
"configurePresets": [
|
|
{
|
|
"name": "windows-x86-base",
|
|
"description": "面向具有 Visual Studio 开发环境的 Windows。",
|
|
"generator": "Ninja Multi-Config",
|
|
"binaryDir": "${sourceDir}/out/build/${presetName}",
|
|
"installDir": "${sourceDir}/out/install/${presetName}",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Windows"
|
|
},
|
|
"architecture": {
|
|
"value": "x86",
|
|
"strategy": "external"
|
|
},
|
|
"cacheVariables": {
|
|
"CMAKE_C_COMPILER": "cl.exe",
|
|
"CMAKE_CXX_COMPILER": "cl.exe",
|
|
"CMAKE_CXX_STANDARD": "20",
|
|
"VCPKG_TARGET_TRIPLET": "x86-windows-static",
|
|
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{
|
|
"name": "x86-debug",
|
|
"displayName": "x86 Debug",
|
|
"configurePreset": "windows-x86-base",
|
|
"configuration": "Debug"
|
|
},
|
|
{
|
|
"name": "x86-release",
|
|
"displayName": "x86 Release",
|
|
"configurePreset": "windows-x86-base",
|
|
"configuration": "Release"
|
|
}
|
|
]
|
|
}
|