(CTR/3DS) Add libretro-build-ctr.sh

This commit is contained in:
twinaphex 2015-09-10 06:51:27 +02:00
parent cf4edfc473
commit f484ae9979
2 changed files with 34 additions and 0 deletions

17
libretro-build-ctr.sh Executable file
View File

@ -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 $@

View File

@ -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"