QT_ANDROID_EXTRA_PLUGINS
需随目标一起部署的额外 Qt 插件。
该属性自 Qt 6.0 起引入。
注意: 仅在目标平台为 Android 时才使用此 属性。
指定应用程序必须打包但无法通过资源系统分发的 C++ 插件或资源的路径,例如 QML 插件。通过此变量,androiddeployqt将确保所有内容均被正确打包和部署。
QT_ANDROID_EXTRA_PLUGINS 必须指向构建额外插件的目录。此外,构建目录结构必须遵循与 Qt 插件类似的命名约定,即plugins/<插件名称>。QT_ANDROID_EXTRA_PLUGINS 应指向该路径中的plugins部分。
插件库的命名格式应为libplugins_<类型>_<名称>_<abi>.so。这将确保对插件库应用正确的名称修饰。
© 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.