larra/.vscode/tasks.json

64 lines
2 KiB
JSON
Raw Normal View History

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"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"
]
},
{
"label": "Build Debug GCC",
"type": "shell",
"command": [
"cd ${workspaceFolder} &&",
"mkdir -p build && cd build &&",
2024-10-09 11:42:06 +00:00
"cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_EXAMPLES=ON -DENABLE_TESTS=ON .. &&",
"cmake --build . --parallel `nproc`",
"|| ( printf '\n\n\t\\e[31mERROR: Build failed!\\e[0m\n\n\n' && exit 1 )"
],
"options": {
"env": {}
},
"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 &&",
2024-10-09 11:42:06 +00:00
"cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_EXAMPLES=ON -DENABLE_TESTS=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",
"CXX": "/usr/sbin/clang++"
}
},
"presentation": {
"clear": true
},
"problemMatcher": []
}
]
}