Note: Since i hadn't documented how to the build csprite v0.1.x, i've documented it now on the basis of how it was built on github actions using the .github/workflows/ci.yml
file.
Windows
- install msys2
- install required dependencies in msys2 mingw64 shell:
pacman -S mingw-w64-x86_64-clang mingw-w64-x86_64-glfw mingw-w64-x86_64-python mingw-w64-x86_64-python-numpy mingw-w64-x86_64-python-pillow scons make git
Note: If you want to build for x32 bit system replace the x86_64
from above packages with i686
- Get the source code:
git clone https://github.com/pegvin/csprite --recursive -b v0.1.0
- Generate required assets:
python3 tools/create_icons.py && python3 tools/create_assets.py
- Build the source:
- Debug:
make all CC=clang
- Release:
make release CC=clang
- Debug:
Linux
Install dependencies
- Debian:
apt install libglfw3 libglfw3-dev git scons
python3 -m pip install --upgrade Pillow
python3 -m pip install --upgrade numpy
- Debian:
Get the source code:
git clone https://github.com/pegvin/csprite --recursive -b v0.1.0
Generate required assets:
python3 tools/create_icons.py && python3 tools/create_assets.py
Build the source:
- Debug:
make all
- Release:
make release
- Debug:
macOS
- Install deps with homebrew & pip:
brew install scons dylibbundler glfw && python3 -m pip install --upgrade Pillow && python3 -m pip install --upgrade numpy
- Get the source code:
git clone https://github.com/pegvin/csprite --recursive
- Generate required assets:
python3 tools/create_icons.py && python3 tools/create_assets.py
- Build The Source:
- Debug:
make all
- Release:
make release
- Debug: