[vlc-commits] extras: prepare iOS build script for arm64
Felix Paul Kühne
git at videolan.org
Thu Oct 3 17:53:34 CEST 2013
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Oct 3 17:52:06 2013 +0200| [6e947739d9231fbf30bbd1a43910e040f9866b64] | committer: Felix Paul Kühne
extras: prepare iOS build script for arm64
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6e947739d9231fbf30bbd1a43910e040f9866b64
---
extras/package/ios/build.sh | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/extras/package/ios/build.sh b/extras/package/ios/build.sh
index de10d24..0e060bb 100755
--- a/extras/package/ios/build.sh
+++ b/extras/package/ios/build.sh
@@ -3,8 +3,7 @@ set -e
PLATFORM=OS
VERBOSE=no
-SDK_VERSION=6.1
-SDK_MIN=5.1
+SDK_VERSION=7.0
ARCH=armv7
usage()
@@ -73,6 +72,12 @@ if [ "$VERBOSE" = "yes" ]; then
out="/dev/stdout"
fi
+if [ "$ARCH" = "armv7" ]; then
+SDK_MIN=5.1
+else
+SDK_MIN=7.0
+fi
+
info "Building libvlc for iOS"
if [ "$PLATFORM" = "Simulator" ]; then
@@ -133,11 +138,11 @@ export STRIP="xcrun strip"
export SDKROOT
-if [ "$PLATFORM" = "OS" ]; then
-export CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} -mcpu=cortex-a8 -miphoneos-version-min=${SDK_MIN} ${OPTIM}"
-else
-export CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} -miphoneos-version-min=${SDK_MIN} ${OPTIM}"
+CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} -miphoneos-version-min=${SDK_MIN} ${OPTIM}"
+if [ "$ARCH" = "armv7" -o "$ARCH" = "armv7s" ]; then
+CFLAGS+="-mcpu=cortex-a8"
fi
+export CFLAGS
export CPPFLAGS="${CFLAGS}"
export CXXFLAGS="${CFLAGS}"
export OBJCFLAGS="${CFLAGS}"
@@ -159,8 +164,8 @@ else
fi
if [ "$PLATFORM" = "OS" ]; then
- EXTRA_CFLAGS="-arch ${ARCH} -mcpu=cortex-a8"
- EXTRA_LDFLAGS="-arch ${ARCH}"
+ EXTRA_CFLAGS="-arch ${ARCH} ${CFLAGS}"
+ EXTRA_LDFLAGS="-arch ${ARCH} ${LDFLAGS}"
else
EXTRA_CFLAGS="-m32"
EXTRA_LDFLAGS="-m32"
More information about the vlc-commits
mailing list