Go to file
2020-10-03 15:48:19 +02:00
.github/workflows Build Wii U binaries via github actions 2020-10-02 21:33:09 +02:00
cmake first commit 2020-08-30 00:41:54 +02:00
data Add simple Resource manager, fix isInside for rotated elements, optimize/fix mouse/touch inputs, refactor and optimize a lot of classes 2020-09-04 18:36:19 +02:00
src Adopt to new GuiText implementation, display second text 2020-10-03 15:48:19 +02:00
.gitignore Fix building via CMake. 2020-09-05 12:58:27 +02:00
.gitmodules first commit 2020-08-30 00:41:54 +02:00
CMakeLists.txt Fix building via cmake 2020-10-03 15:47:41 +02:00
Dockerfile.pc Unifiy github action workflows into a single one 2020-09-05 13:51:46 +02:00
Dockerfile.wiiu WIP 2020-10-03 11:56:12 +02:00
filelist.sh Add dockerfile for building linux-x86-64 binaries 2020-09-05 11:33:54 +02:00
Makefile.wiiu WIP 2020-10-03 11:56:12 +02:00
README.md WIP 2020-10-03 11:56:12 +02:00

Building

With CMake

Make sure you have installed build-essential make git cmake libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-dev. Then you can do:

# Build the filelist.h
bash ./filelist.sh 
#
mkdir build && cd build && cmake .. && make

Via docker:

# Build the docker image
docker build . -f .\Dockerfile.pc  -t sdl2_playground-builder-pc

# Build filelist.h
docker run -it --rm -v ${PWD}:/project sdl2_playground-builder-pc bash -c "cd .. && bash filelist.sh"

# Generate the makefile
docker run -it --rm -v ${PWD}:/project sdl2_playground-builder-pc cmake ..

# build!
docker run -it --rm -v ${PWD}:/project sdl2_playground-builder-pc make

# The result will be in ${PWD}/cmake-build

Windows binaries

With docker

docker build . -f .\Dockerfile.wiiu  -t sdl2_playground-use-lib-builder-wiiu

docker run --rm -v ${PWD}:/project sdl2_playground-use-lib-builder-wiiu make -f Makefile.wiiu -j16

With local installation

Install the following packages via devkitPros pacman:

(dkp)pacman -S devkitPPC wut-tools wut wiiu-portlibs wiiu-sdl2-libs

Also install libgui-sdl according to the README.

Build via:

make -f Makefile.wiiu