summaryrefslogtreecommitdiff
path: root/libs/ardouralsautil/wscript
blob: 9a5d1e5251550fc8c8419a43c030c07069738b21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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')