java-gobject-introspection r120 - trunk/src/org/gnome/gir/compiler
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: java-gobject-introspection r120 - trunk/src/org/gnome/gir/compiler
- Date: Sun, 16 Nov 2008 00:24:26 +0000 (UTC)
Author: walters
Date: Sun Nov 16 00:24:26 2008
New Revision: 120
URL: http://svn.gnome.org/viewvc/java-gobject-introspection?rev=120&view=rev
Log:
Don't strip off .so, instead patch JNA do the right thing
Modified:
trunk/src/org/gnome/gir/compiler/CodeFactory.java
Modified: trunk/src/org/gnome/gir/compiler/CodeFactory.java
==============================================================================
--- trunk/src/org/gnome/gir/compiler/CodeFactory.java (original)
+++ trunk/src/org/gnome/gir/compiler/CodeFactory.java Sun Nov 16 00:24:26 2008
@@ -1803,9 +1803,6 @@
}
if (shlib == null)
shlib = namespaceShlibMapping.get(globals.namespace);
- /* The JNA NativeLibrary expects it without the .so */
- if (shlib.endsWith(".so"))
- shlib = shlib.substring(0, shlib.length()-3);
mv.visitLdcInsn(shlib);
mv.visitMethodInsn(INVOKESTATIC, "com/sun/jna/NativeLibrary", "getInstance", "(Ljava/lang/String;)Lcom/sun/jna/NativeLibrary;");
mv.visitFieldInsn(PUTSTATIC, internals.internalName, "library", "Lcom/sun/jna/NativeLibrary;");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]