From 847720c44432a5cbda2cf72ce7bc2025d0872c15 Mon Sep 17 00:00:00 2001 From: Yoshi Sugawara Date: Fri, 21 Jul 2017 21:36:44 -1000 Subject: [PATCH] Added config and script to build for iOS, arm64 architecture (required for iOS 11 support) --- libretro-build-ios-arm64.sh | 17 +++++++++++++++++ libretro-config.sh | 14 ++++++++++++++ 2 files changed, 31 insertions(+) create mode 100755 libretro-build-ios-arm64.sh diff --git a/libretro-build-ios-arm64.sh b/libretro-build-ios-arm64.sh new file mode 100755 index 00000000..d72ecd70 --- /dev/null +++ b/libretro-build-ios-arm64.sh @@ -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 $@ diff --git a/libretro-config.sh b/libretro-config.sh index bd5cfc2b..46c850d4 100755 --- a/libretro-config.sh +++ b/libretro-config.sh @@ -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}"