qt_add_android_dynamic_feature_java_source_dirs
将 Java 源代码目录添加到动态功能构建中。
该命令定义在Qt6 包的Core 组件中,可按如下方式加载:
find_package(Qt6 REQUIRED COMPONENTS Core)该命令于 Qt 6.11 中引入。
语法
qt_add_android_dynamic_feature_java_source_dirs(target [SOURCE_DIRS <directory1> <directory2> ...])如果禁用了无版本命令,请改用qt6_add_android_dynamic_feature_java_source_dirs() 。它支持与本命令相同的参数集。
描述
该命令在构建具有动态功能的可执行应用时,会向 `target ` 可执行文件添加额外的 Java/Kotlin 源代码目录。需与 `qt_add_android_dynamic_features()` 配合使用。
© 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.