Add QT_ANDROID_TARGET_SDK_VERSION target property
This is the counterpart of the qmake variable ANDROID_TARGET_SDK_VERSION. Task-number: QTBUG-86033 Change-Id: Idd64ee06eb94826430e6be5d9d878631db67c949 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 7d48b64f41083dde3dcb7fcee8cef0f4db6417f8)
This commit is contained in:
parent
41d8dc7c59
commit
704c99f885
@ -168,6 +168,13 @@ function(qt6_android_generate_deployment_settings target)
|
|||||||
" \"android-min-sdk-version\": \"${android_min_sdk_version}\",\n")
|
" \"android-min-sdk-version\": \"${android_min_sdk_version}\",\n")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# target SDK version
|
||||||
|
get_target_property(android_target_sdk_version ${target} QT_ANDROID_TARGET_SDK_VERSION)
|
||||||
|
if(android_target_sdk_version)
|
||||||
|
string(APPEND file_contents
|
||||||
|
" \"android-target-sdk-version\": \"${android_target_sdk_version}\",\n")
|
||||||
|
endif()
|
||||||
|
|
||||||
get_target_property(qml_import_path ${target} QT_QML_IMPORT_PATH)
|
get_target_property(qml_import_path ${target} QT_QML_IMPORT_PATH)
|
||||||
if (qml_import_path)
|
if (qml_import_path)
|
||||||
set(_import_paths "")
|
set(_import_paths "")
|
||||||
|
@ -530,6 +530,7 @@ how to accomplish this.
|
|||||||
\li \l{cmake-target-property-QT_ANDROID_EXTRA_PLUGINS}{QT_ANDROID_EXTRA_PLUGINS}
|
\li \l{cmake-target-property-QT_ANDROID_EXTRA_PLUGINS}{QT_ANDROID_EXTRA_PLUGINS}
|
||||||
\li \l{cmake-target-property-QT_ANDROID_MIN_SDK_VERSION}{QT_ANDROID_MIN_SDK_VERSION}
|
\li \l{cmake-target-property-QT_ANDROID_MIN_SDK_VERSION}{QT_ANDROID_MIN_SDK_VERSION}
|
||||||
\li \l{cmake-target-property-QT_ANDROID_PACKAGE_SOURCE_DIR}{QT_ANDROID_PACKAGE_SOURCE_DIR}
|
\li \l{cmake-target-property-QT_ANDROID_PACKAGE_SOURCE_DIR}{QT_ANDROID_PACKAGE_SOURCE_DIR}
|
||||||
|
\li \l{cmake-target-property-QT_ANDROID_TARGET_SDK_VERSION}{QT_ANDROID_TARGET_SDK_VERSION}
|
||||||
\li \l{cmake-target-property-QT_ANDROID_VERSION_NAME}{QT_ANDROID_VERSION_NAME}
|
\li \l{cmake-target-property-QT_ANDROID_VERSION_NAME}{QT_ANDROID_VERSION_NAME}
|
||||||
\li \l{cmake-target-property-QT_ANDROID_VERSION_CODE}{QT_ANDROID_VERSION_CODE}
|
\li \l{cmake-target-property-QT_ANDROID_VERSION_CODE}{QT_ANDROID_VERSION_CODE}
|
||||||
\li \l{cmake-target-property-QT_QML_IMPORT_PATH}{QT_QML_IMPORT_PATH}
|
\li \l{cmake-target-property-QT_QML_IMPORT_PATH}{QT_QML_IMPORT_PATH}
|
||||||
|
@ -161,6 +161,24 @@ then place this directly into the directory specified by this variable.
|
|||||||
\sa{qt6_android_generate_deployment_settings}{qt_android_generate_deployment_settings()}
|
\sa{qt6_android_generate_deployment_settings}{qt_android_generate_deployment_settings()}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\page cmake-target-property-QT_ANDROID_TARGET_SDK_VERSION.html
|
||||||
|
\ingroup cmake-properties-qtcore
|
||||||
|
\ingroup cmake-target-properties-qtcore
|
||||||
|
|
||||||
|
\title QT_ANDROID_TARGET_SDK_VERSION
|
||||||
|
\target cmake-target-property-QT_ANDROID_TARGET_SDK_VERSION
|
||||||
|
|
||||||
|
\brief Android target SDK version.
|
||||||
|
|
||||||
|
\preliminarycmakeproperty
|
||||||
|
\cmakepropertyandroidonly
|
||||||
|
|
||||||
|
Specifies the target Android API level for the target.
|
||||||
|
|
||||||
|
\sa{qt6_android_generate_deployment_settings}{qt_android_generate_deployment_settings()}
|
||||||
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\page cmake-target-property-QT_ANDROID_VERSION_CODE.html
|
\page cmake-target-property-QT_ANDROID_VERSION_CODE.html
|
||||||
\ingroup cmake-properties-qtcore
|
\ingroup cmake-properties-qtcore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user