blob: 8582c8a547d24fc9284c7127fcf0f09901be7cb3 [file] [log] [blame]
{
"version": "2.0.0",
"tasks": [
{
"label": "Main Build",
"type": "shell",
"command": "scripts/build/default.sh",
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": false,
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": {
"base": "$gcc",
"fileLocation": ["relative", "${workspaceFolder}/out/default/"]
}
},
{
"label": "Build & Test (all)",
"type": "shell",
"command": "./gn_build.sh",
"group": "build",
"isBackground": false,
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": {
"base": "$gcc",
"fileLocation": ["relative", "${workspaceFolder}/out/debug/"]
}
},
{
"label": "Update compilation database",
"type": "shell",
"command": "scripts/helpers/update_compile_commands.sh",
"group": "none",
"dependsOn": "Build & Test (all)",
"isBackground": false,
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": []
},
{
"label": "Run Unit and Functional Tests",
"type": "shell",
"command": "scripts/tests/all_tests.sh",
"group": "test",
"problemMatcher": {
"base": "$gcc",
"fileLocation": ["relative", "${workspaceFolder}/out/default/"]
}
},
{
"label": "Bootstrap",
"type": "shell",
"command": "bash scripts/bootstrap.sh",
"group": "none",
"problemMatcher": ["$gcc"]
},
{
"label": "Clean Output",
"type": "shell",
"command": "scripts/helpers/clean.sh",
"group": "none",
"problemMatcher": ["$gcc"]
},
{
"label": "Clean Tree",
"type": "shell",
"command": "scripts/helpers/clean_tree.sh",
"group": "none",
"problemMatcher": ["$gcc"]
},
{
"label": "Build Shell",
"type": "shell",
"command": "scripts/examples/gn_build_example.sh examples/shell out/shell",
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": ["relative", "${workspaceFolder}/out/shell/"]
}
},
{
"label": "Build Chip Tool",
"type": "shell",
"command": "scripts/examples/gn_build_example.sh examples/chip-tool out/chip_tool",
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/out/chip_tool/"
]
}
},
{
"label": "Build Lighting App (Linux)",
"type": "shell",
"command": "scripts/examples/gn_build_example.sh examples/lighting-app/linux out/lighting-app",
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/out/lighting-app/"
]
}
},
{
"label": "Build QPG6100 Lock Example",
"type": "shell",
"command": "scripts/examples/gn_build_example.sh examples/lock-app/qpg6100 out/qpg6100_lock_app",
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/out/qpg6100_lock_app/"
]
}
},
{
"label": "Build EFR32 Lock Example",
"type": "shell",
"command": "scripts/examples/gn_build_example.sh examples/lock-app/efr32 out/efr32_lock_app",
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/out/efr32_lock_app/"
]
}
},
{
"label": "Build EFR32 Light Example",
"type": "shell",
"command": "scripts/examples/gn_build_example.sh examples/lighting-app/efr32 out/efr32_lighting_app",
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/out/efr32_lighting/"
]
}
},
{
"label": "Build Minimal MDNS Example",
"type": "shell",
"command": "scripts/examples/gn_build_example.sh examples/minimal-mdns out/minimal_mdns 'chip_build_tools=false is_debug=false optimize_for_size=true'",
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/out/minimal_mdns/"
]
}
},
{
"label": "Build ESP32 all-clusters-app Example",
"type": "shell",
"command": "scripts/examples/build-all-clusters-app.py",
"group": "build",
"problemMatcher": ["$gcc"]
},
{
"label": "Build Android App",
"type": "shell",
"command": "TARGET_CPU=arm64 scripts/examples/android_app.sh",
"group": "build",
"problemMatcher": ["$gcc"]
},
{
"label": "Build nRF Connect Lock Example (nRF52840)",
"type": "shell",
"command": "source scripts/activate.sh && scripts/examples/nrfconnect_example.sh lock-app nrf52840dk_nrf52840",
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/examples/lock-app/nrfconnect/build"
]
}
},
{
"label": "Build nRF Connect Lighting Example (nRF52840)",
"type": "shell",
"command": "source scripts/activate.sh && scripts/examples/nrfconnect_example.sh lighting-app nrf52840dk_nrf52840",
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/examples/lighting-app/nrfconnect/build"
]
}
},
{
"label": "Build nRF Connect Shell Example (nRF52840)",
"type": "shell",
"command": "source scripts/activate.sh && scripts/examples/nrfconnect_example.sh shell nrf52840dk_nrf52840",
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/examples/shell/nrfconnect/build"
]
}
},
{
"label": "Build nRF Connect Pigweed Example (nRF52840)",
"type": "shell",
"command": "source scripts/activate.sh && scripts/examples/nrfconnect_example.sh pigweed-app nrf52840dk_nrf52840",
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/examples/pigweed-app/nrfconnect/build"
]
}
}
]
}