2011-01-17 17:51:44 +00:00
|
|
|
#!/usr/bin/env python
|
2011-09-29 19:17:54 +00:00
|
|
|
from waflib.extras import autowaf as autowaf
|
2011-01-17 17:51:44 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
# Mandatory variables
|
2011-09-29 19:17:54 +00:00
|
|
|
top = '.'
|
|
|
|
|
out = 'build'
|
2011-01-17 17:51:44 +00:00
|
|
|
|
2011-01-27 01:31:03 +00:00
|
|
|
panners = [ '2in2out', '1in2out', 'vbap' ]
|
2011-01-17 17:51:44 +00:00
|
|
|
|
2011-09-29 19:17:54 +00:00
|
|
|
def options(opt):
|
2011-04-22 22:15:21 +00:00
|
|
|
autowaf.set_options(opt)
|
2011-01-17 17:51:44 +00:00
|
|
|
|
2011-01-27 01:31:03 +00:00
|
|
|
def sub_config_and_use(conf, name, has_objects = True):
|
2011-04-22 22:15:21 +00:00
|
|
|
conf.sub_config(name)
|
|
|
|
|
autowaf.set_local_lib(conf, name, has_objects)
|
2011-01-27 01:31:03 +00:00
|
|
|
|
|
|
|
|
def configure(conf):
|
2011-04-22 22:15:21 +00:00
|
|
|
autowaf.set_recursive()
|
|
|
|
|
autowaf.configure(conf)
|
2011-01-27 01:31:03 +00:00
|
|
|
|
2011-04-22 22:15:21 +00:00
|
|
|
for i in panners:
|
|
|
|
|
sub_config_and_use(conf, i)
|
2011-01-27 01:31:03 +00:00
|
|
|
|
2011-01-17 17:51:44 +00:00
|
|
|
def build(bld):
|
2011-04-22 22:15:21 +00:00
|
|
|
for i in panners:
|
|
|
|
|
bld.add_subdirs(i)
|