5 # Change to extlibs directory
10 # Check for cereal existence
11 if [ ! -d "cereal" ]; then
12 git clone https://github.com/USCiLab/cereal.git cereal
14 git reset --hard 7121e91e6ab8c3e6a6516d9d9c3e6804e6f65245
15 git apply ../../resource/patches/cereal_gcc46.patch
19 # Pick the preferred version of boost to use
24 BOOST_VERSION="${BOOST_MAJOR}.${BOOST_MINOR}.${BOOST_REVISION}"
26 # Determine the architecture
29 if [ "${HOST_ARCH}" != "x86_64" ];
34 HOST_ARCH="linux-${HOST_ARCH}"
37 echo "Removing old boost repo..."
39 echo "Cloning boost from GIT HUB..."
40 git clone --recursive https://github.com/boostorg/boost.git boost
44 if [ ! -d "boost" ]; then
49 TOOLCHAIN=${ANDROID_NDK}/toolchains/${TOOLSET}-${VERSION}/prebuilt/${HOST_ARCH}/bin
57 echo "Checking out boost v${BOOST_VERSION}..."
58 git checkout --force -B boost-${BOOST_VERSION} tags/boost-${BOOST_VERSION} &>> ../boost.log
59 git submodule foreach --recursive git checkout --force -B boost-${BOOST_VERSION} tags/boost-${BOOST_VERSION} &>> ../boost.log
60 echo "Reset and clean all modular repositories..."
61 git reset --hard HEAD >> ../boost.log
62 git clean -d --force >> ../boost.log
63 git clean -d --force -x >> ../boost.log
64 git submodule foreach --recursive git reset --hard HEAD >> ../boost.log
65 git submodule foreach --recursive git clean --force -d >> ../boost.log
66 git submodule foreach --recursive git clean --force -d -x >> ../boost.log
67 echo "Copying user configs to boost..."
68 cp ${EXTDIR}/../resource/patches/boost/${TOOLSET}/user-config.jam tools/build/src/user-config.jam
69 echo "Boostrapping boost..."
77 --build-type=minimal \
78 -s PLATFORM=${PLATFORM} \
79 -s VERSION=${VERSION} \
80 --prefix="${EXTDIR}/../out/boost" \
81 --includedir="${INCPATH}" \
82 --libdir="${LIBPATH}" \
83 --build-dir="$(pwd)/build" \
85 --with-program_options \
89 if [ ! -d "${INCPATH}" ];
91 echo "Copying headers to android include directory..."
93 cp --recursive --dereference boost/boost ${INCPATH}
104 INCPATH="${EXTDIR}/../out/android/include"
105 LIBPATH="${EXTDIR}/../out/android/lib/${TOOLSET}"
107 if [ ! -d "${LIBPATH}" ];
113 checkBoost android-19 arm-linux-androideabi 4.9
114 checkBoost android-19 x86 4.9