summaryrefslogtreecommitdiff
path: root/libs/backends/wscript
blob: 36ef5c1ecd9c3d036c6af406f73e17a1ab65562e (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
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import os
import sys

# Mandatory variables
top = '.'
out = 'build'

backends = [ 'jack', 'dummy' ]

if sys.platform == 'darwin':
    backends += ['wavesaudio' ]

def options(opt):
    autowaf.set_options(opt)

def sub_config_and_use(conf, name, has_objects = True):
    conf.recurse(name)
    autowaf.set_local_lib(conf, name, has_objects)

def configure(conf):
    autowaf.set_recursive()
    autowaf.configure(conf)

    for i in backends:
        sub_config_and_use(conf, i)

def build(bld):
    for i in backends:
        bld.recurse(i)