Building for Linux - Supernova (original) (raw)
1. Clone Supernova repo¶
git clone https://github.com/supernovaengine/supernova.git
2. Install dependencies¶
- libglfw3-dev
- libxi-dev
- libxcursor-dev
- libgl1-mesa-dev
- ninja-build cmake
3. Build for Linux¶
a. Using build tool¶
In tools
directory:
python3 supernova.py --build --platform linux
b. Using CMake¶
In Supernova root directory:
cmake \ -S . \ -B build \ -DCMAKE_BUILD_TYPE=Debug \ -G "Ninja" \ -DCMAKE_INSTALL_PREFIX:PATH=instdir
cmake --build build --config Debug --target supernova-project
cmake --install build --config Debug --strip