mirror of
https://github.com/Maschell/SDL2_Playground.git
synced 2024-11-15 01:25:06 +01:00
51 lines
1.4 KiB
Markdown
51 lines
1.4 KiB
Markdown
# Building
|
|
|
|
## Windows binaries
|
|
|
|
### Windows with devkitPros version of msys2
|
|
Setup mingw:
|
|
1. Add the mingw64 repository to `/etc/pacman.conf`.
|
|
```
|
|
[mingw64]
|
|
Server = https://repo.msys2.org/mingw/x86_64
|
|
```
|
|
2. Install packages (List taken from [here](https://gist.github.com/thales17/fb2e4cff60890a51d9dddd4c6e832ad2))
|
|
```
|
|
pacman -Syu
|
|
pacman -S git mingw-w64-x86_64-toolchain mingw64/mingw-w64-x86_64-SDL2 mingw64/mingw-w64-x86_64-SDL2_mixer mingw64/mingw-w64-x86_64-SDL2_image mingw64/mingw-w64-x86_64-SDL2_ttf mingw64/mingw-w64-x86_64-SDL2_net mingw64/mingw-w64-x86_64-cmake make
|
|
```
|
|
3. Set the environment variable `MINGW64_PREFIX` to `C:/devkitPro/msys2/mingw64/bin/`
|
|
|
|
4. Build!
|
|
```
|
|
make -f .\Makefile.pc-win
|
|
```
|
|
|
|
### Windows with docker
|
|
|
|
```
|
|
docker build . -f .\Dockerfile.pc-win -t sdl2_playground-builder-pc-win
|
|
docker run -it --rm -v ${PWD}:/project sdl2_playground-builder-pc-win make -f .\Makefile.pc-win -j16
|
|
```
|
|
|
|
## Wii U binaries
|
|
|
|
### With docker
|
|
|
|
```
|
|
docker build . -f .\Dockerfile.wiiu -t sdl2_playground-builder-wiiu
|
|
|
|
docker run -it --rm -v ${PWD}:/project sdl2_playground-builder-wiiu make -f .\Makefile.wiiu -j16
|
|
```
|
|
|
|
### With local installation
|
|
|
|
Install the following packages via [devkitPros pacman](https://devkitpro.org/wiki/devkitPro_pacman):
|
|
```
|
|
(dkp)pacman -S devkitPPC wut-tools wut wiiu-portlibs wiiu-sdl2-libs
|
|
```
|
|
|
|
Build via:
|
|
```
|
|
make -f Makefile.wiiu
|
|
``` |