Hi team at Bazel,
We are trying to use the
JNI invocation API
[1]. For this, we need to depend on a few JNI headers [2] and also
libjvm.so. Specifically, we want to build a binary (using cc_binary)
that creates the jvm and invokes a method inside of some compiled java
code (in a .jar file, e.g.).
What is the
correct way to depend on this collateral? In particular, is there an
example on github or anywhere online that shows a cc_binary that depends
on libjvm.so?
Thank you,
Pete Stevenson
[2] We need the following headers:
jni.h, jvmti.h, and jni_md.h