interfaces/java: moved to java-aubio branch
authorPaul Brossier <piem@piem.org>
Thu, 5 Nov 2009 16:31:31 +0000 (17:31 +0100)
committerPaul Brossier <piem@piem.org>
Thu, 5 Nov 2009 16:31:31 +0000 (17:31 +0100)
Makefile.am
configure.ac
interfaces/java/aubio/Makefile.am [deleted file]
interfaces/java/aubio/main.java [deleted file]

index dab21808627124d42b7b37ee2f5cca4a249e9775..8357c9fe2aca2dd6406de667f126cf0ff83d5d37 100644 (file)
@@ -7,13 +7,10 @@ SWIGDIR = swig
 if PYTHONFOUND
 PYTHONDIR = python
 endif
-if JAVAFOUND
-JAVADIR = interfaces/java
-endif
 endif
 
 
-SUBDIRS = src examples sounds $(PYTHONDIR) $(SWIGDIR) $(JAVADIR) $(DOC) tests
+SUBDIRS = src examples sounds $(PYTHONDIR) $(SWIGDIR) $(DOC) tests
 EXTRA_DIST = bootstrap VERSION
 
 docs:
index 71a1a6ac1c875ad5220b4e3e4ea8f77eb145d3e6..1f2cd43432873f18adb6ad4a913774b463500a1d 100644 (file)
@@ -244,10 +244,6 @@ dnl Check for docbook-to-man
 AC_PATH_PROG(DOCBOOK_TO_MAN,docbook-to-man,no)
 AM_CONDITIONAL(DOCBOOKFOUND, test "${DOCBOOK_TO_MAN}" != "no")
 
-dnl Check for Java
-AC_CHECK_HEADER(jni.h,JAVAHEADERS=y,AC_MSG_WARN([Java header jni.h not found.]))
-AM_CONDITIONAL(JAVAFOUND, test "${JAVAHEADERS}" = "y")
-
 dnl Create Makefiles
 AC_OUTPUT([
     Makefile
@@ -259,8 +255,6 @@ AC_OUTPUT([
     swig/Makefile
     python/Makefile
     python/aubio/Makefile
-    interfaces/java/Makefile
-    interfaces/java/aubio/Makefile
     doc/Makefile
   ])
 
diff --git a/interfaces/java/aubio/Makefile.am b/interfaces/java/aubio/Makefile.am
deleted file mode 100644 (file)
index ead43cc..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-NOWARN_CFLAGS = -Wno-strict-aliasing
-
-AM_CFLAGS = @AUBIO_CFLAGS@ $(NOWARN_CFLAGS) $(SWCFLAGS) \
-       -I$(top_builddir)/src -I$(top_srcdir)/src \
-       -I/usr/lib/jvm/java-6-sun-1.6.0.04/include \
-       -I${prefix}/lib/jvm/java-6-sun-1.6.0.04/include \
-       -I/usr/lib/jvm/java-6-sun-1.6.0.04/include/linux \
-       -I${prefix}/lib/jvm/java-6-sun-1.6.0.04/include/linux \
-       -I/usr/include \
-       -I${prefix}/include
-
-SWLDFLAGS = -shared
-
-AUBIO_LDFLAGS = $(SWLDFLAGS) \
-       -L$(top_builddir)/src -laubio
-
-pkgjavadir = ${libdir}/java/aubio
-
-pkgjava_LTLIBRARIES = libaubiowrapper.la
-
-libaubiowrapper_la_LDFLAGS = -module -avoid-version $(AUBIO_LDFLAGS) 
-libaubiowrapper_la_SOURCES = aubio_wrap.c
-
-aubio_wrap.c:
-       $(SWIG) -outdir . -o aubio_wrap.c -java $(top_srcdir)/swig/aubio.i
-
-CLEANFILES = aubio_* SWIGTYPE_* *aubiowrapper* midi_* 
-
-simple_test:
-       javac *.java
-       LD_LIBRARY_PATH=.libs java main 
diff --git a/interfaces/java/aubio/main.java b/interfaces/java/aubio/main.java
deleted file mode 100644 (file)
index f315387..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// main.java
-
-public class main {
-  static {
-    System.loadLibrary("aubiowrapper");
-  }
-
-  public static void main(String argv[]) {
-    float freq = (float)440.;
-    float midi = aubiowrapper.aubio_freqtomidi( (float)440.);
-    if (midi != (float) 69.0) {
-      throw new Error((String) "Error: aubio_freqtomidi(440.) != 69.", null);
-    }
-    System.out.print(freq);
-    System.out.print(" Hz corresponds to midi note ");
-    System.out.println(midi);
-  }
-}
-