Feat: buildscript
This commit is contained in:
parent
097809541f
commit
d9ccda0aad
2 changed files with 26 additions and 1 deletions
|
@ -59,4 +59,6 @@ RUN echo "**** setup environment ****" && \
|
|||
|
||||
ENV PATH="${PATH}:/usr/lib/qt/bin:/usr/lib/jvm/java-8-openjdk-amd64/bin"
|
||||
WORKDIR /src
|
||||
entrypoint ["bash"]
|
||||
|
||||
COPY "qt-build" "/usr/local/bin/qt-build"
|
||||
entrypoint ["/usr/local/bin/qt-build"]
|
||||
|
|
23
qt-build
Normal file
23
qt-build
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/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
|
Loading…
Reference in a new issue