Added config and script to build for iOS, arm64 architecture (required for iOS 11 support)

This commit is contained in:
Yoshi Sugawara 2017-07-21 21:36:44 -10:00
parent 7f420d4d52
commit 847720c444
2 changed files with 31 additions and 0 deletions

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

View File

@ -240,6 +240,20 @@ case "$platform" in
CXX11="clang++ -std=c++11 -stdlib=libc++ -arch armv7 -marm -miphoneos-version-min=8.0 -isysroot $IOSSDK"
;;
ios-arm64)
DIST_DIR="ios-arm64"
FORMAT_EXT=dylib
IOS=1
ARCH=arm64
FORMAT=_ios
FORMAT_COMPILER_TARGET=ios-arm64
FORMAT_COMPILER_TARGET_ALT=ios-arm64
export IOSSDK=$(xcodebuild -version -sdk iphoneos Path)
CC="cc -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot $IOSSDK"
CXX="c++ -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot $IOSSDK"
CXX11="clang++ -std=c++11 -stdlib=libc++ -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot $IOSSDK"
;;
android-x86_64)
FORMAT_ABI="x86_64"
DIST_DIR="android/${FORMAT_ABI}"