mirror of
https://github.com/libretro/libretro-super.git
synced 2024-11-23 07:49:44 +00:00
Added config and script to build for iOS, arm64 architecture (required for iOS 11 support)
This commit is contained in:
parent
7f420d4d52
commit
847720c444
17
libretro-build-ios-arm64.sh
Executable file
17
libretro-build-ios-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=ios-arm64 ${BASE_DIR}/libretro-build.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}"
|
||||
|
Loading…
Reference in New Issue
Block a user