Changeset View
Changeset View
Standalone View
Standalone View
packaging/android/build_boost.sh
- This file was added.
Property | Old Value | New Value |
---|---|---|
File Mode | null | 100755 |
1 | #!/bin/sh | ||||
---|---|---|---|---|---|
2 | | ||||
3 | : ${CMAKE_ANDROID_NDK?"Android NDK path must be set"} | ||||
4 | : ${BUILD_ROOT? "Built roott path must be set"} | ||||
5 | | ||||
6 | CURDIR="$(pwd)"/ | ||||
7 | VERSION="1_69" | ||||
8 | | ||||
9 | git clone https://github.com/moritz-wundke/Boost-for-Android $BUILD_ROOT/d/boost | ||||
10 | | ||||
11 | cd $BUILD_ROOT/d/boost | ||||
12 | | ||||
13 | ./build-android.sh --prefix=$BUILD_ROOT/i --with-libraries=system \ | ||||
14 | --boost=1.69.0 --arch=armeabi-v7a \ | ||||
15 | $CMAKE_ANDROID_NDK | ||||
16 | | ||||
17 | cd $BUILD_ROOT/i/armeabi-v7a/lib | ||||
18 | | ||||
19 | # possible only because just one library is being used | ||||
20 | mv libboost_system-clang-mt-a32-$VERSION.a libboost_system.a | ||||
21 | |