(tvOS) support building for Apple TV

This commit is contained in:
Yoshi Sugawara 2019-09-08 07:09:21 -10:00
parent b2c6f18881
commit a1d917732e
3 changed files with 35 additions and 1 deletions

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

View file

@ -272,6 +272,23 @@ case "$platform" in
CXX11="clang++ -std=c++11 -stdlib=libc++ -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot $IOSSDK"
;;
tvos-arm64)
DIST_DIR="tvos-arm64"
FORMAT_EXT=dylib
IOS=1
ARCH=arm64
FORMAT=_tvos
FORMAT_COMPILER_TARGET=tvos-arm64
FORMAT_COMPILER_TARGET_ALT=tvos-arm64
export IOSSDK=$(xcodebuild -version -sdk appletvos Path)
# Use generic names rather than gcc/clang to better support both
CC="cc -arch arm64 -marm -mtvos-version-min=9.0 -isysroot $IOSSDK"
CXX="c++ -arch arm64 -marm -mtvos-version-min=9.0 -isysroot $IOSSDK"
CXX11="clang++ -std=c++11 -stdlib=libc++ -arch arm64 -marm -mtvos-version-min=9.0 -isysroot $IOSSDK"
;;
android-x86_64)
FORMAT_ABI="x86_64"
DIST_DIR="android/${FORMAT_ABI}"

View file

@ -9,7 +9,7 @@ cannonball libretro-cannonball https://github.com/libretro/cannonball.git master
chailove libretro-chailove https://github.com/libretro/libretro-chailove.git master NO GENERIC Makefile .
craft libretro-craft https://github.com/libretro/craft master NO GENERIC Makefile.libretro .
crocods libretro-crocods https://github.com/libretro/libretro-crocods.git master YES GENERIC Makefile .
daphne libretro-daphne https://github.com/libretro/daphne.git master NO GENERIC Makefile .
daphne libretro-daphne https://github.com/libretro/daphne.git master YES GENERIC Makefile .
desmume libretro-desmume https://github.com/libretro/desmume.git master YES GENERIC Makefile.libretro desmume/src/frontend/libretro
desmume2015 libretro-desmume2015 https://github.com/libretro/desmume2015.git master NO GENERIC Makefile.libretro desmume
dinothawr libretro-dinothawr https://github.com/libretro/Dinothawr.git master NO GENERIC Makefile .