1
1
diff --git a/build-android.sh b/build-android.sh
2
- index 40453f7..ad78ddf 100755
2
+ index 40453f7..5902fe2 100755
3
3
--- a/build-android.sh
4
4
+++ b/build-android.sh
5
- @@ -258,9 +258,14 @@ case "$NDK_RN" in
5
+ @@ -195,8 +195,12 @@ case "$HOST_OS" in
6
+ PlatformOS=linux
7
+ esac
8
+
9
+ + NDK_SOURCE_PROPERTIES=$AndroidNDKRoot"/source.properties"
10
+ NDK_RELEASE_FILE=$AndroidNDKRoot"/RELEASE.TXT"
11
+ - if [ -f "${NDK_RELEASE_FILE}" ]; then
12
+ + if [ -f "${NDK_SOURCE_PROPERTIES}" ]; then
13
+ + version=$(grep -i '^Pkg.Revision =' $NDK_SOURCE_PROPERTIES | cut -f2- -d=)
14
+ + NDK_RN=$(echo $version | awk -F. '{print $1}')
15
+ + elif [ -f "${NDK_RELEASE_FILE}" ]; then
16
+ NDK_RN=`cat $NDK_RELEASE_FILE | sed 's/^r\(.*\)$/\1/g'`
17
+ elif [ -n "${AndroidSourcesDetected}" ]; then
18
+ if [ -f "${ANDROID_BUILD_TOP}/ndk/docs/CHANGES.html" ]; then
19
+ @@ -258,10 +262,20 @@ case "$NDK_RN" in
6
20
TOOLSET=gcc-androidR8e
7
21
;;
8
22
"10 (64-bit)")
@@ -18,18 +32,23 @@ index 40453f7..ad78ddf 100755
18
32
+ CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/clang++
19
33
+ TOOLSET=clang-androidR8e
20
34
;;
35
+ + 11)
36
+ + TOOLCHAIN=llvm
37
+ + CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/clang++
38
+ + TOOLSET=clang-androidR8e
39
+ + ;;
21
40
*)
22
41
echo "Undefined or not supported Android NDK version!"
23
- @@ -391,6 +396,7 @@ echo "Building boost for android"
42
+ exit 1
43
+ @@ -391,6 +405,7 @@ echo "Building boost for android"
24
44
export AndroidBinariesPath=`dirname $CXXPATH`
25
45
export PATH=$AndroidBinariesPath:$PATH
26
46
export AndroidNDKRoot
27
47
+ export PlatformOS
28
48
export NO_BZIP2=1
29
-
49
+
30
50
cxxflags=""
31
- @@ -405,7 +411,7 @@ echo "Building boost for android"
32
- threading=multi \
51
+ @@ -405,7 +420,7 @@ echo "Building boost for android"
33
52
--layout=versioned \
34
53
--prefix="./../$BUILD_DIR/" \
35
54
$LIBRARIES \
@@ -39,25 +58,25 @@ index 40453f7..ad78ddf 100755
39
58
} | tee -a $PROGDIR/build.log
40
59
41
60
diff --git a/configs/user-config-boost-1_55_0.jam b/configs/user-config-boost-1_55_0.jam
42
- index 666d4c8..df597f6 100644
61
+ index 666d4c8..cdab118 100644
43
62
--- a/configs/user-config-boost-1_55_0.jam
44
63
+++ b/configs/user-config-boost-1_55_0.jam
45
64
@@ -39,84 +39,44 @@
46
-
65
+
47
66
import os ;
48
67
local AndroidNDKRoot = [ os.environ AndroidNDKRoot ] ;
49
68
+ local PlatformOS = [ os.environ PlatformOS ] ;
50
-
69
+
51
70
# --------------------------------------------------------------------
52
71
- # Is same for 8b, 8c and 8d
53
72
- using gcc : androidR8b
54
73
+ using clang : androidR8e
55
74
:
56
75
- arm-linux-androideabi-g++
57
- + $(AndroidNDKRoot)/toolchains/llvm-3.6 /prebuilt/$(PlatformOS)-x86_64/bin/clang++
76
+ + $(AndroidNDKRoot)/toolchains/llvm/prebuilt/$(PlatformOS)-x86_64/bin/clang++
58
77
:
59
78
- <archiver>arm-linux-androideabi-ar
60
- + <compileflags>--gcc-toolchain="$(AndroidNDKRoot)/toolchains/arm-linux-androideabi-4.8 /prebuilt/$(PlatformOS)-x86_64"
79
+ + <compileflags>--gcc-toolchain="$(AndroidNDKRoot)/toolchains/arm-linux-androideabi-4.9 /prebuilt/$(PlatformOS)-x86_64"
61
80
<compileflags>-fexceptions
62
81
<compileflags>-frtti
63
82
<compileflags>-fpic
@@ -134,15 +153,15 @@ index 666d4c8..df597f6 100644
134
153
<compileflags>-g
135
154
- <compileflags>-I$(AndroidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.6/include
136
155
- <compileflags>-I$(AndroidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/include
137
- + <compileflags>-I$(AndroidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.8 /include
138
- + <compileflags>-I$(AndroidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.8 /libs/armeabi/include
156
+ + <compileflags>-I$(AndroidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.9 /include
157
+ + <compileflags>-I$(AndroidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.9 /libs/armeabi/include
139
158
+ <linkflags>--target=armv7-none-linux-androideabi
140
- + <linkflags>--gcc-toolchain="$(AndroidNDKRoot)/toolchains/arm-linux-androideabi-4.8 /prebuilt/$(PlatformOS)-x86_64"
159
+ + <linkflags>--gcc-toolchain="$(AndroidNDKRoot)/toolchains/arm-linux-androideabi-4.9 /prebuilt/$(PlatformOS)-x86_64"
141
160
+ <linkflags>--sysroot=$(AndroidNDKRoot)/platforms/android-9/arch-arm
142
161
# @Moss - Above are the 'oficial' android flags
143
162
<architecture>arm
144
163
<compileflags>-fvisibility=hidden
145
- @@ -125,9 +84 ,11 @@ arm-linux-androideabi-g++
164
+ @@ -125,9 +85 ,11 @@ arm-linux-androideabi-g++
146
165
<cxxflags>-D__arm__
147
166
<cxxflags>-D_REENTRANT
148
167
<cxxflags>-D_GLIBCXX__PTHREADS
0 commit comments