245 lines
No EOL
7.2 KiB
JSON
245 lines
No EOL
7.2 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
// =============================================================
|
|
// СБОРКА
|
|
// =============================================================
|
|
{
|
|
"label": "🔨 Build",
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"type": "shell",
|
|
"command": "just",
|
|
"args": [
|
|
"build::build-${input:project}-${input:buildType}"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}",
|
|
"statusbar": {
|
|
"color": "#ff8bd4",
|
|
"label": "$(debug-console-view-icon) Build",
|
|
"detail": "Build selected firmware"
|
|
}
|
|
},
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
]
|
|
},
|
|
// =============================================================
|
|
// HOST-ТЕСТЫ
|
|
// =============================================================
|
|
{
|
|
"label": "Host Tests",
|
|
"group": {
|
|
"kind": "test",
|
|
"isDefault": true
|
|
},
|
|
"type": "shell",
|
|
"command": "just",
|
|
"args": [
|
|
"build::test-host"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}",
|
|
"statusbar": {
|
|
"color": "#c800ff",
|
|
"label": "$(test-view-icon) Host Tests (Debug)",
|
|
"detail": "Run host unit tests"
|
|
}
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "🔨Host Tests (Release)",
|
|
"group": "test",
|
|
"type": "shell",
|
|
"command": "just",
|
|
"args": [
|
|
"build::test-host-release"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
// =============================================================
|
|
// HIL TARGET-ТЕСТЫ
|
|
// =============================================================
|
|
{
|
|
"label": "🎯 Build HIL Target Tests",
|
|
"group": "build",
|
|
"type": "shell",
|
|
"command": "just",
|
|
"args": [
|
|
"build::build-hil"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}",
|
|
"statusbar": {
|
|
"color": "#00e5ff",
|
|
"label": "$(circuit-board) HIL Tests (Debug)",
|
|
"detail": "Build HIL target firmware"
|
|
}
|
|
},
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
]
|
|
},
|
|
// =============================================================
|
|
// HAB-ОБРАЗЫ
|
|
// =============================================================
|
|
{
|
|
"label": "HAB Image",
|
|
"group": "build",
|
|
"type": "shell",
|
|
"command": "just",
|
|
"args": [
|
|
"build::hab-${input:habProject}-${input:buildType}"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}",
|
|
"statusbar": {
|
|
"color": "#03b3ff",
|
|
"label": "$(package) HAB Image Build",
|
|
"detail": "Build HAB image"
|
|
}
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "📦 HAB Build All (Debug)",
|
|
"group": "build",
|
|
"type": "shell",
|
|
"command": "just",
|
|
"args": [
|
|
"build::hab-all-debug"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "📦 HAB Build All (Release)",
|
|
"group": "build",
|
|
"type": "shell",
|
|
"command": "just",
|
|
"args": [
|
|
"build::hab-all-release"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
// =============================================================
|
|
// УТИЛИТЫ
|
|
// =============================================================
|
|
{
|
|
"label": "🗑️ Clean",
|
|
"group": "build",
|
|
"type": "shell",
|
|
"command": "just",
|
|
"args": [
|
|
"build::clean"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}",
|
|
"statusbar": {
|
|
"color": "#ff8b8b",
|
|
"label": "$(clear-all) Clean",
|
|
"detail": "Remove build artifacts"
|
|
}
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
// =============================================================
|
|
// СБОРКА ДЛЯ ОТЛАДКИ (preLaunchTask — без интерактивных inputs)
|
|
// =============================================================
|
|
{
|
|
"label": "build:firmware-test-debug",
|
|
"type": "shell",
|
|
"hide": true,
|
|
"command": "just",
|
|
"args": [
|
|
"build::build-firmware-test-debug"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"presentation": {
|
|
"reveal": "silent",
|
|
"panel": "shared"
|
|
}
|
|
},
|
|
{
|
|
"label": "build:bootloader-debug",
|
|
"hide": true,
|
|
"type": "shell",
|
|
"command": "just",
|
|
"args": [
|
|
"build::build-bootloader-debug"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"presentation": {
|
|
"reveal": "silent",
|
|
"panel": "shared"
|
|
}
|
|
},
|
|
{
|
|
"label": "build:app-debug",
|
|
"hide": true,
|
|
"type": "shell",
|
|
"command": "just",
|
|
"args": [
|
|
"build::build-app-debug"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"presentation": {
|
|
"reveal": "silent",
|
|
"panel": "shared"
|
|
}
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "project",
|
|
"type": "pickString",
|
|
"description": "Project",
|
|
"options": [
|
|
"firmware-test",
|
|
"bootloader",
|
|
"app",
|
|
"all"
|
|
],
|
|
"default": "firmware-test"
|
|
},
|
|
{
|
|
"id": "buildType",
|
|
"type": "pickString",
|
|
"description": "Build type",
|
|
"options": [
|
|
"debug",
|
|
"release"
|
|
],
|
|
"default": "debug"
|
|
},
|
|
{
|
|
"id": "habProject",
|
|
"type": "pickString",
|
|
"description": "HAB project",
|
|
"options": [
|
|
"firmware-test",
|
|
"bootloader",
|
|
"app"
|
|
],
|
|
"default": "firmware-test"
|
|
}
|
|
]
|
|
} |