更新:1、优化配置构建脚本;

Signed-off-by: waiwaylee <waiwaylee@foxmail.com>
This commit is contained in:
2026-10-20 13:40:39 +08:00
parent 2273841aa5
commit 3dee734d89
15 changed files with 488 additions and 271 deletions
+62 -137
View File
@@ -5,166 +5,91 @@
},
"tasks": [
{
"label": "CMake: 配置 X256_PS (Release, MSVC2022 x64)",
"label": "清理全部",
"detail": "删除 build/<X256_PS|X256_MS>/<Debug|Release>/<REC_*> 下所有配置的构建输出(build/output 打包留档不动)",
"type": "shell",
"command": "${workspaceFolder}\\.vscode\\scripts\\configure.bat",
"args": [
"${workspaceFolder}/build/X256_PS",
"PHASE_SCANNING",
"Release"
],
"problemMatcher": []
"command": "${workspaceFolder}\\.vscode\\scripts\\clean_all.bat",
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "shared",
"clear": true
}
},
{
"label": "CMake: 配置 X256_PS (Debug, MSVC2022 x64)",
"label": "配置并构建全部(Release/REC_OFF)",
"detail": "Release + RDP_DATA_RECORD=OFF:X256_PS 与 X256_MS 分别配置并构建",
"type": "shell",
"command": "${workspaceFolder}\\.vscode\\scripts\\configure.bat",
"command": "${workspaceFolder}\\.vscode\\scripts\\build_all.bat",
"args": [
"${workspaceFolder}/build/X256_PS",
"PHASE_SCANNING",
"Debug"
],
"problemMatcher": []
},
{
"label": "CMake: 构建 X256_PS (Release)",
"type": "shell",
"command": "${workspaceFolder}\\.vscode\\scripts\\build.bat",
"args": [
"${workspaceFolder}/build/X256_PS"
],
"group": "build",
"problemMatcher": [
"$msCompile"
]
},
{
"label": "CMake: 构建 X256_PS (Debug)",
"type": "shell",
"command": "${workspaceFolder}\\.vscode\\scripts\\build.bat",
"args": [
"${workspaceFolder}/build/X256_PS"
],
"group": "build",
"problemMatcher": [
"$msCompile"
]
},
{
"label": "CMake: 清理 X256_PS",
"type": "shell",
"command": "${workspaceFolder}\\.vscode\\scripts\\clean.bat",
"args": [
"${workspaceFolder}/build/X256_PS"
],
"problemMatcher": []
},
{
"label": "CMake: 配置 X256_MS (Release, MSVC2022 x64)",
"type": "shell",
"command": "${workspaceFolder}\\.vscode\\scripts\\configure.bat",
"args": [
"${workspaceFolder}/build/X256_MS",
"MECHANICAL_SCANNING",
"Release"
],
"problemMatcher": []
},
{
"label": "CMake: 配置 X256_MS (Debug, MSVC2022 x64)",
"type": "shell",
"command": "${workspaceFolder}\\.vscode\\scripts\\configure.bat",
"args": [
"${workspaceFolder}/build/X256_MS",
"MECHANICAL_SCANNING",
"Debug"
],
"problemMatcher": []
},
{
"label": "CMake: 构建 X256_MS (Release)",
"type": "shell",
"command": "${workspaceFolder}\\.vscode\\scripts\\build.bat",
"args": [
"${workspaceFolder}/build/X256_MS"
],
"group": "build",
"problemMatcher": [
"$msCompile"
]
},
{
"label": "CMake: 构建 X256_MS (Debug)",
"type": "shell",
"command": "${workspaceFolder}\\.vscode\\scripts\\build.bat",
"args": [
"${workspaceFolder}/build/X256_MS"
],
"group": "build",
"problemMatcher": [
"$msCompile"
]
},
{
"label": "CMake: 清理 X256_MS",
"type": "shell",
"command": "${workspaceFolder}\\.vscode\\scripts\\clean.bat",
"args": [
"${workspaceFolder}/build/X256_MS"
],
"problemMatcher": []
},
{
"label": "CMake: 配置并构建 X256_PS (Release)",
"dependsOrder": "sequence",
"dependsOn": [
"CMake: 配置 X256_PS (Release, MSVC2022 x64)",
"CMake: 构建 X256_PS (Release)"
"Release",
"OFF"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
"problemMatcher": [
"$msCompile"
],
"presentation": {
"reveal": "always",
"panel": "shared"
}
},
{
"label": "CMake: 配置并构建 X256_PS (Debug)",
"dependsOrder": "sequence",
"dependsOn": [
"CMake: 配置 X256_PS (Debug, MSVC2022 x64)",
"CMake: 构建 X256_PS (Debug)"
"label": "配置并构建全部(Release/REC_ON)",
"detail": "Release + RDP_DATA_RECORD=ON:X256_PS 与 X256_MS 分别配置并构建",
"type": "shell",
"command": "${workspaceFolder}\\.vscode\\scripts\\build_all.bat",
"args": [
"Release",
"ON"
],
"group": "build",
"problemMatcher": []
"problemMatcher": [
"$msCompile"
],
"presentation": {
"reveal": "always",
"panel": "shared"
}
},
{
"label": "CMake: 配置并构建 X256_MS (Release)",
"dependsOrder": "sequence",
"dependsOn": [
"CMake: 配置 X256_MS (Release, MSVC2022 x64)",
"CMake: 构建 X256_MS (Release)"
"label": "配置并构建全部(Debug/REC_OFF)",
"detail": "Debug + RDP_DATA_RECORD=OFF:X256_PS 与 X256_MS 分别配置并构建",
"type": "shell",
"command": "${workspaceFolder}\\.vscode\\scripts\\build_all.bat",
"args": [
"Debug",
"OFF"
],
"group": "build",
"problemMatcher": []
"problemMatcher": [
"$msCompile"
],
"presentation": {
"reveal": "always",
"panel": "shared"
}
},
{
"label": "CMake: 配置并构建 X256_MS (Debug)",
"dependsOrder": "sequence",
"dependsOn": [
"CMake: 配置 X256_MS (Debug, MSVC2022 x64)",
"CMake: 构建 X256_MS (Debug)"
"label": "配置并构建全部(Debug/REC_ON)",
"detail": "Debug + RDP_DATA_RECORD=ON:X256_PS 与 X256_MS 分别配置并构建",
"type": "shell",
"command": "${workspaceFolder}\\.vscode\\scripts\\build_all.bat",
"args": [
"Debug",
"ON"
],
"group": "build",
"problemMatcher": []
},
{
"label": "CMake: 配置并构建全部 (X256_PS + X256_MS, Release)",
"dependsOrder": "sequence",
"dependsOn": [
"CMake: 配置并构建 X256_PS (Release)",
"CMake: 配置并构建 X256_MS (Release)"
"problemMatcher": [
"$msCompile"
],
"problemMatcher": []
"presentation": {
"reveal": "always",
"panel": "shared"
}
}
]
}