-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtasks.json
86 lines (86 loc) · 3.05 KB
/
tasks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
// Build tasks
{
"label": "build workspace",
"detail": "Build ROS 2 workspace",
"type": "shell",
"command": "colcon build --symlink-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$gcc"
},
{
"label": "build pedantic release",
"detail": "Build workspace with release info and with all warnings enabled",
"type": "shell",
"command": "colcon build --symlink-install --cmake-args '-DCMAKE_BUILD_TYPE=RelWithDebInfo' '-DCMAKE_EXPORT_COMPILE_COMMANDS=On' -Wall -Wextra -Wpedantic",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$gcc"
},
{
"label": "build single package",
"detail": "Build single ROS 2 package",
"type": "shell",
"command": "colcon build --symlink-install --packages-select ${input:package} --cmake-args '-DCMAKE_EXPORT_COMPILE_COMMANDS=On'",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$gcc"
},
{
"label": "debug workspace",
"detail": "Build ROS 2 workspace with debug symbols",
"type": "shell",
"command": "colcon build --symlink-install --cmake-args '-DCMAKE_BUILD_TYPE=Debug'",
"group": "build",
"problemMatcher": "$gcc"
},
{
"label": "debug single package",
"detail": "Build single ROS 2 package with debug symbols",
"type": "shell",
"command": "colcon build --symlink-install --packages-select ${input:package} --cmake-args '-DCMAKE_BUILD_TYPE=Debug'",
"group": "build",
"problemMatcher": "$gcc"
},
{
"label": "source-humble",
"detail": "Sources the current workspace with bash shell",
"type": "shell",
"command": "source ${workspaceFolder}/install/setup.bash && printenv > ${workspaceFolder}/local_humble_ws.env",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$gcc"
},
{
"label": "test workspace",
"detail": "Run all unit tests and show results.",
"type": "shell",
"command": "colcon test && colcon test-result --all",
"group": {
"kind": "test",
"isDefault": true
}
}
],
"inputs": [
{
"id": "package",
"type": "promptString",
"description": "Package name",
"default": "demo_nodes_cpp"
}
]
}