mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2024-10-28 08:49:35 +01:00
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
This commit is contained in:
parent
bd45d6a406
commit
690f2dd85c
3 changed files with 138 additions and 2 deletions
13
.gitignore
vendored
13
.gitignore
vendored
|
@ -1,9 +1,18 @@
|
||||||
*.user
|
*.user
|
||||||
doc/Doxyfile
|
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/
|
GeneratedFiles/
|
||||||
.vs/
|
|
||||||
.vscode/
|
|
||||||
x64/
|
x64/
|
||||||
x86/
|
x86/
|
||||||
[wW]in32/
|
[wW]in32/
|
||||||
|
|
75
.vscode/launch.json
vendored
Normal file
75
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
{
|
||||||
|
"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",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
52
.vscode/tasks.json
vendored
Normal file
52
.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
"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."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue