在本页中

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 源代码目录。与 qt6_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.