| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- {
- "version": 6,
- "cmakeMinimumRequired": {
- "major": 3,
- "minor": 25,
- "patch": 0
- },
- "configurePresets": [
- {
- "name": "windows-zig-release",
- "displayName": "Windows / Zig clang / Release",
- "description": "无 MSVC/MinGW 时用 ziglang 包内的 Zig clang 编译(Ninja)",
- "generator": "Ninja",
- "binaryDir": "${sourceDir}/../build-cmake/windows-zig-release",
- "toolchainFile": "${sourceDir}/cmake/toolchain-zig.cmake",
- "cacheVariables": {
- "CMAKE_BUILD_TYPE": "Release",
- "PORTCV_BUILD_TESTS": "ON",
- "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
- }
- },
- {
- "name": "windows-zig-debug",
- "displayName": "Windows / Zig clang / Debug",
- "description": "带调试符号的 Windows 侧构建(Ninja)",
- "generator": "Ninja",
- "binaryDir": "${sourceDir}/../build-cmake/windows-zig-debug",
- "toolchainFile": "${sourceDir}/cmake/toolchain-zig.cmake",
- "cacheVariables": {
- "CMAKE_BUILD_TYPE": "Debug",
- "PORTCV_BUILD_TESTS": "ON",
- "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
- }
- }
- ],
- "buildPresets": [
- {
- "name": "windows-zig-release",
- "configurePreset": "windows-zig-release"
- },
- {
- "name": "windows-zig-debug",
- "configurePreset": "windows-zig-debug"
- }
- ],
- "testPresets": [
- {
- "name": "windows-zig-release",
- "configurePreset": "windows-zig-release",
- "output": {
- "outputOnFailure": true
- },
- "execution": {
- "noTestsAction": "error",
- "stopOnFailure": false
- }
- },
- {
- "name": "windows-zig-debug",
- "configurePreset": "windows-zig-debug",
- "output": {
- "outputOnFailure": true
- },
- "execution": {
- "noTestsAction": "error",
- "stopOnFailure": false
- }
- }
- ]
- }
|