2021-04-09 22:40:48 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
#
|
2023-10-08 20:20:05 +00:00
|
|
|
# See: https://github.com/BOINC/boinc/wiki/AndroidBuildClient
|
2021-04-09 22:40:48 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# Script to compile everything BOINC needs for Android
|
|
|
|
|
|
|
|
# check working directory because the script needs to be called like: ./android/ci_build_manager.sh
|
|
|
|
if [ ! -d "android" ]; then
|
|
|
|
echo "start this script in the source root directory"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-08-11 20:07:42 +00:00
|
|
|
skip_client_build=""
|
2023-08-20 00:51:07 +00:00
|
|
|
tasks=""
|
2023-08-11 20:07:42 +00:00
|
|
|
while [ $# -gt 0 ]; do
|
|
|
|
key="$1"
|
|
|
|
case $key in
|
|
|
|
--skip-client-build)
|
|
|
|
skip_client_build="yes"
|
|
|
|
;;
|
2023-08-20 00:51:07 +00:00
|
|
|
--tasks)
|
|
|
|
tasks="$2"
|
|
|
|
shift
|
|
|
|
;;
|
2023-08-11 20:07:42 +00:00
|
|
|
*)
|
|
|
|
echo "unrecognized option $key"
|
|
|
|
;;
|
|
|
|
esac
|
2023-08-20 00:51:07 +00:00
|
|
|
shift
|
2023-08-11 20:07:42 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
if [ "x$skip_client_build" = "x" ]; then
|
|
|
|
android/ci_build_vcpkg_client.sh
|
|
|
|
fi
|
2021-04-09 22:40:48 +00:00
|
|
|
|
2023-05-05 18:05:20 +00:00
|
|
|
cd android/BOINC
|
2021-04-09 22:40:48 +00:00
|
|
|
|
|
|
|
echo '===== BOINC Manager build start ====='
|
|
|
|
|
2023-08-20 00:51:07 +00:00
|
|
|
if [ "x$tasks" = "x" ]; then
|
|
|
|
tasks="clean assemble jacocoTestReportDebug"
|
|
|
|
fi
|
|
|
|
./gradlew $tasks --warning-mode all
|
2021-04-09 22:40:48 +00:00
|
|
|
|
|
|
|
echo '===== BOINC Manager build done ====='
|
|
|
|
|
|
|
|
cd ../../
|