Skip to content
Unstable

Changes

Summary

  1. Unify JNI Library Loading into JNILibLoaderBase and use it for the (details)
  2. JNILibLoaderBase/TempJarCache: Prepare for loadLibrary(..) out of cached (details)
  3. gluegen-rt lib loading: Moved to Platform static init incl. (details)
  4. test script (details)
Commit def691b009132463f8ec8efabd0d72768235dcf5 by Sven Gothel
Unify JNI Library Loading into JNILibLoaderBase and use it for the gluegen-rt native lib as well

- removed redundance
- move proper JNLPAppletLauncher custom libloader code into JNILibLoaderBase
- prepares for new JAR temp cache ..
The file was modifiedsrc/java/com/jogamp/common/jvm/JNILibLoaderBase.java (diff)
The file was modifiedsrc/java/com/jogamp/common/os/DynamicLibraryBundle.java (diff)
The file was removedsrc/java/com/jogamp/gluegen/runtime/NativeLibLoader.java (diff)
The file was modifiedsrc/java/com/jogamp/common/jvm/JVMUtil.java (diff)
The file was modifiedsrc/java/com/jogamp/common/nio/AbstractBuffer.java (diff)
The file was modifiedsrc/java/com/jogamp/common/nio/PointerBuffer.java (diff)
The file was modifiedsrc/java/com/jogamp/common/os/NativeLibrary.java (diff)
The file was modifiedsrc/junit/com/jogamp/gluegen/test/junit/generation/BindingJNILibLoader.java (diff)
The file was addedsrc/java/com/jogamp/gluegen/runtime/GlueGenJNILibLoader.java (diff)
The file was modifiedsrc/java/jogamp/common/os/MachineDescriptionRuntime.java (diff)
Commit 0a45d6ca9b9a8d92b5e4c147be94fad8de344816 by Sven Gothel
JNILibLoaderBase/TempJarCache: Prepare for loadLibrary(..) out of cached JARs

- JNILibLoaderBase: If TempJarCache is active, try find native library in cached JARs
- TempJarCache: Add bootstrabNativeLib(..) allowing bootstraping gluegen-rt from JAR w/o needing it
- JARUtil: minor edits (final)
The file was modifiedsrc/java/com/jogamp/common/jvm/JNILibLoaderBase.java (diff)
The file was modifiedsrc/java/com/jogamp/common/util/JarUtil.java (diff)
The file was modifiedsrc/java/com/jogamp/common/util/cache/TempJarCache.java (diff)
Commit a258a199da9ba1351d946ad0379c54e8481e931b by Sven Gothel
gluegen-rt lib loading: Moved to Platform static init incl. TempJarCache.bootstrapNativeLib(..) usage

- Moving to Platform solves former interdependencies between GlueGenJNILibLoader/Platform

- TempJarCache is being setup w/ bootstraping the gluegen-rt native lib jar file.
  Interesting here is that when using Oracle's JRE w/ Applets/JNLP the
  current dbg output is:
     gluegen-rt: url-root http://risa/deployment/test/jau02s/jar/
     gluegen-rt: nativeJarURL jar:http://risa/deployment/test/jau02s/jar/gluegen-rt-natives-linux-amd64.jar!/
     gluegen-rt: nativeJar /home/sven/.java/deployment/cache/6.0/49/3c6d1e31-2c90f42e
  IE the JRE implementation already deduces the online link to the Applet/JNLP cache.
  This makes the implementation much simpler, ie. same for application and Applets/JNLP.
  Have to verify w/ other Java impl. sure - and add same logic for the JOGL part.
The file was modifiedsrc/java/com/jogamp/common/nio/PointerBuffer.java (diff)
The file was modifiedsrc/java/com/jogamp/common/os/NativeLibrary.java (diff)
The file was modifiedsrc/java/com/jogamp/common/nio/AbstractBuffer.java (diff)
The file was removedsrc/java/com/jogamp/gluegen/runtime/GlueGenJNILibLoader.java (diff)
The file was modifiedsrc/java/com/jogamp/common/jvm/JVMUtil.java (diff)
The file was modifiedsrc/java/com/jogamp/common/os/Platform.java (diff)
The file was modifiedsrc/java/jogamp/common/os/MachineDescriptionRuntime.java (diff)
The file was modifiedmake/scripts/runtest.sh (diff)