From bce2e182f1036ab2c438c48e0f499a2ae5d86800 Mon Sep 17 00:00:00 2001 From: fredrossperry Date: Thu, 10 Dec 2015 17:51:36 -0800 Subject: muPDF iOS app: add bitcode and UIRequiresFullScreen Starting with Xcode 7, bit code is enabled by default. This change enables it in the static libraries that are linked, by adding the appropriate compiler switch. Also added UIRequiresFullScreen to the plist; this seems to have no ill effect when uing XCode 6. --- platform/ios/Info.plist | 2 ++ platform/ios/build_libs.sh | 11 +++++++++++ 2 files changed, 13 insertions(+) (limited to 'platform') diff --git a/platform/ios/Info.plist b/platform/ios/Info.plist index 70ed2cff..757fc8a7 100644 --- a/platform/ios/Info.plist +++ b/platform/ios/Info.plist @@ -93,6 +93,8 @@ armv7 + UIRequiresFullScreen + UIStatusBarHidden UISupportedInterfaceOrientations diff --git a/platform/ios/build_libs.sh b/platform/ios/build_libs.sh index 77d1406a..cae76750 100644 --- a/platform/ios/build_libs.sh +++ b/platform/ios/build_libs.sh @@ -20,6 +20,17 @@ do FLAGS="$FLAGS -arch $A" done +# add bitcode for Xcode 7 and up +XCODE_VER=`xcodebuild -version | head -1` +ARRAY=(${XCODE_VER// / }) +XCODE_VER_NUM=${ARRAY[1]} +ARRAY=(${XCODE_VER_NUM//./ }) +MAJOR=${ARRAY[0]} +if [ "$MAJOR" -ge "7" ] +then + FLAGS="$FLAGS -fembed-bitcode" +fi + OUT=build/$build-$OS-$(echo $ARCHS | tr ' ' '-') echo Compiling libraries for $ARCHS. -- cgit v1.2.3