Skip to content

Commit

Permalink
Task refactor and launch.json add
Browse files Browse the repository at this point in the history
  • Loading branch information
SavenkovIgor committed Aug 26, 2024
1 parent 3485d08 commit 3667296
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 10 deletions.
57 changes: 57 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Desktop Dev",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/desktop_dev/TermGraph",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "Build",
"miDebuggerPath": "/usr/bin/gdb",
"miDebuggerArgs": "",
"logging": {
"moduleLoad": false,
"trace": false
}
},
{
"name": "Debug Desktop Release",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/desktop_release/TermGraph",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "Build",
"miDebuggerPath": "/usr/bin/gdb",
"miDebuggerArgs": "",
"logging": {
"moduleLoad": false,
"trace": false
}
}
]
}
31 changes: 21 additions & 10 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,45 @@
{
"version": "2.0.0",
"inputs": [
{
"id": "preset",
"type": "pickString",
"description": "Select the preset:",
"options": [
"desktop_dev",
"desktop_release"
]
}
],
"tasks": [
{
"label": "Build from script",
"label": "Build",
"type": "shell",
"command": "./project.py --build",
"command": "source .venv/bin/activate && ./project.py --build --preset ${input:preset}",
"problemMatcher": "$msCompile"
},
{
"label": "Run from script",
"label": "Run",
"type": "shell",
"command": "./project.py --run",
"command": "source .venv/bin/activate && ./project.py --run --preset ${input:preset}",
"problemMatcher": "$msCompile"
},
{
"label": "Test from script",
"label": "Test",
"type": "shell",
"command": "./project.py --test",
"command": "source .venv/bin/activate && ./project.py --test --preset ${input:preset}",
"problemMatcher": "$msCompile"
},
{
"label": "Clear",
"type": "shell",
"command": "./project.py --clear",
"command": "source .venv/bin/activate && ./project.py --clear",
"problemMatcher": "$msCompile"
},
{
"label": "Build and run",
"type": "shell",
"command": "./project.py --build --run",
"label": "Build and Run",
"dependsOn": ["Build", "Run"],
"dependsOrder": "sequence",
"problemMatcher": "$msCompile"
}
]
Expand Down

0 comments on commit 3667296

Please sign in to comment.