2023-02-25 06:15:53 +00:00
|
|
|
# build ninja
|
2022-11-15 02:49:25 +00:00
|
|
|
|
2023-02-25 06:15:53 +00:00
|
|
|
## 获取代码
|
|
|
|
```
|
2022-11-15 02:49:25 +00:00
|
|
|
git clone https://gitee.com/openharmony/third_party_ninja.git
|
2023-02-25 06:15:53 +00:00
|
|
|
```
|
2022-11-15 02:49:25 +00:00
|
|
|
|
2023-02-25 06:15:53 +00:00
|
|
|
## 通过python脚本构建生成二进制文件
|
|
|
|
```
|
2022-11-15 02:49:25 +00:00
|
|
|
cd third_party_ninja
|
|
|
|
./configure.py --bootstrap
|
2023-02-25 06:15:53 +00:00
|
|
|
```
|
2022-11-15 02:49:25 +00:00
|
|
|
|
2023-02-25 06:15:53 +00:00
|
|
|
## 通过CMake编译生成二进制文件
|
|
|
|
```
|
2022-11-15 02:49:25 +00:00
|
|
|
cd third_party_ninja
|
2023-02-25 06:15:53 +00:00
|
|
|
cmake -Bbuild-cmake
|
2022-11-15 02:49:25 +00:00
|
|
|
cmake --build build-cmake
|
2023-02-25 06:15:53 +00:00
|
|
|
```
|