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
|
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-01-26 20:31:03 -05:00
|
|
|
panners = [ '2in2out', '1in2out', 'vbap' ]
|
2011-01-17 12:51:44 -05:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
def options(opt):
|
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-04-22 18:15:21 -04:00
|
|
|
conf.sub_config(name)
|
|
|
|
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
|
|
|
|
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):
|
2011-04-22 18:15:21 -04:00
|
|
|
for i in panners:
|
|
|
|
bld.add_subdirs(i)
|