Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qt_android_generate_deployment_settings.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2020 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
\page qt-android-generate-deployment-settings.html
6
\ingroup cmake-commands-qtcore
7
8
\title qt_android_generate_deployment_settings
9
\keyword qt6_android_generate_deployment_settings
10
11
\summary {Generates the deployment settings file needed by androiddeployqt.}
12
13
\include cmake-find-package-core.qdocinc
14
15
\cmakecommandsince 6.0
16
\warning This command is deprecated since Qt 6.5. Use \l qt_add_executable instead.
17
\cmakecommandandroidonly
18
19
\section1 Synopsis
20
21
\badcode
22
qt_android_generate_deployment_settings(target)
23
\endcode
24
25
\versionlessCMakeCommandsNote qt6_android_generate_deployment_settings()
26
27
\section1 Description
28
29
The \c{androiddeployqt} tool expects a deployment settings file as input. This
30
command reads CMake variables and properties of the \c{target} to generate such
31
a file in the target's binary directory. Upon return, the full path to this file
32
is available in the target's \c{QT_ANDROID_DEPLOYMENT_SETTINGS_FILE} property.
33
34
\section2 CMake Variables
35
36
A number of variables are used while generating the deployment settings file.
37
Some are provided by Qt, others by CMake or the Android NDK.
38
39
\list
40
\li \l{cmake-variable-ANDROID_NDK_HOST_SYSTEM_NAME}{ANDROID_NDK_HOST_SYSTEM_NAME}
41
\li \l{cmake-variable-ANDROID_SDK_ROOT}{ANDROID_SDK_ROOT}
42
\li \c{CMAKE_ANDROID_ARCH_ABI}
43
\li \c{CMAKE_ANDROID_NDK}
44
\li \c{CMAKE_SYSROOT}
45
\li \l{cmake-variable-QT_ANDROID_APPLICATION_ARGUMENTS}{QT_ANDROID_APPLICATION_ARGUMENTS}
46
\li \l{cmake-variable-QT_HOST_PATH}{QT_HOST_PATH}
47
\endlist
48
49
\section2 Target Properties
50
51
The properties below will be read from the specified \c{target}. Note that this
52
command is called as part of target finalization (see
53
\l{qt6_finalize_target}{qt_finalize_target()}). If you are using
54
\l{qt6_add_executable}{qt_add_executable()} to create the target and you need to
55
modify some of these target properties, you need to ensure that target
56
finalization is deferred. See \l{qt6_add_executable}{qt_add_executable()} for
57
how to accomplish this.
58
59
\list
60
\li \l{cmake-target-property-QT_ANDROID_DEPLOYMENT_DEPENDENCIES}{QT_ANDROID_DEPLOYMENT_DEPENDENCIES}
61
\li \l{cmake-target-property-QT_ANDROID_EXTRA_LIBS}{QT_ANDROID_EXTRA_LIBS}
62
\li \l{cmake-target-property-QT_ANDROID_EXTRA_PLUGINS}{QT_ANDROID_EXTRA_PLUGINS}
63
\li \l{cmake-target-property-QT_ANDROID_MIN_SDK_VERSION}{QT_ANDROID_MIN_SDK_VERSION}
64
\li \l{cmake-target-property-QT_ANDROID_PACKAGE_SOURCE_DIR}{QT_ANDROID_PACKAGE_SOURCE_DIR}
65
\li \l{cmake-target-property-QT_ANDROID_TARGET_SDK_VERSION}{QT_ANDROID_TARGET_SDK_VERSION}
66
\li \l{cmake-target-property-QT_ANDROID_COMPILE_SDK_VERSION}{QT_ANDROID_COMPILE_SDK_VERSION}
67
\li \l{cmake-target-property-QT_ANDROID_PACKAGE_NAME}{QT_ANDROID_PACKAGE_NAME}
68
\li \l{cmake-target-property-QT_ANDROID_APP_NAME}{QT_ANDROID_APP_NAME}
69
\li \l{cmake-target-property-QT_ANDROID_APP_ICON}{QT_ANDROID_APP_ICON}
70
\li \l{cmake-target-property-QT_ANDROID_VERSION_NAME}{QT_ANDROID_VERSION_NAME}
71
\li \l{cmake-target-property-QT_ANDROID_VERSION_CODE}{QT_ANDROID_VERSION_CODE}
72
\li \l{cmake-target-property-QT_ANDROID_LEGACY_PACKAGING}{QT_ANDROID_LEGACY_PACKAGING}
73
\li \l{cmake-target-property-QT_QML_IMPORT_PATH}{QT_QML_IMPORT_PATH}
74
\li \l{cmake-target-property-QT_QML_ROOT_PATH}{QT_QML_ROOT_PATH}
75
\li \l{cmake-target-property-qt_no_entrypoint}{qt_no_entrypoint}
76
\endlist
77
78
Upon return, the \c{QT_ANDROID_DEPLOYMENT_SETTINGS_FILE} target property will
79
contain the location of the generated deployment settings file.
80
81
\sa {qt6_android_add_apk_target}{qt_android_add_apk_target()},
82
{qt6_finalize_target}{qt_finalize_target()}
83
84
\section1 Example
85
86
\snippet cmake-macros/examples.cmake qt_android_deploy_basic
87
*/
qtbase
src
corelib
doc
src
cmake
qt_android_generate_deployment_settings.qdoc
Generated on
for Qt by
1.14.0