[vlc-commits] iOS: add bitcode option

Felix Paul Kühne git at videolan.org
Thu Feb 18 17:24:16 CET 2016


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Feb 18 17:22:17 2016 +0100| [b90daeac2b0672b28d42028300a07460b6561576] | committer: Felix Paul Kühne

iOS: add bitcode option

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b90daeac2b0672b28d42028300a07460b6561576
---

 extras/package/ios/build.sh |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/extras/package/ios/build.sh b/extras/package/ios/build.sh
index c2a1462..92327c2 100755
--- a/extras/package/ios/build.sh
+++ b/extras/package/ios/build.sh
@@ -13,6 +13,7 @@ TVOS=no
 OSSTYLE=iPhone
 OSVERSIONMINCFLAG=miphoneos-version-min
 OSVERSIONMINLDFLAG=ios_version_min
+BITCODE=no
 
 CORE_COUNT=`sysctl -n machdep.cpu.core_count`
 let MAKE_JOBS=$CORE_COUNT+1
@@ -30,6 +31,7 @@ OPTIONS
    -v            Enable verbose command-line output
    -t            Build for tvOS
    -w            Build a limited stack of non-scary libraries only
+   -b            Enable bitcode
 EOF
 }
 
@@ -50,7 +52,7 @@ info()
     echo "[${blue}info${normal}] $1"
 }
 
-while getopts "hvwdstk:a:" OPTION
+while getopts "hvbwdstk:a:" OPTION
 do
      case $OPTION in
          h)
@@ -69,6 +71,9 @@ do
          w)
              SCARY=no
              ;;
+         b)
+             BITCODE=yes
+             ;;
          k)
              SDK_VERSION=$OPTARG
              ;;
@@ -77,6 +82,7 @@ do
              ;;
          t)
              TVOS=yes
+             BITCODE=yes
              SDK_VERSION=`xcrun --sdk appletvos --show-sdk-version`
              OSVERSIONMINCFLAG=mtvos-version-min
              OSVERSIONMINLDFLAG=tvos_version_min
@@ -183,7 +189,7 @@ else
 CFLAGS+=" -${OSVERSIONMINCFLAG}=${SIXTYFOURBIT_SDK_MIN}"
 fi
 
-if [ "$TVOS" = "yes" ]; then
+if [ "$BITCODE" = "yes" ]; then
 CFLAGS+=" -fembed-bitcode"
 fi
 



More information about the vlc-commits mailing list