History

ext/, examples/, swig/, python/, tests/: remove libaubioext, make libsamplerate optional

Paul Brossier committed 17 years ago

Commit 740f06b1 parent 6107f4c19 files · +96 −134Browse files

Showing the changes to python (2 of 19 files). Show all

Unified · Split

2 files
  1. python/aubio/Makefile.am +6 −4
  2. python/aubio/wscript_build +10 −2
python/aubio/Makefile.am+6−4
@@ -44,21 +44,23 @@ CLEANFILES = *.pyc *.so *.o aubio_wrap.c aubiowrapper.py · 43 unmodified lines
4444 NOWARN_CFLAGS = -Wno-missing-prototypes -Wno-missing-declarations \
4545 -Wno-strict-aliasing
4646
47−AM_CFLAGS = @AUBIO_CFLAGS@ $(NOWARN_CFLAGS) $(SWCFLAGS) \
48− -I$(top_builddir)/src -I$(top_srcdir)/src -I$(top_srcdir)/ext \
47+AM_CFLAGS = @AUBIO_CFLAGS@ @SNDFILE_CFLAGS@ \
48+ $(NOWARN_CFLAGS) $(SWCFLAGS) \
49+ -I$(top_builddir)/src -I$(top_srcdir)/src \
50+ -I$(top_srcdir)/examples \
4951 -I/usr/include/python${PYTHON_VERSION} \
5052 -I${prefix}/include/python${PYTHON_VERSION} \
5153 -I/usr/include \
5254 -I${prefix}/include
5355
5456 AUBIO_LDFLAGS = $(SWLDFLAGS) \
55− -L$(top_builddir)/ext -laubioext \
57+ @SNDFILE_LIBS@ \
5658 -L$(top_builddir)/src -laubio
5759
5860 pkgpyexec_LTLIBRARIES = _aubiowrapper.la
5961
6062 _aubiowrapper_la_LDFLAGS = -module -avoid-version $(AUBIO_LDFLAGS)
61−_aubiowrapper_la_SOURCES = aubio_wrap.c
63+_aubiowrapper_la_SOURCES = aubio_wrap.c $(top_srcdir)/examples/sndfileio.c
6264
6365 aubio_wrap.c aubiowrapper.py:
6466 $(SWIG) -outdir . -o aubio_wrap.c -python $(top_srcdir)/swig/aubio.i
python/aubio/wscript_build+10−2
@@ -1,10 +1,18 @@
1+bld.new_task_gen(features = 'cc',
2+ includes = '../../examples ../../src',
3+ source = ['../../examples/sndfileio.c'],
4+ uselib = ['JACK'],
5+ target = 'sndfileio')
6+
17 pyaubio = bld.new_task_gen(name = 'python-aubio',
28 features = 'cc cshlib pyext',
39 source = '../../swig/aubio.i',
10+ add_objects = 'sndfileio',
411 target = '_aubiowrapper',
5− uselib_local = ['aubio', 'aubioext'],
12+ uselib_local = ['aubio'],
13+ uselib = ['SNDFILE'],
614 swig_flags = '-python -Wall',
7− includes = '. ../../src ../../ext')
15+ includes = '. ../../src ../../examples')
816 pyaubio.install_path = '${PYTHONDIR}/${PACKAGE}'
917
1018 # install python files

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t