mkneissl/android-plugin — comment on commit 9ba34dfca03d545c08c0e02c3bb9add0829638ea
File:  line 0
By mkneissl:

Basic usage
=========

When using JNI one typically uses javah to generate a C header containing the constants and function declarations for classes that contain native methods.

This patch lets SBT run javah to generate the header file for a given set of classes.

Setting `jniClasses in Android` specifies the classes with native methods for which C headers should be generated.

The make environment variable `SBT_MANAGED_JNI_INCLUDE` can be used to refer to the directory containing the generated header files.

```make
# Android.mk
LOCAL_C_INCLUDES += \
... \
$(SBT_MANAGED_JNI_INCLUDE)
```