diff options
author | Robin Gareus <robin@gareus.org> | 2014-06-04 19:16:37 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-06-04 19:16:37 +0200 |
commit | a907d3455ef4122f35f509cf0638a45aca8d3b7b (patch) | |
tree | af66b94f55e7b7419802d722ea7bc81fb885b855 /libs/ardouralsautil/wscript | |
parent | 40cfe86569daeacf44855befc335a5a5bce61b5f (diff) |
break out ALSA related functions into libardouralsautil
Diffstat (limited to 'libs/ardouralsautil/wscript')
-rw-r--r-- | libs/ardouralsautil/wscript | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/libs/ardouralsautil/wscript b/libs/ardouralsautil/wscript new file mode 100644 index 0000000000..9a5d1e5251 --- /dev/null +++ b/libs/ardouralsautil/wscript @@ -0,0 +1,37 @@ +#!/usr/bin/env python +from waflib.extras import autowaf as autowaf +from waflib import Options +import os +import sys +import re + +# Mandatory variables +top = '.' +out = 'build' + +path_prefix = 'libs/ardouralsautil/' + +def options(opt): + autowaf.set_options(opt) + + +def configure(conf): + autowaf.configure(conf) + if re.search ("linux", sys.platform) != None and Options.options.dist_target != 'mingw': + autowaf.check_pkg(conf, 'alsa', uselib_store='ALSA') + +def build(bld): + if re.search ("linux", sys.platform) != None: + if bld.is_defined('HAVE_ALSA'): + obj = bld(features = 'cxx cxxshlib') + obj.source = [ + 'devicelist.cc' + ] + obj.export_includes = ['.'] + obj.includes = ['.'] + obj.name = 'ardouralsautil' + obj.target = 'ardouralsautil' + obj.use = 'libpbd' + obj.uselib = [ 'ALSA' ] + obj.vnum = '0.0.1' + obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardouralsautil') |