I also not exactly sure that generation of whole header file would be the best solution, usually you want limited API (imagine creating all those unused JNI methods from big API), approach with generate everything works pretty well with K/N, because it will use only on compile time, curious how to do the same for Kotlin/JVM, looks that it needs some compiler support