forked from dec1/Boost-for-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doIt_crystax.sh
executable file
·38 lines (22 loc) · 1.36 KB
/
doIt_crystax.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright (c) 2017 Declan Moran (www.silverglint.com)
# Extract boost (src) archive to a directory of the form "major.minor.patch"
# so that the dir name ~ boost version (eg "1.64.0")
# Example script. Modify the variables below as appropriate for your local setup.
#---------------------------------------------------------------------------------
# Specify the path to boost src dir
BOOST_SRC_DIR=/home/declan/Documents/zone/mid/lib/boost
# Specify the version of boost in the source dir
BOOST_VERSION=1.64.0
# Specify path to (Google) Ndk
CRYSTAX_DIR=/home/declan/Documents/zone/mid/lib/android/crystax/stable
# Dont modify
export ANDROID_NDK_ROOT=$CRYSTAX_DIR
# Modify if desired
# log file where build messages will be stored
logFile=build_out.txt
rm $logFile
# the build script writes some extra info to this file if its defined (but will be in "split" across different dirs)
#export NDK_LOGFILE=ndk_log_out.txt
$CRYSTAX_DIR/build/tools/build-boost.sh --version=1.64.0 --stdlibs="gnu-4.9, gnu-5, llvm-3.6, llvm-3.7" --abis="armeabi-v7a, x86" --ndk-dir=$ANDROID_NDK_ROOT --verbose $BOOST_SRC_DIR 2>&1 | tee -a $logFile
# ./build_tools/build-boost.sh --version=1.64.0 --stdlibs="gnu-4.9" --abis="armeabi-v7a" --ndk-dir=$ANDROID_NDK_ROOT --linkage="shared" --verbose $BOOST_SRC_DIR 2>&1 | tee -a $logFile
# gets installed to stable/sources/boost/$BOOST_VERSION