From 5aac5a823b35feffb7dd414653978e1afbdfa030 Mon Sep 17 00:00:00 2001 From: "Hoa V. Dinh" Date: Fri, 23 Oct 2015 15:36:40 -0700 Subject: set min sdk properly and disable bitcode on simulator --- scripts/include.sh/build-dep.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/include.sh/build-dep.sh b/scripts/include.sh/build-dep.sh index c4eaae31..84cdb6d9 100755 --- a/scripts/include.sh/build-dep.sh +++ b/scripts/include.sh/build-dep.sh @@ -7,6 +7,7 @@ build_git_ios() fi simarchs="i386 x86_64" + sdkminversion="7.0" sdkversion="`xcodebuild -showsdks 2>/dev/null | grep iphoneos | sed 's/.*iphoneos\(.*\)/\1/'`" devicearchs="armv7 armv7s arm64" @@ -67,14 +68,14 @@ build_git_ios() cd "$srcdir/$name/build-mac" sdk="iphoneos$sdkversion" echo building $sdk - xctool -project "$xcode_project" -sdk $sdk -scheme "$xcode_target" -configuration Release SYMROOT="$tmpdir/bin" OBJROOT="$tmpdir/obj" ARCHS="$devicearchs" IPHONEOS_DEPLOYMENT_TARGET="$sdkversion" OTHER_CFLAGS='$(inherited) -fembed-bitcode' + xctool -project "$xcode_project" -sdk $sdk -scheme "$xcode_target" -configuration Release SYMROOT="$tmpdir/bin" OBJROOT="$tmpdir/obj" ARCHS="$devicearchs" IPHONEOS_DEPLOYMENT_TARGET="$sdkminversion" OTHER_CFLAGS='$(inherited) -fembed-bitcode' if test x$? != x0 ; then echo failed exit 1 fi sdk="iphonesimulator$sdkversion" echo building $sdk - xctool -project "$xcode_project" -sdk $sdk -scheme "$xcode_target" -configuration Release SYMROOT="$tmpdir/bin" OBJROOT="$tmpdir/obj" ARCHS="$simarchs" IPHONEOS_DEPLOYMENT_TARGET="$sdkversion" OTHER_CFLAGS='$(inherited) -fembed-bitcode' + xctool -project "$xcode_project" -sdk $sdk -scheme "$xcode_target" -configuration Release SYMROOT="$tmpdir/bin" OBJROOT="$tmpdir/obj" ARCHS="$simarchs" IPHONEOS_DEPLOYMENT_TARGET="$sdkminversion" OTHER_CFLAGS='$(inherited)' if test x$? != x0 ; then echo failed exit 1 @@ -149,6 +150,7 @@ build_git_osx() { sdk="`xcodebuild -showsdks 2>/dev/null | grep macosx | sed 's/.*macosx\(.*\)/\1/'`" archs="x86_64" + sdkminversion="10.7" if test "x$name" = x ; then return @@ -209,7 +211,7 @@ build_git_osx() echo building $name $version - $rev cd "$srcdir/$name/build-mac" - xctool -project "$xcode_project" -sdk macosx$sdk -scheme "$xcode_target" -configuration Release ARCHS="$archs" SYMROOT="$tmpdir/bin" OBJROOT="$tmpdir/obj" + xctool -project "$xcode_project" -sdk macosx$sdk -scheme "$xcode_target" -configuration Release ARCHS="$archs" SYMROOT="$tmpdir/bin" OBJROOT="$tmpdir/obj" IPHONEOS_DEPLOYMENT_TARGET="$sdkminversion" if test x$? != x0 ; then echo failed exit 1 -- cgit v1.2.3