Update README.md: Use ninja

This commit is contained in:
jaxl 2020-08-07 12:27:30 +08:00
parent 080542c8db
commit 5650b212f2

View File

@ -80,7 +80,8 @@ Please make each contribution reasonably small. If you would like to make a big
It is recommended to install 16GB RAM in your build system.
### Build System
CMake 3.13.4 or newer is required. [Download](https://cmake.org/download/) and install proper one if the cmake is older than 3.13.4.
* CMake 3.13.4 or newer is required. [Download](https://cmake.org/download/) and install proper one if the cmake is older than 3.13.4.
* Ninja is requred.
### Install Dev and Tools Packages
#### Ubuntu
@ -143,18 +144,17 @@ repo sync
```
cd <vulkandriver_path>/drivers/xgl
cmake -H. -Bbuilds/Release64
cmake -H. -G Ninja -Bbuilds/Release64
cd builds/Release64
make -j$(nproc)
ninja
```
> **Note:**
* For RedHat 7.x, please use cmake3(>= 3.13.4) instead of cmake.
* For debug build, use `-DCMAKE_BUILD_TYPE=Debug`.
* For debug build, use `-DCMAKE_BUILD_TYPE=Debug -DLLVM_PARALLEL_LINK_JOBS=2` (Linking a debug build of llvm is very memory intensive, so we use only two parallel jobs).
* For 32-bit build, use `-DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32`.
* To enable Wayland support, use `-DBUILD_WAYLAND_SUPPORT=ON`.
* If the build runs into errors like "collect2: fatal error: ld terminated with signal 9 [Killed]" due to out of memory, you could try with reducing the number of threads in "make" command.
## Installation Instructions
### Install Vulkan SDK