From b87d73aae8ce3c306644a6964545b89f1eab1189 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 24 Nov 2006 01:33:33 +0000 Subject: Removed native code for DRIHack and replaced it with code using the GlueGen runtime library (specifically the NativeLibrary class). Updated the build.xml, in particular the dist targets, to no longer build or copy this native library. Updated the NativeLibrary class to allow specification of the full path to the library. Removed the GlueGen runtime classes from jogl.jar; these are now expected to reside in gluegen-rt.jar and it is expected that developers will have this on their CLASSPATH. Updated the dist target to include the gluegen-rt native library and jar file. Updated the JOGLAppletLauncher to download and unpack the gluegen-rt-natives jar as well as the jogl-natives jar. Updated the HowToBuild, user guide, and JOGLAppletLauncher documentation for this restructuring. Fixed bug in gluegen-cpptasks.xml in detection of Solaris/SPARCv9 and refactored targets further. Tested on Solaris/x86 so far; further testing and debugging of the nightly builds and applet launcher, and update of the JOGL applet test, to follow. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@51 a78bb65f-1512-4460-ba86-f6dc96a7bf27 --- make/gluegen-cpptasks.xml | 6 +++++- src/java/com/sun/gluegen/runtime/NativeLibrary.java | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/make/gluegen-cpptasks.xml b/make/gluegen-cpptasks.xml index 6720784..02f2d64 100755 --- a/make/gluegen-cpptasks.xml +++ b/make/gluegen-cpptasks.xml @@ -273,6 +273,8 @@ + + @@ -301,6 +303,8 @@ + + @@ -317,7 +321,7 @@ - + diff --git a/src/java/com/sun/gluegen/runtime/NativeLibrary.java b/src/java/com/sun/gluegen/runtime/NativeLibrary.java index 7ae9cdf..20419d9 100755 --- a/src/java/com/sun/gluegen/runtime/NativeLibrary.java +++ b/src/java/com/sun/gluegen/runtime/NativeLibrary.java @@ -221,6 +221,14 @@ public class NativeLibrary { String libName = selectName(windowsLibName, unixLibName, macOSXLibName); if (libName == null) return paths; + + // Allow user's full path specification to override our building pf paths + File file = new File(libName); + if (file.isAbsolute()) { + paths.add(libName); + return paths; + } + String[] baseNames = buildNames(libName); if (searchSystemPathFirst) { -- cgit v1.2.3