endif
-SUBDIRS = src interfaces/cpp examples sounds plugins $(PYTHONDIR) $(SWIGDIR) $(JAVADIR) $(DOC) tests
+SUBDIRS = src examples sounds plugins $(PYTHONDIR) $(SWIGDIR) $(JAVADIR) $(DOC) tests
EXTRA_DIST = bootstrap VERSION
docs:
if test "$ac_cv_prog_cc" = "no" ; then
AC_MSG_ERROR([*** No C compiler found !])
fi
-AC_PROG_CXX
AC_PROG_INSTALL
AUBIO_CFLAGS=
examples/Makefile
tests/Makefile
tests/src/Makefile
- tests/cpp/Makefile
sounds/Makefile
swig/Makefile
python/Makefile
python/aubio/Makefile
interfaces/java/Makefile
interfaces/java/aubio/Makefile
- interfaces/cpp/Makefile
plugins/Makefile
plugins/audacity/Makefile
plugins/audacity/plug-ins/Makefile
+++ /dev/null
-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@
+++ /dev/null
-#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 fvec_get_channel(self, channel);
- }
-
- cvec::cvec(uint_t length, uint_t channels) {
- self = new_cvec(length, channels);
- norm = cvec_get_norm(self);
- phas = cvec_get_phas(self);
- }
-
- cvec::~cvec() {
- del_cvec(self);
- }
-
-}
+++ /dev/null
-#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();
-
- };
-
-}
+++ /dev/null
-# 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')
if COMPILE_TESTS
-SUBDIRS = src cpp
+SUBDIRS = src
endif
+++ /dev/null
-AM_CXXFLAGS = -I$(top_srcdir)/cpp -I$(top_srcdir)/src
-AM_LDFLAGS = -L$(top_builddir)/cpp -laubiocpp -L$(top_builddir)/src -laubio @FFTWLIB_LIBS@
-
-bin_PROGRAMS = \
- test-fvec \
- test-cvec
-
-test_fvec_SOURCES = test-fvec.cpp
-test_cvec_SOURCES = test-cvec.cpp
-
-run-tests: $(bin_PROGRAMS)
- @for i in $(bin_PROGRAMS); do echo $$i; ((time ./$$i 2>&1 > /dev/null) 2>&1; echo $$?); done
-
-run-valgrind-tests: $(bin_PROGRAMS)
- @for i in $(bin_PROGRAMS); do echo $$i; valgrind .libs/lt-$$i 2>&1 | grep ERROR\ SUMMARY -A4; echo $$?; done
+++ /dev/null
-#include <iostream>
-#include <aubiocpp.h>
-
-using namespace std;
-using namespace aubio;
-
-int main(){
- /* allocate some memory */
- uint_t win_s = 1024; /* window size */
- uint_t channels = 1; /* number of channel */
- cvec c = cvec(win_s, channels); /* input buffer */
- cout << c.norm[0][0] << endl;
- c.norm[0][0] = 2.;
- cout << c.norm[0][0] << endl;
- cout << c.phas[0][0] << endl;
- c.phas[0][0] = 2.;
- cout << c.phas[0][0] << endl;
- return 0;
-}
-
-
+++ /dev/null
-#include <iostream>
-#include <aubiocpp.h>
-
-using namespace std;
-using namespace aubio;
-
-int main(){
- /* allocate some memory */
- uint_t win_s = 1024; /* window size */
- uint_t channels = 1; /* number of channel */
- fvec f = fvec(win_s, channels); /* input buffer */
- cout << f[0][0] << endl;
- f[0][0] = 2.;
- cout << f[0][0] << endl;
- return 0;
-}
-
bld.env['LIB_VERSION'] = LIB_VERSION
# add sub directories
- bld.add_subdirs('src examples interfaces/cpp')
+ bld.add_subdirs('src examples')
if bld.env['SWIG']:
if bld.env['PYTHON']:
bld.add_subdirs('python/aubio python')