From 804aa6b7cebb1957c0661524439ed6892371fe8a Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 30 Aug 2020 17:16:12 +0200 Subject: [PATCH] Add Dockerfile for building the Wii U version --- Dockerfile.wiiu | 5 +++++ README.md | 32 +++++++++++++++++++++++++------- 2 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 Dockerfile.wiiu diff --git a/Dockerfile.wiiu b/Dockerfile.wiiu new file mode 100644 index 0000000..b68d028 --- /dev/null +++ b/Dockerfile.wiiu @@ -0,0 +1,5 @@ +FROM wiiuenv/devkitppc:20200810 + +RUN dkp-pacman -Syu && dkp-pacman -S --noconfirm wiiu-sdl2-libs && dkp-pacman -Scc --noconfirm + +WORKDIR project \ No newline at end of file diff --git a/README.md b/README.md index 958ebc5..0c692d1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Building -## Windows with devkitPros version of msys2 +## Windows binaries + +### Windows with devkitPros version of msys2 Setup mingw: 1. Add the mingw64 repository to `/etc/pacman.conf`. ``` @@ -10,24 +12,40 @@ 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 mingw-w64-x86_64-glm make +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 +### 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 +## Wii U binaries -And these from [dkp-libs](https://devkitpro.org/wiki/devkitPro_pacman): -- `(dkp)pacman -S devkitPPC wut-tools wut wiiu-portlibs wiiu-sdl2-libs` +### 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` \ No newline at end of file +``` +make -f Makefile.wiiu +``` \ No newline at end of file