Browse Source

Enable bitcode build

pull/2/merge
Hoa V. Dinh 6 years ago
parent
commit
787146dbcf
2 changed files with 12 additions and 11 deletions
  1. +2
    -3
      build-mac/dependencies/prepare-cyrus-sasl.sh
  2. +10
    -8
      build-mac/libetpan.xcodeproj/project.pbxproj

+ 2
- 3
build-mac/dependencies/prepare-cyrus-sasl.sh View File

@ -111,7 +111,7 @@ LIB_NAME=$ARCHIVE
TARGETS="iPhoneOS iPhoneSimulator"
SDK_IOS_MIN_VERSION=7.0
SDK_IOS_VERSION="$(xcodebuild -version -sdk 'iphoneos' 2>/dev/null | egrep '^SDKVersion: ' | cut -d" " -f 2 | sort -n | tail -n1)"
SDK_IOS_VERSION="`xcodebuild -showsdks 2>/dev/null | grep iphoneos | sed 's/.*iphoneos\(.*\)/\1/'`"
BUILD_DIR="$tmpdir/build"
INSTALL_PATH="${BUILD_DIR}/${LIB_NAME}/universal"
@ -125,14 +125,13 @@ for TARGET in $TARGETS; do
(iPhoneOS)
ARCH=arm
MARCHS="armv7 armv7s arm64"
EXTRA_FLAGS="-miphoneos-version-min=$SDK_IOS_MIN_VERSION"
;;
(iPhoneSimulator)
ARCH=i386
MARCHS="i386 x86_64"
EXTRA_FLAGS="-miphoneos-version-min=$SDK_IOS_MIN_VERSION"
;;
esac
EXTRA_FLAGS="-fembed-bitcode -miphoneos-version-min=$SDK_IOS_MIN_VERSION"
for MARCH in $MARCHS; do
echo "building for $TARGET - $MARCH"


+ 10
- 8
build-mac/libetpan.xcodeproj/project.pbxproj View File

@ -2481,6 +2481,7 @@
GCC_OPTIMIZATION_LEVEL = 0;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "@loader_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.8;
PRODUCT_NAME = libetpan;
SDKROOT = macosx;
WRAPPER_EXTENSION = framework;
@ -2499,6 +2500,7 @@
GCC_MODEL_TUNING = G5;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "@loader_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.8;
PRODUCT_NAME = libetpan;
SDKROOT = macosx;
STRIP_INSTALLED_PRODUCT = YES;
@ -2522,6 +2524,7 @@
OTHER_CFLAGS = (
"-DHAVE_CFNETWORK=1",
"-DHAVE_CONFIG_H=1",
"-DLIBETPAN_IOS_DISABLE_SSL=1",
);
};
name = Debug;
@ -2540,6 +2543,7 @@
OTHER_CFLAGS = (
"-DHAVE_CFNETWORK=1",
"-DHAVE_CONFIG_H=1",
"-DLIBETPAN_IOS_DISABLE_SSL=1",
);
};
name = Release;
@ -2579,6 +2583,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = NO;
ENABLE_BITCODE = YES;
GCC_DYNAMIC_NO_PIC = NO;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
@ -2587,11 +2592,8 @@
"$(SRCROOT)/libsasl-ios/include",
);
INSTALL_PATH = /usr/local/lib;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LIBRARY_SEARCH_PATHS = "$(SRCROOT)/libsasl-ios/lib";
OTHER_CFLAGS = (
"$(inherited)",
"-DLIBETPAN_IOS_DISABLE_SSL=1",
);
PRODUCT_NAME = "etpan-ios";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
@ -2604,17 +2606,15 @@
ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_BITCODE = YES;
GCC_MODEL_TUNING = G5;
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/libsasl-ios/include",
);
INSTALL_PATH = /usr/local/lib;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LIBRARY_SEARCH_PATHS = "$(SRCROOT)/libsasl-ios/lib";
OTHER_CFLAGS = (
"$(inherited)",
"-DLIBETPAN_IOS_DISABLE_SSL=1",
);
PRODUCT_NAME = "etpan-ios";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
@ -2632,6 +2632,7 @@
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
INSTALL_PATH = /usr/local/lib;
MACOSX_DEPLOYMENT_TARGET = 10.8;
PRODUCT_NAME = etpan;
SDKROOT = macosx;
SKIP_INSTALL = YES;
@ -2647,6 +2648,7 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_MODEL_TUNING = G5;
INSTALL_PATH = /usr/local/lib;
MACOSX_DEPLOYMENT_TARGET = 10.8;
PRODUCT_NAME = etpan;
SDKROOT = macosx;
SKIP_INSTALL = YES;


Loading…
Cancel
Save