qt_android_legacy_packaging

Android 应用程序的传统包装。

此属性在 Qt 6.11 中引入。

注意: 该属性仅用于 Android 平台。

指定应用程序是否使用传统打包。当传统打包设置为TRUE 时,应用程序 APK 将存储在安装过程中在设备上提取的压缩库,应用程序将加载这些库。否则,当设置为FALSE 时,库将保持未压缩状态,应用程序可直接从 APK 包中加载它们,使用时库将被映射到内存中。

set_target_properties(${target} PROPERTIES
    QT_ANDROID_LEGACY_PACKAGING TRUE
)

注意: 使用地址消毒器需要将此设置为TRUE

另请参阅 qt_android_generate_deployment_settings()

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.