Skip to content

Commit 7f47799

Browse files
committed
Add an option to skip building iconv, harfbuzz & lehb
1 parent db4f112 commit 7f47799

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 ] || {
175+
[ -e libicuuc.a ] || [ $SKIP_ICUUC ] || {
176176

177177
rm -rf icu
178178

@@ -236,7 +236,7 @@ cd $BUILDDIR/$ARCH
236236

237237
cd $BUILDDIR/$ARCH
238238

239-
[ -e libicu-le-hb.a ] || {
239+
[ -e libicu-le-hb.a ] || [ $SKIP_ICUUC ] || [ $SKIP_HARFBUZZ ] || [ $SKIP_ICULEHB ] || {
240240
rm -rf icu-le-hb-1.0.3
241241
tar xvf ../icu-le-hb-1.0.3.tar.gz
242242
cd icu-le-hb-1.0.3
@@ -334,7 +334,7 @@ EOF
334334

335335
cd $BUILDDIR/$ARCH
336336

337-
[ -e libiculx.a ] || {
337+
[ -e libiculx.a ] || [ $SKIP_HARFBUZZ ] || [ $SKIP_ICUUC ] || [ $SKIP_ICULEHB ] || [ $SKIP_ICULX ] || {
338338

339339
cd icu/source
340340

0 commit comments

Comments
 (0)