Dorian Zedler
ee60c4a54d
All checks were successful
continuous-integration/drone/push Build is passing
23 lines
736 B
Bash
Executable file
23 lines
736 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
[[ -z "${PLUGIN_QMAKE_ARGUMENTS}" ]] && QMAKE_ARGUMENTS=$1 || QMAKE_ARGUMENTS="${PLUGIN_QMAKE_ARGUMENTS}"
|
|
[[ -z "${PLUGIN_ANDROIDDEPLOYQT_ARGUMENTS}" ]] && ANDROIDDEPLOYQT_ARGUMENTS=$2 || ANDROIDDEPLOYQT_ARGUMENTS="${PLUGIN_ANDROIDDEPLOYQT_ARGUMENTS}"
|
|
|
|
echo "**** prepare ****"
|
|
rm -rf /build
|
|
mkdir -p /build
|
|
cd /build
|
|
|
|
echo "**** qmake ****"
|
|
qmake $QMAKE_ARGUMENTS /src
|
|
|
|
echo "**** build native code ****"
|
|
make -j8
|
|
make INSTALL_ROOT=/build/android-build install
|
|
|
|
echo "**** android build ****"
|
|
androiddeployqt --input $(ls -1 /build/android-*-deployment-settings.json) --output /build/android-build --gradle $ANDROIDDEPLOYQT_ARGUMENTS
|
|
|
|
echo "**** finish up ****"
|
|
mv /build/android-build//build/outputs /src/outputs
|