A drone plugin for building Qt apps for Android.
Find a file
2022-07-29 09:17:04 +02:00
.drone.yml Update '.drone.yml' 2022-07-29 09:15:34 +02:00
Dockerfile Feat: buildscript 2022-07-28 23:29:11 +02:00
qt-build Chore: docs and more logs 2022-07-29 09:08:16 +02:00
README.md Update 'README.md' 2022-07-29 09:17:04 +02:00

qt-android

A drone plugin for building Qt apps for Android.

Usage

The following settings changes this plugin's behavior.

  • qmake_arguments (optional) additional arguments for qmake.
  • androiddeployqt_arguments (optional) additional arguments for androiddeployqt.

Below is an example .drone.yml that uses this plugin.

kind: pipeline
name: default

steps:
- name: run itsblue.dev/plugins/qt-android plugin
  image: itsblue.dev/plugins/qt-android
  pull: if-not-exists
  settings:
    qmake_attributes: "CONFIG+=release"
    androiddeployqt_attributes: "--aab"

Building

Build the plugin image:

docker build -t itsblue.dev/plugins/qt-android -f Dockerfile .

Testing

Execute the plugin from your current working directory:

docker run --rm \
  -e DRONE_COMMIT_SHA=8f51ad7884c5eb69c11d260a31da7a745e6b78e2 \
  -e DRONE_COMMIT_BRANCH=master \
  -e DRONE_BUILD_NUMBER=43 \
  -e DRONE_BUILD_STATUS=success \
  -e PLUGIN_QMAKE_ARGUMENTS="CONFIG+=release"
  -e PLUGIN_ANDROIDDEPLOYQT_ARGUMENTS="--aab"
  -w /drone/src \
  -v $(pwd):/drone/src \
  itsblue.dev/plugins/qt-android