2018-01-28 19:56:22 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
2013-02-18 20:38:33 +00:00
|
|
|
|
|
|
|
#
|
2020-03-13 15:16:10 +00:00
|
|
|
# See: https://boinc.berkeley.edu/trac/wiki/AndroidBuildClient
|
2013-02-18 20:38:33 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# Script to compile everything BOINC needs for Android
|
2020-06-11 23:03:01 +00:00
|
|
|
export VERBOSE="no"
|
|
|
|
|
2020-05-17 11:38:35 +00:00
|
|
|
cd ../
|
2020-06-09 03:08:35 +00:00
|
|
|
BUILD_DIR="$PWD/3rdParty/buildCache"
|
2020-05-17 11:38:35 +00:00
|
|
|
cd android/
|
2013-01-16 18:17:50 +00:00
|
|
|
|
2020-05-17 11:38:35 +00:00
|
|
|
./buildAndroidBOINC-CI.sh --cache_dir "$ANDROID_TC" --build_dir "$BUILD_DIR" --arch arm
|
|
|
|
./buildAndroidBOINC-CI.sh --cache_dir "$ANDROID_TC" --build_dir "$BUILD_DIR" --arch arm64
|
|
|
|
./buildAndroidBOINC-CI.sh --cache_dir "$ANDROID_TC" --build_dir "$BUILD_DIR" --arch x86
|
|
|
|
./buildAndroidBOINC-CI.sh --cache_dir "$ANDROID_TC" --build_dir "$BUILD_DIR" --arch x86_64
|
2020-05-05 02:29:45 +00:00
|
|
|
|
2020-07-05 00:41:53 +00:00
|
|
|
if [ ! -d ../3rdParty/buildCache/android-tc/arm ]; then
|
|
|
|
echo You run this script from diffrent folder: $PWD
|
|
|
|
echo Please run it from boinc/android
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-07-04 23:57:25 +00:00
|
|
|
for i in "libcrypto.a" "libssl.a" "libcurl.a"; do
|
2020-07-05 00:41:53 +00:00
|
|
|
if [ $(readelf -A $(find ../3rdParty/buildCache/android-tc/arm -name "$i") | grep -i neon | head -c1 | wc -c) -ne 0 ]; then
|
2020-07-04 22:46:04 +00:00
|
|
|
echo "$i" is with neon optimization
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2020-05-05 02:29:45 +00:00
|
|
|
echo '===== BOINC for all platforms build done ====='
|