aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/prepare-icu4c-ios.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/prepare-icu4c-ios.sh')
-rwxr-xr-xscripts/prepare-icu4c-ios.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/prepare-icu4c-ios.sh b/scripts/prepare-icu4c-ios.sh
index 9d50d985..5630c2e1 100755
--- a/scripts/prepare-icu4c-ios.sh
+++ b/scripts/prepare-icu4c-ios.sh
@@ -6,6 +6,7 @@ version='51_1'
url="http://download.icu-project.org/files/icu4c/$versionfolder/icu4c-$version-src.tgz"
package_filename="icu4c-$version-src.tgz"
sysrootpath="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"
+enable_icu_data=0
pushd `dirname $0` > /dev/null
scriptpath=`pwd`
@@ -27,6 +28,8 @@ if test -f "$resultdir/icu4c-ios-$version.zip" ; then
mkdir -p ../Externals/tmp
unzip -q "$resultdir/icu4c-ios-$version.zip" -d ../Externals/tmp
mv "../Externals/tmp/icu4c-ios-$version/icu4c-ios" ../Externals
+ mkdir -p ../Externals/installed
+ ln -sf "$resultdir/icu4c-ios-$version.zip" ../Externals/installed
rm -rf ../Externals/tmp
exit 0
fi
@@ -113,8 +116,10 @@ done
mkdir -p "$tmpdir/bin/icu4c-ios"
cp -R $tmpdir/crossbuild/icu4c-x86_64/include "$tmpdir/bin/icu4c-ios"
-mkdir -p "$tmpdir/bin/icu4c-ios/share/icu"
-cp "$tmpdir/crossbuild/icu4c-x86_64/share/icu/$versionfolder/icudt51l.dat" "$tmpdir/bin/icu4c-ios/share/icu"
+if test x$enable_icu_data = x1 ; then
+ mkdir -p "$tmpdir/bin/icu4c-ios/share/icu"
+ cp "$tmpdir/crossbuild/icu4c-x86_64/share/icu/$versionfolder/icudt51l.dat" "$tmpdir/bin/icu4c-ios/share/icu"
+fi
mkdir -p "$tmpdir/bin/icu4c-ios/lib"
cd "$tmpdir/bin"