allow linking unbundled version of qm-dsp

In the course, rename the bundled, built version libqm-dsp so it matches
packaged versions.
This commit is contained in:
Nils Philippsen 2016-08-14 23:49:53 +02:00 committed by Robin Gareus
parent ca90e56532
commit 0aaded5318
3 changed files with 19 additions and 6 deletions

View file

@ -23,10 +23,17 @@ def options(opt):
autowaf.set_options(opt)
def configure(conf):
conf.load('compiler_cxx')
autowaf.configure(conf)
if conf.is_defined('USE_EXTERNAL_LIBS'):
conf.check_cxx(header_name="base/Pitch.h", mandatory=True)
conf.check_cxx(lib="qm-dsp", uselib_store="QMDSP", mandatory=True)
else:
conf.load('compiler_cxx')
autowaf.configure(conf)
def build(bld):
if bld.is_defined('USE_EXTERNAL_LIBS'):
return
# Host Library
obj = bld(features = 'cxx cxxshlib')
obj.source = '''
@ -50,8 +57,8 @@ def build(bld):
autowaf.ensure_visible_symbols (obj, True)
obj.export_includes = ['.']
obj.includes = ['.']
obj.name = 'libqmdsp'
obj.target = 'qmdsp'
obj.name = 'libqm-dsp'
obj.target = 'qm-dsp'
obj.vnum = QM_DSP_VERSION
obj.install_path = bld.env['LIBDIR']