summaryrefslogtreecommitdiff
path: root/libs/panners/wscript
blob: 927b7ad0f965196d311bb9aabd4b8b1b410ea74e (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
38
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
from waflib import Options
import os

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


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)

    if conf.env['PROGRAM_NAME'] == 'TracksLive':
        panners = [ '1in2out', 'vbap', 'stereobalance' ]
    else:
        panners = [ '2in2out', '1in2out', 'vbap', 'stereobalance' ]

    for i in panners:
        sub_config_and_use(conf, i)

def build(bld):
    if bld.env['PROGRAM_NAME'] == 'TracksLive':
        panners = [ '1in2out', 'vbap', 'stereobalance' ]
    else:
        panners = [ '2in2out', '1in2out', 'vbap', 'stereobalance' ]

    for i in panners:
        bld.recurse(i)