2024-04-09 23:05:55 +02:00
|
|
|
{
|
|
|
|
"version": "2.0.0",
|
|
|
|
"tasks": [
|
2024-04-10 23:05:00 +02:00
|
|
|
{
|
|
|
|
"label": "run-tests",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "ctest",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}/build/tests",
|
|
|
|
"env": {
|
|
|
|
"HOME": "/tmp"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"args": [
|
|
|
|
"-V",
|
|
|
|
"-R"
|
|
|
|
],
|
|
|
|
"group": {
|
|
|
|
"kind": "test",
|
|
|
|
"isDefault": true
|
|
|
|
},
|
|
|
|
"problemMatcher": [],
|
|
|
|
"detail": "Run the tests using CTest."
|
|
|
|
},
|
2024-04-09 23:05:55 +02:00
|
|
|
{
|
|
|
|
"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\"",
|
2024-04-10 23:05:00 +02:00
|
|
|
],
|
|
|
|
"group": "build",
|
|
|
|
"problemMatcher": [],
|
|
|
|
"detail": "Generate the build system files with CMake."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "cmake-configure-tests",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "cmake",
|
|
|
|
"args": [
|
|
|
|
"-S", ".",
|
|
|
|
"-B", "build",
|
|
|
|
"-DBUILD_TESTING=${input:buildTestingInput}"
|
2024-04-09 23:05:55 +02:00
|
|
|
],
|
|
|
|
"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."
|
|
|
|
}
|
2024-04-10 23:05:00 +02:00
|
|
|
],
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"id": "buildTestingInput",
|
|
|
|
"type": "pickString",
|
|
|
|
"description": "Do you want to enable testing?",
|
|
|
|
"options": ["True", "False"],
|
|
|
|
}
|
2024-04-09 23:05:55 +02:00
|
|
|
]
|
|
|
|
}
|