additional changes to follow library name change from timecode -> temporal
[ardour.git] / tools / bb / wscript
1 import waflib.Logs as Logs, waflib.Utils as Utils
2 import os
3
4 # Mandatory variables
5 top = '.'
6 out = 'build'
7
8 def options(ctx):
9         pass
10
11 def configure(ctx):
12         pass
13
14 def build(bld):
15         obj = bld (features = 'cxx c cxxprogram')
16         obj.install_path = None
17         obj.source    = [ 'bb.cc', 'gui.cc', 'misc.cc' ]
18         obj.target    = 'bb'
19         obj.includes  = ['.', '../libs']
20         obj.ldflags   = ['-no-undefined']
21         obj.use       = [ 'libardour', 'libevoral', ]
22         obj.uselib    = ' JACK GTKMM '
23
24         wrapper_subst_dict = {
25             'INSTALL_PREFIX' : bld.env['PREFIX'],
26             'LIBDIR'         : os.path.normpath(bld.env['DLLDIR']),
27             'DATADIR'        : os.path.normpath(bld.env['DATADIR']),
28             'CONFDIR'        : os.path.normpath(bld.env['CONFDIR']),
29             'LIBS'           : 'build/libs',
30             'VERSION'        : str (bld.env['VERSION']),
31             'EXECUTABLE'     : 'build/tools/bb/bb'
32         }
33
34         def set_subst_dict(obj, dict):
35                 for i in dict:
36                         setattr(obj, i, dict[i])
37
38         obj              = bld (features = 'subst')
39         obj.source       = '../../gtk2_ardour/ardev_common.sh.in'
40         obj.target       = 'bbdev_common_waf.sh'
41         obj.chmod        = Utils.O755
42         obj.dict         = wrapper_subst_dict
43         set_subst_dict(obj, wrapper_subst_dict)