Commit 6e947739 authored by Felix Paul Kühne's avatar Felix Paul Kühne

extras: prepare iOS build script for arm64

parent 94b63729
...@@ -3,8 +3,7 @@ set -e ...@@ -3,8 +3,7 @@ set -e
PLATFORM=OS PLATFORM=OS
VERBOSE=no VERBOSE=no
SDK_VERSION=6.1 SDK_VERSION=7.0
SDK_MIN=5.1
ARCH=armv7 ARCH=armv7
usage() usage()
...@@ -73,6 +72,12 @@ if [ "$VERBOSE" = "yes" ]; then ...@@ -73,6 +72,12 @@ if [ "$VERBOSE" = "yes" ]; then
out="/dev/stdout" out="/dev/stdout"
fi fi
if [ "$ARCH" = "armv7" ]; then
SDK_MIN=5.1
else
SDK_MIN=7.0
fi
info "Building libvlc for iOS" info "Building libvlc for iOS"
if [ "$PLATFORM" = "Simulator" ]; then if [ "$PLATFORM" = "Simulator" ]; then
...@@ -133,11 +138,11 @@ export STRIP="xcrun strip" ...@@ -133,11 +138,11 @@ export STRIP="xcrun strip"
export SDKROOT export SDKROOT
if [ "$PLATFORM" = "OS" ]; then CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} -miphoneos-version-min=${SDK_MIN} ${OPTIM}"
export CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} -mcpu=cortex-a8 -miphoneos-version-min=${SDK_MIN} ${OPTIM}" if [ "$ARCH" = "armv7" -o "$ARCH" = "armv7s" ]; then
else CFLAGS+="-mcpu=cortex-a8"
export CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} -miphoneos-version-min=${SDK_MIN} ${OPTIM}"
fi fi
export CFLAGS
export CPPFLAGS="${CFLAGS}" export CPPFLAGS="${CFLAGS}"
export CXXFLAGS="${CFLAGS}" export CXXFLAGS="${CFLAGS}"
export OBJCFLAGS="${CFLAGS}" export OBJCFLAGS="${CFLAGS}"
...@@ -159,8 +164,8 @@ else ...@@ -159,8 +164,8 @@ else
fi fi
if [ "$PLATFORM" = "OS" ]; then if [ "$PLATFORM" = "OS" ]; then
EXTRA_CFLAGS="-arch ${ARCH} -mcpu=cortex-a8" EXTRA_CFLAGS="-arch ${ARCH} ${CFLAGS}"
EXTRA_LDFLAGS="-arch ${ARCH}" EXTRA_LDFLAGS="-arch ${ARCH} ${LDFLAGS}"
else else
EXTRA_CFLAGS="-m32" EXTRA_CFLAGS="-m32"
EXTRA_LDFLAGS="-m32" EXTRA_LDFLAGS="-m32"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment