QT_ANDROID_LEGACY_PACKAGING
Android 应用的传统打包方式。
该属性于 Qt 6.11 版本中引入。
注意: 仅当目标平台为 Android 时,才使用此 属性。
指定应用是否使用传统打包方式。当传统打包方式设置为TRUE 时,应用的APK将存储经过压缩的库文件,这些库文件会在安装过程中于设备上解压,随后应用将加载这些库。否则,当设置为FALSE 时,库文件将保持未压缩状态,应用可直接从APK包中加载它们,并在使用时将库映射到内存中。
set_target_properties(${target} PROPERTIES
QT_ANDROID_LEGACY_PACKAGING TRUE
)注意:若要使用 地址 sanitizer,必须将此选项设置为“TRUE ”。
© 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.