5 # Change to extlibs directory
8 # Check for cereal existence
9 if [ ! -d "cereal" ]; then
10 git clone https://github.com/USCiLab/cereal.git cereal
12 git reset --hard 7121e91e6ab8c3e6a6516d9d9c3e6804e6f65245
13 git apply ../../resource/patches/cereal_gcc46.patch
21 BOOST_VERSION="${BOOST_MAJOR}.${BOOST_MINOR}.${BOOST_REVISION}"
22 BOOST_NAME="boost_${BOOST_MAJOR}_${BOOST_MINOR}_${BOOST_REVISION}"
23 BOOST_FILE="${BOOST_NAME}.zip"
25 function downloadBoost {
26 echo "Downloading boost v${BOOST_VERSION}"
27 wget --progress=bar --continue --output-document=${BOOST_FILE} http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION}/${BOOST_FILE}?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F${BOOST_VERSION}%2F\&ts=1419450713\&use_mirror=iweb
30 function unpackBoost {
31 if [ ! -f "${BOOST_FILE}" ]; then
35 echo "Unpacking boost v${BOOST_VERSION}"
36 unzip ${BOOST_FILE} >> build.log
43 if [ ! -d "${BOOST_NAME}" ]; then
47 TOOLCHAIN=${ANDROID_NDK}/toolchains/${TOOLSET}-${VERSION}/prebuilt/linux-x86/bin
48 echo "Copying user configs to boost"
49 cp ../resource/patches/user-config-${TOOLSET}.jam ${BOOST_NAME}/tools/build/v2/user-config.jam
61 --prefix="./../../out/boost" \
62 -s PLATFORM=android-${PLATFORM} \
63 -s VERSION=${VERSION} \
71 cp -R ../out/boost/include/* ${INCPATH}
73 cp -R ../out/boost/lib/* ${LIBPATH}
81 INCPATH="$(dirname "$0")/../out/android/include"
82 LIBPATH="$(dirname "$0")/../out/android/lib/${TOOLSET}"
84 if [ ! -d "${INCPATH}" ];
88 if [ ! -d "${LIBPATH}" ];
94 checkBoost 19 arm-linux-androideabi 4.9