3 ms·
> I am sort of surprised that there isn't a widely used tool that uses codegen to generate jni bindings sort of like what the jna does but at build time There
by MaxBarraclough 2y ago
> I am sort of surprised that there isn't a widely used tool that uses codegen to generate jni bindings sort of like what the jna does but at build time
There are several, including SWIG.
- andoando 2y agoWhich is still a pita to use unless maybe you really know what youre doing.
- TillE 2y agoBinding generation is really difficult to approach as a general problem, which is why I've found that SWIG unfortunately doesn't help much in non-trivial cases. All the good bindings I use are generated by custom systems (ie, usually some Python scripts) tailored for the specific way their library works.