整理初版
This commit is contained in:
41
docs/build-remote.md
Normal file
41
docs/build-remote.md
Normal 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`,本项目构建验证视为通过。
|
||||
Reference in New Issue
Block a user