2009-02-25 13:59:45 -05:00
|
|
|
#!/usr/bin/env python
|
|
|
|
import autowaf
|
|
|
|
|
|
|
|
# Variables for 'waf dist'
|
|
|
|
VERSION = '3.0pre0'
|
|
|
|
APPNAME = 'ardour'
|
|
|
|
|
|
|
|
# Mandatory variables
|
|
|
|
srcdir = '.'
|
|
|
|
blddir = 'build'
|
|
|
|
|
2009-02-25 14:36:16 -05:00
|
|
|
children = [
|
|
|
|
'libs/pbd',
|
|
|
|
'libs/midi++2',
|
|
|
|
'libs/evoral',
|
|
|
|
'libs/vamp-sdk',
|
|
|
|
'libs/taglib',
|
2009-02-25 16:48:32 -05:00
|
|
|
'libs/surfaces',
|
2009-02-25 18:21:49 -05:00
|
|
|
'libs/ardour',
|
|
|
|
'libs/gtkmm2ext',
|
|
|
|
'gtk2_ardour'
|
2009-02-25 14:36:16 -05:00
|
|
|
]
|
2009-02-25 13:59:45 -05:00
|
|
|
|
|
|
|
def set_options(opt):
|
|
|
|
autowaf.set_options(opt)
|
|
|
|
for i in children:
|
|
|
|
opt.sub_options(i)
|
|
|
|
|
|
|
|
def sub_config_and_use(conf, name, has_objects = True):
|
|
|
|
conf.sub_config(name)
|
|
|
|
autowaf.set_local_lib(conf, name, has_objects)
|
|
|
|
|
|
|
|
def configure(conf):
|
|
|
|
autowaf.set_recursive()
|
|
|
|
autowaf.configure(conf)
|
2009-02-25 19:05:51 -05:00
|
|
|
autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2')
|
|
|
|
autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0')
|
2009-02-25 13:59:45 -05:00
|
|
|
for i in children:
|
|
|
|
sub_config_and_use(conf, i)
|
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
autowaf.set_recursive()
|
|
|
|
for i in children:
|
|
|
|
bld.add_subdirs(i)
|
|
|
|
|
|
|
|
def shutdown():
|
|
|
|
autowaf.shutdown()
|
|
|
|
|