mirror of
https://github.com/libretro/libretro-super
synced 2024-12-26 18:26:06 +00:00
(CTR/3DS) Add libretro-build-ctr.sh
This commit is contained in:
parent
cf4edfc473
commit
f484ae9979
17
libretro-build-ctr.sh
Executable file
17
libretro-build-ctr.sh
Executable 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 $@
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user