2011-01-17 12:51:44 -05:00
|
|
|
#!/usr/bin/env python
|
2011-09-29 15:17:54 -04:00
|
|
|
from waflib.extras import autowaf as autowaf
|
2015-05-05 22:01:33 -04:00
|
|
|
from waflib import Options
|
2011-01-17 12:51:44 -05:00
|
|
|
import os
|
|
|
|
|
|
|
|
# Mandatory variables
|
2011-09-29 15:17:54 -04:00
|
|
|
top = '.'
|
|
|
|
out = 'build'
|
2011-01-17 12:51:44 -05:00
|
|
|
|
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
def options(opt):
|
2015-05-05 22:01:33 -04:00
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
autowaf.set_options(opt)
|
2011-01-17 12:51:44 -05:00
|
|
|
|
2011-01-26 20:31:03 -05:00
|
|
|
def sub_config_and_use(conf, name, has_objects = True):
|
2011-09-29 15:58:05 -04:00
|
|
|
conf.recurse(name)
|
2011-04-22 18:15:21 -04:00
|
|
|
autowaf.set_local_lib(conf, name, has_objects)
|
2011-01-26 20:31:03 -05:00
|
|
|
|
|
|
|
def configure(conf):
|
2011-04-22 18:15:21 -04:00
|
|
|
autowaf.set_recursive()
|
|
|
|
autowaf.configure(conf)
|
2011-01-26 20:31:03 -05:00
|
|
|
|
2015-05-06 13:43:02 -04:00
|
|
|
if conf.is_tracks_build():
|
2015-05-06 07:30:39 -04:00
|
|
|
panners = [ '1in2out', 'vbap', 'stereobalance' ]
|
|
|
|
else:
|
|
|
|
panners = [ '2in2out', '1in2out', 'vbap', 'stereobalance' ]
|
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
for i in panners:
|
|
|
|
sub_config_and_use(conf, i)
|
2011-01-26 20:31:03 -05:00
|
|
|
|
2011-01-17 12:51:44 -05:00
|
|
|
def build(bld):
|
2015-05-06 13:15:09 -04:00
|
|
|
if bld.is_tracks_build():
|
2015-05-05 22:01:33 -04:00
|
|
|
panners = [ '1in2out', 'vbap', 'stereobalance' ]
|
|
|
|
else:
|
|
|
|
panners = [ '2in2out', '1in2out', 'vbap', 'stereobalance' ]
|
2015-05-06 07:30:39 -04:00
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
for i in panners:
|
2011-09-29 15:58:05 -04:00
|
|
|
bld.recurse(i)
|