Create the build for the PS2

This commit is contained in:
Francisco Javier Trujillo Mata 2018-12-30 17:12:28 +01:00
parent d638a99e5f
commit ff77770b3f
3 changed files with 30 additions and 2 deletions

4
.gitignore vendored
View File

@ -1,5 +1,5 @@
/libretro-*
/libretro64-*
/libretro-*/
/libretro64-*/
/retroarch/
/build-summary.log
/build-revisions/

17
libretro-build-ps2.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=ps2 ${BASE_DIR}/libretro-build.sh $@

View File

@ -473,6 +473,17 @@ case "$platform" in
CXX="psp-g++${BINARY_EXT}"
;;
ps2)
DIST_DIR="ps2"
FORMAT_EXT=a
FORMAT=_ps2
FORMAT_COMPILER_TARGET=ps2
FORMAT_COMPILER_TARGET_ALT=ps2
CC="ee-gcc${BINARY_EXT}"
CXX="ee-g++${BINARY_EXT}"
;;
ctr)
DIST_DIR="ctr"
FORMAT_EXT=a