Skip to content

Commit 3e4b4e5

Browse files
committed
vscode: add launch and tasks to run UI demo
1 parent 0681ac6 commit 3e4b4e5

3 files changed

Lines changed: 70 additions & 0 deletions

File tree

.vscode/launch.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "(gdb) Launch UI Demo",
6+
"type": "cppdbg",
7+
"request": "launch",
8+
"preLaunchTask": "ev3devKit-ui-demo",
9+
"program": "${workspaceRoot}/build/ev3devKit-ui-demo",
10+
"args": [],
11+
"stopAtEntry": false,
12+
"cwd": "${workspaceRoot}",
13+
"environment": [
14+
{
15+
"name": "GRX_DRIVER",
16+
"value": "gw 178 gh 128 gc 1 dp 114"
17+
}
18+
],
19+
"externalConsole": true,
20+
"MIMode": "gdb",
21+
"setupCommands": [
22+
{
23+
"description": "Enable pretty-printing for gdb",
24+
"text": "-enable-pretty-printing",
25+
"ignoreFailures": true
26+
}
27+
]
28+
}
29+
]
30+
}

.vscode/tasks.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"type": "shell",
6+
"command": "make",
7+
"args": [
8+
"-s", "-C", "build"
9+
],
10+
"tasks": [
11+
{
12+
"taskName": "all",
13+
"group": {
14+
"kind": "build",
15+
"isDefault": true
16+
},
17+
"problemMatcher": [
18+
"$valac"
19+
]
20+
},
21+
{
22+
"taskName": "clean",
23+
"problemMatcher": []
24+
},
25+
{
26+
"taskName": "ev3devKit-ui-demo",
27+
"problemMatcher": [
28+
"$valac"
29+
]
30+
}
31+
]
32+
}

setup.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Create the build directory and initalize it
2+
3+
file (MAKE_DIRECTORY build)
4+
5+
execute_process (
6+
COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=Debug ..
7+
WORKING_DIRECTORY build
8+
)

0 commit comments

Comments
 (0)