Waf building of rubberband.
[ardour.git] / wscript
1 #!/usr/bin/env python
2 import autowaf
3
4 # Variables for 'waf dist'
5 VERSION = '3.0pre0'
6 APPNAME = 'ardour'
7
8 # Mandatory variables
9 srcdir = '.'
10 blddir = 'build'
11
12 children = [
13         'libs/pbd',
14         'libs/midi++2',
15         'libs/evoral',
16         'libs/vamp-sdk',
17         'libs/taglib',
18         'libs/rubberband',
19         'libs/surfaces',
20         'libs/ardour',
21         'libs/gtkmm2ext',
22         'gtk2_ardour'
23 ]
24
25 def set_options(opt):
26         autowaf.set_options(opt)
27         for i in children:
28                 opt.sub_options(i)
29
30 def sub_config_and_use(conf, name, has_objects = True):
31         conf.sub_config(name)
32         autowaf.set_local_lib(conf, name, has_objects)
33
34 def configure(conf):
35         autowaf.set_recursive()
36         autowaf.configure(conf)
37         autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2')
38         autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0')
39         for i in children:
40                 sub_config_and_use(conf, i)
41
42 def build(bld):
43         autowaf.set_recursive()
44         for i in children:
45                 bld.add_subdirs(i)
46
47 def shutdown():
48         autowaf.shutdown()
49