没想到时隔一年多我还会打开继续编辑这篇文章,这部分就记录一下栖梦端的配置过程吧。

栖梦端(QmClient)是面向中文玩家的社区客户端,在 DDNet 核心玩法之上,提供更现代的界面、清晰的信息反馈与实用的日常功能。
由于之前本机上已经配置过 DDNet 的开发环境了,所以不清楚栖梦端有什么地方是不同的就权当一个简单参考吧。
Fork 仓库后克隆代码
bashgit clone --recursive git@github.com:<YourUserName>/QmClient.git
栖梦端构建配置和目标目录不一样,正好也更新一下 .vscode 文件的内容
json{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Launch client",
"program": "${workspaceFolder}/cmake-build-release/DDNet",
"preLaunchTask": "CMake: build client (shell)",
// use dbg configs like this
// "args": [ "dbg_gfx 0" ],
// enable this to start the debugger with TSAN
// "environment": [ { "name":"TSAN_OPTIONS","value":"ignore_noninstrumented_modules=1" }],
"cwd": "${workspaceFolder}/cmake-build-release",
},
{
"type": "lldb",
"request": "launch",
"name": "Launch server",
"program": "${workspaceFolder}/cmake-build-release/DDNet-Server",
"preLaunchTask": "CMake: build server (shell)",
"cwd": "${workspaceFolder}/cmake-build-release"
},
{
"type": "lldb",
"request": "launch",
"name": "Launch client (debug)",
"program": "${workspaceFolder}/cmake-build-debug/DDNet",
"preLaunchTask": "CMake: build client (shell, debug)",
// use dbg configs like this
// "args": [ "dbg_gfx 0" ],
// enable this to start the debugger with TSAN
// "environment": [ { "name":"TSAN_OPTIONS","value":"ignore_noninstrumented_modules=1" }],
"cwd": "${workspaceFolder}/cmake-build-debug",
},
{
"type": "lldb",
"request": "launch",
"name": "Launch server (debug)",
"program": "${workspaceFolder}/cmake-build-debug/DDNet-Server",
"preLaunchTask": "CMake: build server (shell, debug)",
"cwd": "${workspaceFolder}/cmake-build-debug"
}
]
}
json {
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "CMake: configure (shell, release)",
"command": "cmake",
"args": [
"-S",
"${workspaceFolder}",
"-B",
"${workspaceFolder}/cmake-build-release",
"-G",
"Ninja",
"-DCMAKE_C_COMPILER=clang",
"-DCMAKE_CXX_COMPILER=clang++",
"-DCMAKE_BUILD_TYPE=Release"
],
"problemMatcher": [],
"detail": "Configure cmake-build-release with Ninja + clang (Release)"
},
{
"type": "shell",
"label": "CMake: build client (shell)",
"command": "cmake",
"args": [
"--build",
"${workspaceFolder}/cmake-build-release",
"--target",
"game-client"
],
"dependsOn": "CMake: configure (shell, release)",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"detail": "Build client targets (Ninja + clang, cmake-build-release)"
},
{
"type": "shell",
"label": "CMake: build server (shell)",
"command": "cmake",
"args": [
"--build",
"${workspaceFolder}/cmake-build-release",
"--target",
"game-server"
],
"dependsOn": "CMake: configure (shell, release)",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"detail": "Build server targets (Ninja + clang, cmake-build-release)"
},
{
"type": "shell",
"label": "CMake: configure (shell, debug)",
"command": "cmake",
"args": [
"-S",
"${workspaceFolder}",
"-B",
"${workspaceFolder}/cmake-build-debug",
"-G",
"Ninja",
"-DCMAKE_C_COMPILER=clang",
"-DCMAKE_CXX_COMPILER=clang++",
"-DCMAKE_BUILD_TYPE=Debug"
],
"problemMatcher": [],
"detail": "Configure cmake-build-debug with Ninja + clang"
},
{
"type": "shell",
"label": "CMake: build client (shell, debug)",
"command": "cmake",
"args": [
"--build",
"${workspaceFolder}/cmake-build-debug",
"--target",
"game-client"
],
"dependsOn": "CMake: configure (shell, debug)",
"group": {
"kind": "build"
},
"problemMatcher": [],
"detail": "Build client targets (Debug, Ninja + clang, cmake-build-debug)"
},
{
"type": "shell",
"label": "CMake: build server (shell, debug)",
"command": "cmake",
"args": [
"--build",
"${workspaceFolder}/cmake-build-debug",
"--target",
"game-server"
],
"dependsOn": "CMake: configure (shell, debug)",
"group": {
"kind": "build"
},
"problemMatcher": [],
"detail": "Build server targets (Debug, Ninja + clang, cmake-build-debug)"
}
]
}
bashwget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
sudo ./llvm.sh 22
sudo apt install -y clang-tidy-22
fonttools 是一个用于处理字体文件的 Python 库。它提供了一组功能强大的工具和 API,用于读取、解析、修改和生成各种字体文件格式,如 TrueType、OpenType、WOFF 等。
bashsudo apt install python3-fonttools
本文作者:Zerol Acqua
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!