Skip to content

Commit c29d063

Browse files
committed
[build-android] Create template for build-android
1 parent 98b79f6 commit c29d063

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

build-android.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
#
4+
# *** build-android.sh ***
5+
#
6+
# This script automates editing the libiconv and libicu source code and build
7+
# directives to build the libraries correctly to use when building swift for
8+
# Android. Original instructions that this script automates are available at
9+
# https://github.com/apple/swift/blob/4bf6f5475ddf5c9ff4a7e383bac41c8a0464cd90/docs/Android.md#adding-swift-suffix-to-icu-libraries
10+
#
11+
12+
set -e
13+
14+
echo "warning: this script assumes it's running from the root of the libiconv-libicu-android directory"
15+
16+
# Create armeabi-v7a dir
17+
mkdir armeabi-v7a && cd armeabi-v7a
18+
tar xvf ../icu4c-55_1-src.tgz
19+
20+
# Edit icu configure file
21+
22+
# Edit build.sh file
23+
24+
# 🎉 Run build.sh, with the edited sources
25+
./build.sh
26+
27+
echo "Done building 🎉🎉🎉"
28+
echo "Check out the armeabi-v7a directory."

0 commit comments

Comments
 (0)