aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/prepare-tidy-ios.sh
diff options
context:
space:
mode:
authorGravatar Hoà V. DINH <dinh.viet.hoa@gmail.com>2013-09-26 07:59:09 -0700
committerGravatar Hoà V. DINH <dinh.viet.hoa@gmail.com>2013-09-26 07:59:09 -0700
commiteb7802845d51a18e8d6533e961f43c4c55b889cf (patch)
tree66a99eae6630d226750ddf36a63131514a465a79 /scripts/prepare-tidy-ios.sh
parent9d270bc10ef50c7c7965f7ae35965ce23b570220 (diff)
parent7b37c308ef119c6f5b159eeab6bd260f8abd6c65 (diff)
Merge pull request #401 from mronge/arm64
Added arm64 support.
Diffstat (limited to 'scripts/prepare-tidy-ios.sh')
-rwxr-xr-xscripts/prepare-tidy-ios.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/prepare-tidy-ios.sh b/scripts/prepare-tidy-ios.sh
index f48f9726..1fca5900 100755
--- a/scripts/prepare-tidy-ios.sh
+++ b/scripts/prepare-tidy-ios.sh
@@ -2,8 +2,10 @@
if xcodebuild -showsdks|grep iphoneos6.1 >/dev/null ; then
sdkversion=6.1
+ devicearchs="armv7 armv7s"
elif xcodebuild -showsdks|grep iphoneos7.0 >/dev/null ; then
sdkversion=7.0
+ devicearchs="armv7 armv7s arm64"
else
echo SDK not found
exit 1
@@ -62,17 +64,16 @@ echo building tidy-html5
cd "$srcdir/tidy-html5/build-mac"
sdk="iphoneos$sdkversion"
-archs="armv7 armv7s"
echo building $sdk
-xcodebuild -project Tidy.xcodeproj -sdk $sdk -target "tidy" -configuration Release SYMROOT="$tmpdir/bin" OBJROOT="$tmpdir/obj" ARCHS="$archs" >/dev/null 2>&1
+xcodebuild -project Tidy.xcodeproj -sdk $sdk -target "tidy" -configuration Release SYMROOT="$tmpdir/bin" OBJROOT="$tmpdir/obj" ARCHS="$devicearchs" >/dev/null 2>&1
if test x$? != x0 ; then
echo failed
exit 1
fi
sdk="iphonesimulator$sdkversion"
-archs="i386"
+simarchs="i386"
echo building $sdk
-xcodebuild -project Tidy.xcodeproj -sdk $sdk -target "tidy" -configuration Release SYMROOT="$tmpdir/bin" OBJROOT="$tmpdir/obj" ARCHS="$archs" >/dev/null 2>&1
+xcodebuild -project Tidy.xcodeproj -sdk $sdk -target "tidy" -configuration Release SYMROOT="$tmpdir/bin" OBJROOT="$tmpdir/obj" ARCHS="$simarchs" >/dev/null 2>&1
if test x$? != x0 ; then
echo failed
exit 1