[vlc-commits] iOS script: enforce bitcode for tvOS
Felix Paul Kühne
git at videolan.org
Thu Oct 1 15:19:47 CEST 2015
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Sep 30 21:48:12 2015 +0200| [de879a7cf99d66bad2c52db3aef713bcdfad58f9] | committer: Felix Paul Kühne
iOS script: enforce bitcode for tvOS
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=de879a7cf99d66bad2c52db3aef713bcdfad58f9
---
extras/package/ios/build.sh | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/extras/package/ios/build.sh b/extras/package/ios/build.sh
index f514732..e0b4fc5 100755
--- a/extras/package/ios/build.sh
+++ b/extras/package/ios/build.sh
@@ -171,18 +171,23 @@ export PLATFORM=$PLATFORM
export SDK_VERSION=$SDK_VERSION
export VLCSDKROOT=$SDKROOT
-export CFLAGS="-isysroot ${SDKROOT} -arch ${ACTUAL_ARCH} ${OPTIM}"
+CFLAGS="-isysroot ${SDKROOT} -arch ${ACTUAL_ARCH} ${OPTIM}"
if [ "$PLATFORM" = "OS" ]; then
if [ "$ARCH" != "aarch64" ]; then
-export CFLAGS="${CFLAGS} -mcpu=cortex-a8 -${OSVERSIONMINCFLAG}=${SDK_MIN}"
+CFLAGS+=" -mcpu=cortex-a8 -${OSVERSIONMINCFLAG}=${SDK_MIN}"
else
-export CFLAGS="${CFLAGS} -${OSVERSIONMINCFLAG}=${SIXTYFOURBIT_SDK_MIN}"
+CFLAGS+=" -${OSVERSIONMINCFLAG}=${SIXTYFOURBIT_SDK_MIN}"
fi
else
-export CFLAGS="${CFLAGS} -${OSVERSIONMINCFLAG}=${SIXTYFOURBIT_SDK_MIN}"
+CFLAGS+=" -${OSVERSIONMINCFLAG}=${SIXTYFOURBIT_SDK_MIN}"
fi
+if [ "$TVOS" = "yes" ]; then
+CFLAGS+=" -fembed-bitcode"
+fi
+
+export CFLAGS="${CFLAGS}"
export CXXFLAGS="${CFLAGS}"
export CPPFLAGS="${CFLAGS}"
More information about the vlc-commits
mailing list