W3cubDocs

/Qt

QT_ANDROID_PACKAGE_SOURCE_DIR

Path to a custom Android package template.

Note: This property is in technology preview and may change in future releases.

Note: This property is used only if targeting the Android platform.

Specifies the path for a custom Android package template. The Android package template contains:

  • AndroidManifest.xml file
  • build.gradle file and other Gradle scripts
  • res/values/libs.xml file

The path specified by this variable can contain custom Java classes under src directory. By default, the androiddeployqt tool copies the application template from the Qt for Android installation path into your project's build directory, then it copies the contents of the path specified by this variable on top of that, overwriting any existing files. For instance, you can make a custom AndroidManifest.xml for your application, then place this directly into the directory specified by this variable.

See also qt_android_generate_deployment_settings().

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/cmake-target-property-qt-android-package-source-dir.html