2021-03-07 19:55:40 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
#
|
|
|
|
# See: https://boinc.berkeley.edu/trac/wiki/AndroidBuildClient
|
|
|
|
#
|
|
|
|
|
|
|
|
# Script to compile BOINC selected component for Android
|
|
|
|
|
|
|
|
# check working directory because the script needs to be called like: ./android/ci_build_apps.sh
|
|
|
|
if [ ! -d "android" ]; then
|
|
|
|
echo "start this script in the source root directory"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
ci=""
|
|
|
|
component=""
|
2021-03-29 21:33:27 +00:00
|
|
|
build_with_vcpkg=""
|
2021-03-07 19:55:40 +00:00
|
|
|
|
|
|
|
while [ $# -gt 0 ]; do
|
|
|
|
key="$1"
|
|
|
|
case $key in
|
|
|
|
--ci)
|
|
|
|
ci="$key"
|
|
|
|
;;
|
|
|
|
--component)
|
|
|
|
component=$2
|
|
|
|
shift
|
|
|
|
;;
|
2021-03-29 21:33:27 +00:00
|
|
|
--with-vcpkg)
|
|
|
|
build_with_vcpkg="$key"
|
|
|
|
;;
|
2021-03-07 19:55:40 +00:00
|
|
|
*)
|
|
|
|
echo "unrecognized option $key"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
shift # past argument or value
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ "x$component" = "x" ]; then
|
|
|
|
echo "No component to build"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd android
|
|
|
|
|
2021-03-30 13:08:01 +00:00
|
|
|
rm -rf /tmp/vcpkg_updated
|
|
|
|
|
2021-03-29 21:33:27 +00:00
|
|
|
./buildAndroidBOINC-CI.sh --cache_dir "$ANDROID_TC" --build_dir "$BUILD_DIR" --silent $ci --component $component $build_with_vcpkg --arch armv6
|
|
|
|
./buildAndroidBOINC-CI.sh --cache_dir "$ANDROID_TC" --build_dir "$BUILD_DIR" --silent $ci --component $component $build_with_vcpkg --arch arm
|
|
|
|
./buildAndroidBOINC-CI.sh --cache_dir "$ANDROID_TC" --build_dir "$BUILD_DIR" --silent $ci --component $component $build_with_vcpkg --arch arm64
|
|
|
|
./buildAndroidBOINC-CI.sh --cache_dir "$ANDROID_TC" --build_dir "$BUILD_DIR" --silent $ci --component $component $build_with_vcpkg --arch x86
|
|
|
|
./buildAndroidBOINC-CI.sh --cache_dir "$ANDROID_TC" --build_dir "$BUILD_DIR" --silent $ci --component $component $build_with_vcpkg --arch x86_64
|
2021-03-07 19:55:40 +00:00
|
|
|
|
|
|
|
cd ..
|