diff --git a/libretro-build-ctr.sh b/libretro-build-ctr.sh new file mode 100755 index 00000000..2d7f8d5d --- /dev/null +++ b/libretro-build-ctr.sh @@ -0,0 +1,17 @@ +#! /usr/bin/env bash +# vim: set ts=3 sw=3 noet ft=sh : bash + +SCRIPT="${0#./}" +BASE_DIR="${SCRIPT%/*}" +WORKDIR="$PWD" + +if [ "$BASE_DIR" = "$SCRIPT" ]; then + BASE_DIR="$WORKDIR" +else + if [[ "$0" != /* ]]; then + # Make the path absolute + BASE_DIR="$WORKDIR/$BASE_DIR" + fi +fi + +platform=ctr ${BASE_DIR}/libretro-build.sh $@ diff --git a/libretro-config.sh b/libretro-config.sh index fd5fdca6..7975541d 100755 --- a/libretro-config.sh +++ b/libretro-config.sh @@ -263,6 +263,17 @@ case "$platform" in ;; + ctr) + DIST_DIR="ctr" + FORMAT_EXT=a + FORMAT=_ctr + FORMAT_COMPILER_TARGET=ctr + FORMAT_COMPILER_TARGET_ALT=ctr + + CC="$DEVKITARM/bin/arm-none-eabi-gcc$BINARY_EXT" + CXX="$DEVKITARM/bin/arm-none-eabi-g++$BINARY_EXT" + AR="$DEVKITARM/bin/arm-none-eabi-ar$BINARY_EXT" + ;; vita) DIST_DIR="vita" @@ -415,6 +426,12 @@ case "$platform" in FORMAT_COMPILER_TARGET="psp1" DIST_DIR="psp1" ;; + *ctr*) + platform=ctr + FORMAT_EXT="a" + FORMAT_COMPILER_TARGET="ctr" + DIST_DIR="ctr" + ;; *vita*) platform=vita FORMAT_EXT="a"