整理初版

This commit is contained in:
2026-05-08 19:03:47 +08:00
parent a605fb2bea
commit 056dd70ab7
8 changed files with 122 additions and 40 deletions

41
docs/build-remote.md Normal file
View File

@@ -0,0 +1,41 @@
# 远程编译验证
本机只编辑挂载的远程工作区,实际编译在 CentOS 7 编译机上完成。
## 远端环境
- SSH`root@192.168.200.110`
- 项目目录:`/home/Project/dps`
- xmake`/root/.local/bin/xmake`
- 构建目标:`Aurora`
## 常用命令
配置 debug 构建:
```bash
ssh root@192.168.200.110 "cd /home/Project/dps && /root/.local/bin/xmake f -m debug"
```
编译 Aurora
```bash
ssh root@192.168.200.110 "cd /home/Project/dps && /root/.local/bin/xmake build Aurora"
```
一次性配置并编译:
```bash
ssh root@192.168.200.110 "cd /home/Project/dps && /root/.local/bin/xmake f -m debug && /root/.local/bin/xmake build Aurora"
```
## 已知环境提示
SSH 登录时可能出现:
```text
/etc/profile.d/dps-java.sh: line 3: export
JAVA_HOME="/java_env/jdk1.8.0_161": No such file or directory
```
这是远端环境脚本的已知噪音。只要 xmake 返回成功并显示 `build ok`,本项目构建验证视为通过。