Update build system

This commit is contained in:
Isaac 2025-11-22 03:17:01 +08:00
parent 326fe35598
commit dd8040f00c
6 changed files with 40 additions and 6 deletions

12
.vscode/launch.json vendored
View file

@ -12,6 +12,18 @@
"internalConsoleOptions": "openOnSessionStart",
"timeout": 1000
},
{
"name": "Restart Debug Telegram",
"type": "lldb-dap",
"request": "attach",
"preLaunchTask": "Restart Telegram Debug",
"debuggerRoot": "${workspaceFolder}",
"attachCommands": [
"process connect connect://localhost:6667"
],
"internalConsoleOptions": "openOnSessionStart",
"timeout": 1000
},
],
"options": {
"console": "integratedTerminal",

24
.vscode/tasks.json vendored
View file

@ -4,7 +4,7 @@
{
"label": "Build Telegram",
"type": "shell",
"command": "${workspaceFolder}/build-input/bazel-8.3.1-darwin-arm64",
"command": "${workspaceFolder}/build-input/bazel-8.4.2-darwin-arm64",
"args": [
"build",
"Telegram/Telegram",
@ -74,6 +74,28 @@
"reveal": "always",
"panel": "dedicated"
}
},
{
"label": "Stop Telegram Debug Session",
"type": "shell",
"command": "pkill -f 'launch_and_debug.sh' || true; lsof -ti:6667 | xargs kill -9 2>/dev/null || true",
"problemMatcher": [],
"presentation": {
"reveal": "silent",
"close": true
}
},
{
"label": "Restart Telegram Debug",
"dependsOrder": "sequence",
"dependsOn": [
"Stop Telegram Debug Session",
"_launch_telegram"
],
"problemMatcher": [],
"presentation": {
"reveal": "always"
}
}
]
}