add_jar: add option GENERATE_NATIVE_HEADERS

This commit is contained in:
Marc Chevrier
2018-01-19 14:26:46 +01:00
parent be2f050903
commit 4829ea239a
9 changed files with 211 additions and 17 deletions

View File

@@ -0,0 +1,19 @@
class D
{
public D()
{
}
public native void printName();
static {
try {
System.loadLibrary("D");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load.\n" + e);
System.exit(1);
}
}
}