Build VAmp plugins.
[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/vamp-plugins',
18         'libs/taglib',
19         'libs/rubberband',
20         'libs/surfaces',
21         'libs/ardour',
22         'libs/gtkmm2ext',
23         'gtk2_ardour'
24 ]
25
26 def set_options(opt):
27         autowaf.set_options(opt)
28         for i in children:
29                 opt.sub_options(i)
30
31 def sub_config_and_use(conf, name, has_objects = True):
32         conf.sub_config(name)
33         autowaf.set_local_lib(conf, name, has_objects)
34
35 def configure(conf):
36         autowaf.set_recursive()
37         autowaf.configure(conf)
38         autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2')
39         autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0')
40         for i in children:
41                 sub_config_and_use(conf, i)
42
43 def build(bld):
44         autowaf.set_recursive()
45         for i in children:
46                 bld.add_subdirs(i)
47
48 def shutdown():
49         autowaf.shutdown()
50