15 lines
851 B
Markdown
15 lines
851 B
Markdown
My build command
|
|
```bash
|
|
CXX=clang++ CC=clang cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -GNinja -B build . && cmake --build build -j16
|
|
```
|
|
|
|
## Development
|
|
This project relies on a webgpu native implementation called dawn. If you plan
|
|
on doing any development in this project you should install it systemwide to
|
|
reduce the chances of having to re-install it while working on the project.
|
|
I like to use this command to generate the build project so it has debug headers
|
|
and is a shared library for faster linking `cmake -S . -B out/Debug -G Ninja
|
|
-DDAWN_FETCH_DEPENDENCIES=ON -DDAWN_ENABLE_INSTALL=ON -DGLFW_INSTALL=ON
|
|
-DCMAKE_BUILD_TYPE=Debug -DDAWN_BUILD_MONOLITHIC_LIBRARY=SHARED
|
|
-DDAWN_BUILD_SAMPLES=OFF` and use the rest of the instructions
|
|
[here](https://dawn.googlesource.com/dawn.git/+/HEAD/docs/quickstart-cmake.md).
|