-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.json
74 lines (74 loc) · 1.77 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
{
"version": "2.0.0",
"tasks": [
{
"label": "CMake: Configure for Jetson Nano",
"type": "shell",
"command": "cmake",
"args": ["--preset", "jetson-nano"],
"group": "build"
},
{
"label": "Build for Jetson Nano",
"type": "shell",
"command": "cmake",
"args": ["--build", "build/jetson-nano"],
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": "CMake: Configure for Jetson Nano"
},
{
"label": "Deploy to Jetson Nano",
"type": "shell",
"command": "bash",
"args": [
"-c",
"'rsync -avz --delete \"${workspaceRoot}/build/jetson-nano/\" ${input:jetson-host}:${input:jetson-path}'"
],
"problemMatcher": [],
"runOptions": {
"instanceLimit": 1
},
"dependsOn": "Build for Jetson Nano"
},
{
"label": "Start gdbserver on Jetson Nano",
"type": "shell",
"command": "bash",
"args": [
"-c",
"'ssh ${input:jetson-host} \"gdbserver :2000 ${input:jetson-path}/myapp\"'"
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "dedicated",
"showReuseMessage": false,
"clear": false
},
"isBackground": true,
"runOptions": {
"instanceLimit": 1
},
"dependsOn": "Deploy to Jetson Nano"
}
],
"inputs": [
{
"id": "jetson-host",
"type": "promptString",
"description": "Target Jetson hostname or user@hostname",
"default": "jetson"
},
{
"id": "jetson-path",
"type": "promptString",
"description": "Target deployment directory on the Jetson",
"default": "/app"
}
]
}