#!/usr/bin/env python
-import autowaf
+from waflib.extras import autowaf as autowaf
import os
# Version of this package (even if built as a child)
VERSION = QM_DSP_VERSION
# Mandatory variables
-srcdir = '.'
-blddir = 'build'
+top = '.'
+out = 'build'
-def set_options(opt):
+def options(opt):
autowaf.set_options(opt)
def configure(conf):
+ conf.load('compiler_cxx')
autowaf.configure(conf)
- conf.check_tool('compiler_cxx')
def build(bld):
# Host Library
- obj = bld.new_task_gen('cxx', 'shlib')
+ obj = bld(features = 'cxx cxxshlib')
obj.source = '''
dsp/onsets/DetectionFunction.cpp
dsp/onsets/PeakPicking.cpp
maths/MathUtilities.cpp
base/Pitch.cpp
'''
- obj.export_incdirs = ['.']
+ autowaf.ensure_visible_symbols (obj, True)
+ obj.export_includes = ['.']
obj.includes = ['.']
obj.name = 'libqmdsp'
obj.target = 'qmdsp'
obj.vnum = QM_DSP_VERSION
- obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
+ obj.install_path = bld.env['LIBDIR']
def shutdown():
autowaf.shutdown()