Skip to content

Commit 1c95d34

Browse files
committed
Revert "Locale support using libiconv and libicu, cosmetic improvements"
I'll create a pull request foir this This reverts commit d3fa4e8.
1 parent bada602 commit 1c95d34

File tree

3 files changed

+6
-35
lines changed

3 files changed

+6
-35
lines changed

build-android.sh

+6-21
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ do_download ()
8282
CLEAN=yes
8383
}
8484

85-
#LIBRARIES=--with-libraries=date_time,filesystem,program_options,regex,signals,system,thread,iostreams,locale
85+
#LIBRARIES=--with-libraries=date_time,filesystem,program_options,regex,signals,system,thread,iostreams
8686
LIBRARIES=
8787
register_option "--with-libraries=<list>" do_with_libraries "Comma separated list of libraries to build."
8888
do_with_libraries () {
@@ -257,11 +257,11 @@ case "$NDK_RN" in
257257
CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/arm-linux-androideabi-g++
258258
TOOLSET=gcc-androidR8e
259259
;;
260-
"10 (64-bit)"|"10b (64-bit)")
260+
"10 (64-bit)")
261261
TOOLCHAIN=${TOOLCHAIN:-arm-linux-androideabi-4.6}
262-
CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/arm-linux-androideabi-g++
263-
TOOLSET=gcc-androidR8e
264-
;;
262+
CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/arm-linux-androideabi-g++
263+
TOOLSET=gcc-androidR8e
264+
;;
265265
*)
266266
echo "Undefined or not supported Android NDK version!"
267267
exit 1
@@ -301,7 +301,7 @@ fi
301301
if [ ! -d $PROGDIR/$BOOST_DIR ]
302302
then
303303
echo "Unpacking boost"
304-
if [ "$OPTION_PROGRESS" = "yes" ] ; then
304+
if [ $OPTION_PROGRESS = "yes" ] ; then
305305
pv $PROGDIR/$BOOST_TAR | tar xjf - -C $PROGDIR
306306
else
307307
tar xjf $PROGDIR/$BOOST_TAR
@@ -384,19 +384,6 @@ echo "# ---------------"
384384
# Build boost for android
385385
echo "Building boost for android"
386386
(
387-
388-
if echo $LIBRARIES | grep locale; then
389-
if [ -e libiconv-libicu-android ]; then
390-
echo "ICONV and ICU already compiled"
391-
else
392-
echo "boost_locale selected - compiling ICONV and ICU"
393-
git clone https://github.com/pelya/libiconv-libicu-android.git
394-
cd libiconv-libicu-android
395-
./build.sh || exit 1
396-
cd ..
397-
fi
398-
fi
399-
400387
cd $BOOST_DIR
401388

402389
echo "Adding pathname: `dirname $CXXPATH`"
@@ -416,8 +403,6 @@ echo "Building boost for android"
416403
link=static \
417404
threading=multi \
418405
--layout=versioned \
419-
-sICONV_PATH=`pwd`/../libiconv-libicu-android/armeabi \
420-
-sICU_PATH=`pwd`/../libiconv-libicu-android/armeabi \
421406
--prefix="./../$BUILD_DIR/" \
422407
$LIBRARIES \
423408
install 2>&1 \

configs/user-config-boost-1_53_0.jam

-3
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ $(AndroidBinariesPath)/arm-linux-androideabi-g++
109109
<compileflags>-fomit-frame-pointer
110110
<compileflags>-fno-strict-aliasing
111111
<compileflags>-finline-limit=64
112-
<compileflags>-I$(AndroidNDKRoot)/sources/android/support/include
113-
<compileflags>-DTHOUSEP=MON_THOUSANDS_SEP
114-
<compileflags>-DRADIXCHAR=MON_DECIMAL_POINT
115112
<compileflags>-I$(AndroidNDKRoot)/platforms/android-9/arch-arm/usr/include
116113
<compileflags>-Wa,--noexecstack
117114
<compileflags>-DANDROID

patches/boost-1_53_0/boost-1_53_0.patch

-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
--- boost_1_53_0-boot/libs/locale/build/Jamfile.v2 2013-11-25 01:16:41.401893635 +0200
2-
+++ boost_1_53_0/libs/locale/build/Jamfile.v2 2013-11-25 01:16:55.810101872 +0200
3-
@@ -185,7 +185,7 @@
4-
obj has_icu_obj : ../build/has_icu_test.cpp : $(ICU_OPTS) ;
5-
obj has_icu64_obj : ../build/has_icu_test.cpp : $(ICU64_OPTS) ;
6-
7-
-exe has_icu : has_icu_obj : $(ICU_OPTS) ;
8-
+lib has_icu : ../build/option.cpp : <link>static ;
9-
exe has_icu64 : has_icu64_obj : $(ICU64_OPTS) ;
10-
11-
explicit has_icu has_icu64 ;
121
diff -ruN boost_1_54_0/libs/filesystem/src/path.cpp boost_1_54_0_patched/libs/filesystem/src/path.cpp
132
--- boost_1_54_0/libs/filesystem/src/path.cpp 2012-04-16 15:36:28.000000000 +0200
143
+++ boost_1_54_0_patched/libs/filesystem/src/path.cpp 2013-10-28 02:55:32.773380890 +0100

0 commit comments

Comments
 (0)