2018-03-29 14:35:31 -06:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# -D BOOST_ROOT=/opt/android/boost_1_58_0
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2018-09-27 10:24:22 -06:00
|
|
|
packages=(boost openssl monero libsodium)
|
|
|
|
archs=(arm arm64 x86 x86_64)
|
2018-03-29 14:35:31 -06:00
|
|
|
|
|
|
|
for arch in ${archs[@]}; do
|
|
|
|
case ${arch} in
|
|
|
|
"arm")
|
|
|
|
xarch="armeabi-v7a"
|
|
|
|
;;
|
|
|
|
"arm64")
|
|
|
|
xarch="arm64-v8a"
|
|
|
|
;;
|
|
|
|
"x86")
|
|
|
|
xarch="x86"
|
|
|
|
;;
|
|
|
|
"x86_64")
|
|
|
|
xarch="x86_64"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
exit 16
|
|
|
|
;;
|
|
|
|
esac
|
2018-10-08 09:47:55 -06:00
|
|
|
|
2018-03-29 14:35:31 -06:00
|
|
|
for package in ${packages[@]}; do
|
2018-09-27 10:24:22 -06:00
|
|
|
INPUT_DIR=`pwd`/build/build/$package
|
2018-03-29 14:35:31 -06:00
|
|
|
OUTPUT_DIR=`pwd`/$package/lib/$xarch
|
|
|
|
mkdir -p $OUTPUT_DIR
|
|
|
|
rm -f $OUTPUT_DIR/*.a
|
2018-09-27 10:24:22 -06:00
|
|
|
cp -a $INPUT_DIR/$arch/lib/*.a $OUTPUT_DIR
|
2018-03-29 14:35:31 -06:00
|
|
|
|
2018-09-27 10:24:22 -06:00
|
|
|
if [ $package = "monero" ]; then
|
2018-03-29 14:35:31 -06:00
|
|
|
rm -rf $OUTPUT_DIR/../../include
|
2018-09-27 10:24:22 -06:00
|
|
|
cp -a $INPUT_DIR/include $OUTPUT_DIR/../..
|
2018-10-08 09:47:55 -06:00
|
|
|
fi
|
2018-03-29 14:35:31 -06:00
|
|
|
|
|
|
|
done
|
|
|
|
done
|
|
|
|
exit 0
|
|
|
|
|