mirror of
https://github.com/libretro/libretro-super
synced 2025-03-23 22:43:44 +00:00
(tvOS) support building for Apple TV
This commit is contained in:
parent
b2c6f18881
commit
a1d917732e
17
libretro-build-tvos-arm64.sh
Executable file
17
libretro-build-tvos-arm64.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=tvos-arm64 ${BASE_DIR}/libretro-build.sh $@
|
@ -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}"
|
||||
|
@ -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 .
|
||||
|
Loading…
x
Reference in New Issue
Block a user