moved cpp to interfaces/
authorPaul Brossier <piem@piem.org>
Wed, 30 Sep 2009 01:54:34 +0000 (03:54 +0200)
committerPaul Brossier <piem@piem.org>
Wed, 30 Sep 2009 01:54:34 +0000 (03:54 +0200)
configure.ac
cpp/Makefile.am [deleted file]
cpp/aubiocpp.cpp [deleted file]
cpp/aubiocpp.h [deleted file]
cpp/wscript_build [deleted file]
interfaces/cpp/Makefile.am [new file with mode: 0644]
interfaces/cpp/aubiocpp.cpp [new file with mode: 0644]
interfaces/cpp/aubiocpp.h [new file with mode: 0644]
interfaces/cpp/wscript_build [new file with mode: 0644]
wscript

index 77cda70..c4052b6 100644 (file)
@@ -241,7 +241,6 @@ AC_OUTPUT([
     Makefile
     src/Makefile
     ext/Makefile
-    cpp/Makefile
     examples/Makefile
     tests/Makefile
     tests/src/Makefile
@@ -252,6 +251,7 @@ AC_OUTPUT([
     python/aubio/Makefile
     interfaces/java/Makefile
     interfaces/java/aubio/Makefile
+    interfaces/cpp/Makefile
     plugins/Makefile
     plugins/audacity/Makefile
     plugins/audacity/plug-ins/Makefile
diff --git a/cpp/Makefile.am b/cpp/Makefile.am
deleted file mode 100644 (file)
index 1cf7e75..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-pkginclude_HEADERS = aubiocpp.h
-
-lib_LTLIBRARIES = libaubiocpp.la 
-libaubiocpp_la_SOURCES = aubiocpp.cpp
-AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src @AUBIO_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@
-libaubiocpp_la_LIBADD  = -laubio -L${top_builddir}/src @FFTWLIB_LIBS@ @SAMPLERATE_LIBS@ @LTLIBOBJS@
-libaubiocpp_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@
diff --git a/cpp/aubiocpp.cpp b/cpp/aubiocpp.cpp
deleted file mode 100644 (file)
index 8f70611..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#include "aubio.h"
-#include "aubiocpp.h"
-
-namespace aubio {
-
-  fvec::fvec(uint_t length, uint_t channels) {
-    self = new_fvec(length, channels);
-  }
-
-  fvec::~fvec() {
-    del_fvec(self);
-  }
-
-  smpl_t* fvec::operator[]( uint_t channel ) {
-    return self->data[channel];
-  }
-
-  cvec::cvec(uint_t length, uint_t channels) {
-    self = new_cvec(length, channels);
-    norm = self->norm;
-    phas = self->phas;
-  }
-
-  cvec::~cvec() {
-    del_cvec(self);
-  }
-
-}
diff --git a/cpp/aubiocpp.h b/cpp/aubiocpp.h
deleted file mode 100644 (file)
index d2c0848..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#include "aubio.h"
-
-namespace aubio {
-
-  class fvec {
-
-    private:
-      fvec_t * self;
-
-    public:
-      fvec(uint_t length, uint_t channels);
-      ~fvec();
-      smpl_t* operator[]( uint_t channel );
-
-  };
-
-  class cvec {
-
-    private:
-      cvec_t * self;
-
-    public:
-      smpl_t ** norm;
-      smpl_t ** phas;
-
-      cvec(uint_t length, uint_t channels);
-      ~cvec();
-
-  };
-
-}
diff --git a/cpp/wscript_build b/cpp/wscript_build
deleted file mode 100644 (file)
index 6d7a466..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-# build libaubiocpp
-libaubiocpp = bld.new_task_gen(
-    features = 'cxx cshlib',
-    includes = ['.', '../src'],
-    source = bld.path.ant_glob('*.cpp'),
-    target = 'aubiocpp',
-    uselib_local = ['aubio'],
-    vnum = bld.env['LIB_VERSION'])
-
-# install header
-bld.install_files('${PREFIX}/include/aubio/', 'aubiocpp.h')
diff --git a/interfaces/cpp/Makefile.am b/interfaces/cpp/Makefile.am
new file mode 100644 (file)
index 0000000..1cf7e75
--- /dev/null
@@ -0,0 +1,7 @@
+pkginclude_HEADERS = aubiocpp.h
+
+lib_LTLIBRARIES = libaubiocpp.la 
+libaubiocpp_la_SOURCES = aubiocpp.cpp
+AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src @AUBIO_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@
+libaubiocpp_la_LIBADD  = -laubio -L${top_builddir}/src @FFTWLIB_LIBS@ @SAMPLERATE_LIBS@ @LTLIBOBJS@
+libaubiocpp_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@
diff --git a/interfaces/cpp/aubiocpp.cpp b/interfaces/cpp/aubiocpp.cpp
new file mode 100644 (file)
index 0000000..8f70611
--- /dev/null
@@ -0,0 +1,28 @@
+#include "aubio.h"
+#include "aubiocpp.h"
+
+namespace aubio {
+
+  fvec::fvec(uint_t length, uint_t channels) {
+    self = new_fvec(length, channels);
+  }
+
+  fvec::~fvec() {
+    del_fvec(self);
+  }
+
+  smpl_t* fvec::operator[]( uint_t channel ) {
+    return self->data[channel];
+  }
+
+  cvec::cvec(uint_t length, uint_t channels) {
+    self = new_cvec(length, channels);
+    norm = self->norm;
+    phas = self->phas;
+  }
+
+  cvec::~cvec() {
+    del_cvec(self);
+  }
+
+}
diff --git a/interfaces/cpp/aubiocpp.h b/interfaces/cpp/aubiocpp.h
new file mode 100644 (file)
index 0000000..d2c0848
--- /dev/null
@@ -0,0 +1,31 @@
+#include "aubio.h"
+
+namespace aubio {
+
+  class fvec {
+
+    private:
+      fvec_t * self;
+
+    public:
+      fvec(uint_t length, uint_t channels);
+      ~fvec();
+      smpl_t* operator[]( uint_t channel );
+
+  };
+
+  class cvec {
+
+    private:
+      cvec_t * self;
+
+    public:
+      smpl_t ** norm;
+      smpl_t ** phas;
+
+      cvec(uint_t length, uint_t channels);
+      ~cvec();
+
+  };
+
+}
diff --git a/interfaces/cpp/wscript_build b/interfaces/cpp/wscript_build
new file mode 100644 (file)
index 0000000..48fcc6f
--- /dev/null
@@ -0,0 +1,11 @@
+# build libaubiocpp
+libaubiocpp = bld.new_task_gen(
+    features = 'cxx cshlib',
+    includes = ['.', '../../src'],
+    source = bld.path.ant_glob('*.cpp'),
+    target = 'aubiocpp',
+    uselib_local = ['aubio'],
+    vnum = bld.env['LIB_VERSION'])
+
+# install header
+bld.install_files('${PREFIX}/include/aubio/', 'aubiocpp.h')
diff --git a/wscript b/wscript
index 9c680be..d8fe5a4 100644 (file)
--- a/wscript
+++ b/wscript
@@ -135,7 +135,7 @@ def build(bld):
   bld.env['LIB_VERSION'] = LIB_VERSION 
 
   # add sub directories
-  bld.add_subdirs('src ext examples cpp')
+  bld.add_subdirs('src ext examples interfaces/cpp')
   if bld.env['SWIG']:
     if bld.env['PYTHON']:
       bld.add_subdirs('python/aubio python')