To install Qt Jenny:
Take the QtJenny Demo as a starting point. It already has a code generation project configured for a set of Android Java classes, and that code generation project is integrated into the main Qt C++ application project.
qtjenny-annotation
and
qtjenny-compiler
. The qtjenny-annotation provides an annotation processor, and qtjenny-compiler provides a
KAPT
模块。
Qt Jenny can be made to process annotations in Java code, instead of Kotlin, but that's not important, because the annotations are not for the code of the generation project itself; they are there just to trigger wrapper generation for classes that are already defined and available via some package, such as the Android API classes which are provided by the Android SDK.
This step happens automatically during the configure step of the Qt C++ project if the CMake project is done as in the QtJenny Demo .