# HG changeset patch # User Ioana Ivan # Date 1223065227 14400 # Node ID a9057b218aa05cf2d4327effcbc0a281ac909c0e # Parent a6a5ca46e90e5120dc581fff91bd9ea7e47058bc 2008-10-03 Ioana Ivan * src/java/org/classpath/icedtea/pulseaudio/EventLoop.java: replaced call to System.load with call to System.loadLibrary * src/java/org/classpath/icedtea/pulseaudio/Operation.java: Likewise * src/java/org/classpath/icedtea/pulseaudio/PulseAudioSourcePort.java: Likewise * src/java/org/classpath/icedtea/pulseaudio/PulseAudioTargetPort.java: Likewise * src/java/org/classpath/icedtea/pulseaudio/Stream.java Likewise * Makefile.am: removed * build.xml: removed * src/native/Makefile.am: removed diff -r a6a5ca46e90e -r a9057b218aa0 Makefile.am --- a/Makefile.am Tue Sep 30 14:43:55 2008 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -SUBDIRS = src/native - -clean-local: - ant clean ; \ - rm -f libpulse-java.so ; - diff -r a6a5ca46e90e -r a9057b218aa0 build.xml --- a/build.xml Tue Sep 30 14:43:55 2008 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r a6a5ca46e90e -r a9057b218aa0 src/java/org/classpath/icedtea/pulseaudio/EventLoop.java --- a/src/java/org/classpath/icedtea/pulseaudio/EventLoop.java Tue Sep 30 14:43:55 2008 -0400 +++ b/src/java/org/classpath/icedtea/pulseaudio/EventLoop.java Fri Oct 03 16:20:27 2008 -0400 @@ -106,16 +106,7 @@ */ static { - try { - String library = new java.io.File(".").getCanonicalPath() - + java.io.File.separatorChar - + System.mapLibraryName("pulse-java"); - // System.out.println(EventLoop.class.getCanonicalName() + ": " - // + library); - System.load(library); - } catch (IOException e) { - assert ("Loading failed".endsWith("library")); - } + System.loadLibrary("pulse-java"); } private EventLoop() { diff -r a6a5ca46e90e -r a9057b218aa0 src/java/org/classpath/icedtea/pulseaudio/Operation.java --- a/src/java/org/classpath/icedtea/pulseaudio/Operation.java Tue Sep 30 14:43:55 2008 -0400 +++ b/src/java/org/classpath/icedtea/pulseaudio/Operation.java Fri Oct 03 16:20:27 2008 -0400 @@ -59,16 +59,7 @@ } static { - try { - String library = new java.io.File(".").getCanonicalPath() - + java.io.File.separatorChar - + System.mapLibraryName("pulse-java"); - // System.out.println(Operation.class.getCanonicalName() + ": " - // + library); - System.load(library); - } catch (IOException e) { - assert ("Loading failed".endsWith("library")); - } + System.loadLibrary("pulse-java"); } private native void native_ref(); diff -r a6a5ca46e90e -r a9057b218aa0 src/java/org/classpath/icedtea/pulseaudio/PulseAudioSourcePort.java --- a/src/java/org/classpath/icedtea/pulseaudio/PulseAudioSourcePort.java Tue Sep 30 14:43:55 2008 -0400 +++ b/src/java/org/classpath/icedtea/pulseaudio/PulseAudioSourcePort.java Fri Oct 03 16:20:27 2008 -0400 @@ -44,16 +44,7 @@ public class PulseAudioSourcePort extends PulseAudioPort { static { - try { - String library = new java.io.File(".").getCanonicalPath() - + java.io.File.separatorChar - + System.mapLibraryName("pulse-java"); - // System.out.println(PulseAudioVolumeControl.class.getCanonicalName() - // + ": " + library); - System.load(library); - } catch (IOException e) { - assert ("Loading failed".endsWith("library")); - } + System.loadLibrary("pulse-java"); } public PulseAudioSourcePort(String name, EventLoop eventLoop) { diff -r a6a5ca46e90e -r a9057b218aa0 src/java/org/classpath/icedtea/pulseaudio/PulseAudioTargetPort.java --- a/src/java/org/classpath/icedtea/pulseaudio/PulseAudioTargetPort.java Tue Sep 30 14:43:55 2008 -0400 +++ b/src/java/org/classpath/icedtea/pulseaudio/PulseAudioTargetPort.java Fri Oct 03 16:20:27 2008 -0400 @@ -44,16 +44,7 @@ public class PulseAudioTargetPort extends PulseAudioPort { static { - try { - String library = new java.io.File(".").getCanonicalPath() - + java.io.File.separatorChar - + System.mapLibraryName("pulse-java"); - // System.out.println(PulseAudioVolumeControl.class.getCanonicalName() - // + ": " + library); - System.load(library); - } catch (IOException e) { - assert ("Loading failed".endsWith("library")); - } + System.loadLibrary("pulse-java"); } public PulseAudioTargetPort(String name, EventLoop eventLoop) { diff -r a6a5ca46e90e -r a9057b218aa0 src/java/org/classpath/icedtea/pulseaudio/Stream.java --- a/src/java/org/classpath/icedtea/pulseaudio/Stream.java Tue Sep 30 14:43:55 2008 -0400 +++ b/src/java/org/classpath/icedtea/pulseaudio/Stream.java Fri Oct 03 16:20:27 2008 -0400 @@ -105,16 +105,7 @@ private byte[] streamPointer; static { - try { - String library = new java.io.File(".").getCanonicalPath() - + java.io.File.separatorChar - + System.mapLibraryName("pulse-java"); - // System.out - // .println(Stream.class.getCanonicalName() + ": " + library); - System.load(library); - } catch (IOException e) { - assert ("Loading failed".endsWith("library")); - } + System.loadLibrary("pulse-java"); } private Format format; diff -r a6a5ca46e90e -r a9057b218aa0 src/native/Makefile.am --- a/src/native/Makefile.am Tue Sep 30 14:43:55 2008 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -lib_LTLIBRARIES = libpulse-java.la - -libpulse_java_la_SOURCES = \ - jni-common.c \ - jni-common.h \ - org_classpath_icedtea_pulseaudio_EventLoop.c \ - org_classpath_icedtea_pulseaudio_EventLoop.h \ - org_classpath_icedtea_pulseaudio_Operation.h \ - org_classpath_icedtea_pulseaudio_Operation.c \ - org_classpath_icedtea_pulseaudio_Stream.c \ - org_classpath_icedtea_pulseaudio_Stream.h \ - org_classpath_icedtea_pulseaudio_PulseAudioSourcePort.h \ - org_classpath_icedtea_pulseaudio_PulseAudioSourcePort.c \ - org_classpath_icedtea_pulseaudio_PulseAudioTargetPort.c \ - org_classpath_icedtea_pulseaudio_PulseAudioTargetPort.h - - - - -AM_CFLAGS = -g -Wall -Werror $(PLATFORM_FLAGS) $(LIBPULSE_CFLAGS) -AM_LDFLAGS = -g -Wall -Werror $(LIBPULSE_LIBS) - -PLATFORM_FLAGS = -DWITH_32BIT_PLATFORM - -topdir = ../.. - -all-local: $(lib_LTLIBRARIES) - cp .libs/libpulse-java.so $(topdir) -