Skip to content
Snippets Groups Projects
Commit 690f2dd8 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

misc: add vscode task/launch configurations

This is a good start, but will need to be adapted for other platforms and improved over time.

Change-Id: Ib64046e852c3aa9cc9b492d0af8cee33ee1ff5de
parent bd45d6a4
No related branches found
No related tags found
No related merge requests found
*.user
doc/Doxyfile
### VisualStudioCode ###
.vscode/**/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
### VisualStudioCode Patch ###
# Ignore all local history of files
**/.history
GeneratedFiles/
.vs/
.vscode/
x64/
x86/
[wW]in32/
......
{
"version": "0.2.0",
"configurations": [
{
"name": "Jami-Tests-Run",
"type": "cppdbg",
"request": "launch",
"program": "/usr/bin/ctest",
"args": ["-V", "-R"],
"cwd": "${workspaceFolder}/build/tests",
"externalConsole": false,
"environment": [
{
"name": "HOME",
"value": "/tmp"
}
]
},
{
"name": "Jami-Client",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/jami",
"args": [
"-d",
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "cmake-build",
"miDebuggerPath": "/usr/bin/gdb",
},
{
"name": "Jami-Daemon-Debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/daemon/bin/dbus/jamid",
"args": [
"-cdp",
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "cmake-build",
"miDebuggerPath": "/usr/bin/gdb",
}
],
"compounds": [
{
"name": "Jami-Client-IPC",
"configurations": [
"Jami-Daemon-Debug",
"Jami-Client",
]
}
]
}
\ No newline at end of file
{
"version": "2.0.0",
"tasks": [
{
"label": "cmake-configure",
"type": "shell",
"command": "cmake",
"args": [
"-S", ".",
"-B", "build",
"-DCMAKE_BUILD_TYPE=Debug",
"-DCMAKE_PREFIX_PATH=\"/usr/lib64/qt-jami;/usr/lib/libqt-jami\"",
"-DBUILD_TESTING=True"
],
"group": "build",
"problemMatcher": [],
"detail": "Generate the build system files with CMake."
},
{
"label": "cmake-build",
"type": "shell",
"command": "cmake",
"args": [
"--build", "build",
"-j$(nproc)",
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
],
"detail": "Compile the project using the generated build system.",
"dependsOn": [
"cmake-configure"
]
},
{
"label": "cmake-clean",
"type": "shell",
"command": "rm",
"args": [
"-rf",
"build"
],
"group": "build",
"problemMatcher": [],
"detail": "Clean the build directory."
}
]
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment