File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -16,24 +16,37 @@ xmake -vD
1616```
1717
1818## 克隆项目
19+ ``` bash
1920git clone --recursive https://github.com/f0cii/moxt-cpp.git
21+ ```
2022
2123## 更新代码
24+ ``` bash
2225git pull --recurse-submodules
26+ ```
27+
2328## 更新子模块
29+ ``` bash
2430git submodule update --init --recursive
31+ ```
2532
2633## 使用 Docker 编译
34+ ``` bash
2735docker build -t moxt-cpp -f moxt-cpp.Dockerfile .
36+ ```
2837
2938[ ![ Docker Image CI] ( https://github.com/f0cii/moxt-cpp/actions/workflows/docker-image.yml/badge.svg )] ( https://github.com/f0cii/moxt-cpp/actions/workflows/docker-image.yml )
3039
3140编译后运行docker容器
41+ ``` bash
3242docker run -it moxt-cpp
43+ ```
3344
3445查看编译结果
46+ ``` bash
3547cd /root/moxt-cpp/build/linux/x86_64/release
3648ls
49+ ```
3750将显示如下文件,此so文件即为我们项目编译的最终结果
3851libmoxt.so
3952
You can’t perform that action at this time.
0 commit comments