Fix: hardcoded src dir
This commit is contained in:
parent
ee60c4a54d
commit
46ea97ed6f
1 changed files with 4 additions and 2 deletions
6
qt-build
6
qt-build
|
@ -4,13 +4,15 @@ 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}"
|
||||
|
||||
SRC_DIR=$(pwd)
|
||||
|
||||
echo "**** prepare ****"
|
||||
rm -rf /build
|
||||
mkdir -p /build
|
||||
cd /build
|
||||
|
||||
echo "**** qmake ****"
|
||||
qmake $QMAKE_ARGUMENTS /src
|
||||
qmake $QMAKE_ARGUMENTS $SRC_DIR
|
||||
|
||||
echo "**** build native code ****"
|
||||
make -j8
|
||||
|
@ -20,4 +22,4 @@ 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
|
||||
mv /build/android-build//build/outputs $SRC_DIR/outputs
|
||||
|
|
Loading…
Reference in a new issue