#!/bin/bash if [ -z "$DEVKITPRO" ]; then echo "DEVKITPRO environment variable is not set. Please set it to the path of your DEVKITPRO installation." exit 1 fi mkdir -p build-gamecube cmake -S. -Bbuild-gamecube \ -DDUSK_TARGET_SYSTEM=gamecube \ -DCMAKE_TOOLCHAIN_FILE="$DEVKITPRO/cmake/GameCube.cmake" \ -DDKP_OGC_PLATFORM_LIBRARY=libogc2 cd build-gamecube make -j$(nproc) VERBOSE=1