diff options
Diffstat (limited to 'src/java/com/jogamp/gluegen/JavaConfiguration.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/JavaConfiguration.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/java/com/jogamp/gluegen/JavaConfiguration.java b/src/java/com/jogamp/gluegen/JavaConfiguration.java index 30ccbb2..3faddcd 100644 --- a/src/java/com/jogamp/gluegen/JavaConfiguration.java +++ b/src/java/com/jogamp/gluegen/JavaConfiguration.java @@ -62,6 +62,7 @@ import static com.jogamp.gluegen.JavaEmitter.EmissionStyle.*; public class JavaConfiguration { private int nestedReads; + private String libraryOnLoadName; private String packageName; private String implPackageName; private String className; @@ -284,6 +285,11 @@ public class JavaConfiguration { public void setOutputRootDir(final String s) { outputRootDir=s; } + /** Returns the library basename used to {@link CCodeUnit#emitJNIOnLoadJNIEnvCode(String)}. */ + public String libraryOnLoadName() { + return libraryOnLoadName; + } + /** Returns the package name parsed from the configuration file. */ public String packageName() { return packageName; @@ -1310,8 +1316,10 @@ public class JavaConfiguration { protected void dispatch(final String cmd, final StringTokenizer tok, final File file, final String filename, final int lineNo) throws IOException { //System.err.println("read cmd = [" + cmd + "]"); - if (cmd.equalsIgnoreCase("Package")) { - packageName = readString("package", tok, filename, lineNo); + if (cmd.equalsIgnoreCase("LibraryOnLoad")) { + libraryOnLoadName = readString("LibraryOnLoad", tok, filename, lineNo); + } else if (cmd.equalsIgnoreCase("Package")) { + packageName = readString("Package", tok, filename, lineNo); } else if (cmd.equalsIgnoreCase("GlueGenRuntimePackage")) { gluegenRuntimePackage = readString("GlueGenRuntimePackage", tok, filename, lineNo); } else if (cmd.equalsIgnoreCase("ImplPackage")) { |