diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-11-06 10:29:58 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-11-17 19:06:34 +0100 |
commit | abdef932b8b4d75338493704938ee6d884a5091c (patch) | |
tree | 8f471d1e35a477fa1542b4f6562a0570ed9094c3 /src/corelib/doc | |
parent | 740d3a6b51e72812b78fc3e609478203ecacc903 (diff) |
Android: add opt-out for release package signing
Release and RelWithDebInfo builds always default to passing
--release to androiddeployqt. There is an opt-in variable
(QT_ANDROID_DEPLOY_RELEASE), presumably for Debug builds,
but there is no opt-out for non-Debug builds. Instead,
there is a hack for autotests.
In addition to tests, there are situations during development
where we want to deploy a release build, but do not have or
want to set up the release signing infrastructure. Having a
variable to opt-out is then very useful.
Change-Id: I6c6b9aaccad7d9d4f86745f3ed7d3c475b383ad3
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'src/corelib/doc')
-rw-r--r-- | src/corelib/doc/src/cmake/cmake-configure-variables.qdoc | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/src/corelib/doc/src/cmake/cmake-configure-variables.qdoc b/src/corelib/doc/src/cmake/cmake-configure-variables.qdoc index dd5800a411..a7b9a94148 100644 --- a/src/corelib/doc/src/cmake/cmake-configure-variables.qdoc +++ b/src/corelib/doc/src/cmake/cmake-configure-variables.qdoc @@ -86,14 +86,39 @@ is written out as part of the deployment settings for a target. \title QT_ANDROID_DEPLOY_RELEASE \target cmake-variable-QT_ANDROID_DEPLOY_RELEASE -\summary {Sets the package type as a release.} +\summary {Forces release package signing regardless of the build type.} \cmakevariablesince 6.5.2 \preliminarycmakevariable \cmakevariableandroidonly -When set to \c TRUE, allows you to create a release package -by passing the \c --release flag to the \c androiddeployqt tool. +When set to \c TRUE, the \c --release flag is passed to the \c androiddeployqt +tool, even when the application build mode is Debug. In Release and +RelWithDebInfo builds this is the default. For more control over this, prefer +using \l QT_ANDROID_DEPLOYMENT_TYPE instead. + +\sa {androiddeployqt} +*/ + +/*! +\page cmake-variable-qt-android-deployment-type.html +\ingroup cmake-variables-qtcore + +\title QT_ANDROID_DEPLOYMENT_TYPE +\target cmake-variable-QT_ANDROID_DEPLOYMENT_TYPE + +\summary {Forces or disables release package signing regardless of the build type.} + +\cmakevariablesince 6.7 +\preliminarycmakevariable +\cmakevariableandroidonly + +When set to \c Release, the \c --release flag is passed to the \c +androiddeployqt tool, regardless of the application build type. When set to +another value, the \c --release flag is never passed to the tool, which +effectively disables release package signing even in Release or RelWithDebInfo +builds. When not set, the default behavior is to use release package signing in +build types other than Debug. \sa {androiddeployqt} */ |