2024-09-15 20:50:01 +00:00
|
|
|
{
|
|
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
|
|
// for the documentation about the tasks.json format
|
|
|
|
"version": "2.0.0",
|
|
|
|
"tasks": [
|
2024-09-25 16:16:34 +00:00
|
|
|
{
|
|
|
|
"label": "Ejabberd: show logs",
|
|
|
|
"type": "shell",
|
|
|
|
"command": [
|
|
|
|
"sudo docker exec -it ejabberd tail -f logs/ejabberd.log"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Ejabberd: open shell",
|
|
|
|
"type": "shell",
|
|
|
|
"command": [
|
|
|
|
"sudo docker exec -it ejabberd sh"
|
|
|
|
]
|
|
|
|
},
|
2024-09-15 20:50:01 +00:00
|
|
|
{
|
|
|
|
"label": "Build Debug GCC",
|
|
|
|
"type": "shell",
|
|
|
|
"command": [
|
|
|
|
"cd ${workspaceFolder} &&",
|
|
|
|
"mkdir -p build && cd build &&",
|
|
|
|
"cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_EXAMPLES=ON .. &&",
|
|
|
|
"cmake --build . --parallel `nproc`",
|
|
|
|
"|| ( printf '\n\n\t\\e[31mERROR: Build failed!\\e[0m\n\n\n' && exit 1 )"
|
|
|
|
],
|
|
|
|
"options": {
|
2024-09-25 16:16:34 +00:00
|
|
|
"env": {}
|
2024-09-15 20:50:01 +00:00
|
|
|
},
|
|
|
|
"presentation": {
|
|
|
|
"clear": true
|
|
|
|
},
|
|
|
|
"problemMatcher": [],
|
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Build Debug Clang",
|
|
|
|
"type": "shell",
|
|
|
|
"command": [
|
|
|
|
"cd ${workspaceFolder} &&",
|
|
|
|
"mkdir -p build_clang && cd build_clang &&",
|
|
|
|
"cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_EXAMPLES=ON .. &&",
|
|
|
|
"cmake --build . --parallel `nproc`",
|
|
|
|
"|| ( printf '\n\n\t\\e[31mERROR: Build failed!\\e[0m\n\n\n' && exit 1 )"
|
|
|
|
],
|
|
|
|
"options": {
|
|
|
|
"env": {
|
|
|
|
"CC": "/usr/sbin/clang",
|
2024-09-25 16:16:34 +00:00
|
|
|
"CXX": "/usr/sbin/clang++"
|
2024-09-15 20:50:01 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"presentation": {
|
|
|
|
"clear": true
|
|
|
|
},
|
|
|
|
"problemMatcher": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|