Skip to content

Commit 8a57f01

Browse files
authored
Merge pull request #9 from lanza/optional
Add an option to skip building iconv, harfbuzz & lehb
2 parents a0436ea + 6593861 commit 8a57f01

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ cd $BUILDDIR/$ARCH
5353

5454
# =========== libiconv.so ===========
5555

56-
[ -e libiconv.so ] || {
56+
[ -e libiconv.so ] || [ $SKIP_ICONV ] || {
5757

5858
rm -rf libiconv-1.15
5959

@@ -121,7 +121,7 @@ cd $BUILDDIR/$ARCH
121121

122122
cd $BUILDDIR/$ARCH
123123

124-
[ -e libharfbuzz.a ] || {
124+
[ -e libharfbuzz.a ] || [ $SKIP_HARFBUZZ ] || {
125125
rm -rf harfbuzz-1.4.6
126126
tar xvf ../harfbuzz-1.4.6.tar.bz2
127127
cd harfbuzz-1.4.6
@@ -172,7 +172,7 @@ cd $BUILDDIR/$ARCH
172172

173173
cd $BUILDDIR/$ARCH
174174

175-
[ -e libicuuc.a ] || [ -e libicuuc.so ] {
175+
[ -e libicuuc.a ] || [ -e libicuuc.so ] || [ $SKIP_ICUUC ] {
176176

177177
rm -rf icu
178178

@@ -245,7 +245,7 @@ cd $BUILDDIR/$ARCH
245245

246246
cd $BUILDDIR/$ARCH
247247

248-
[ -e libicu-le-hb.a ] || {
248+
[ -e libicu-le-hb.a ] || [ $SKIP_ICUUC ] || [ $SKIP_HARFBUZZ ] || [ $SKIP_ICULEHB ] || {
249249
rm -rf icu-le-hb-1.0.3
250250
tar xvf ../icu-le-hb-1.0.3.tar.gz
251251
cd icu-le-hb-1.0.3
@@ -343,7 +343,7 @@ EOF
343343

344344
cd $BUILDDIR/$ARCH
345345

346-
[ -e libiculx.a ] || {
346+
[ -e libiculx.a ] || [ $SKIP_HARFBUZZ ] || [ $SKIP_ICUUC ] || [ $SKIP_ICULEHB ] || [ $SKIP_ICULX ] || {
347347

348348
cd icu/source
349349

0 commit comments

Comments
 (0)