2022-01-24 18:41:24 -05:00
|
|
|
#!/usr/bin/env python
|
2022-04-09 09:17:54 -04:00
|
|
|
import waflib.Utils as Utils
|
2017-08-05 02:03:43 -04:00
|
|
|
import os
|
|
|
|
|
|
|
|
def options(ctx):
|
2022-01-24 18:38:32 -05:00
|
|
|
pass
|
2017-08-05 02:03:43 -04:00
|
|
|
|
|
|
|
def configure(ctx):
|
2022-01-24 18:38:32 -05:00
|
|
|
pass
|
2017-08-05 02:03:43 -04:00
|
|
|
|
|
|
|
def build(bld):
|
2022-01-24 18:38:32 -05:00
|
|
|
obj = bld (features = 'cxx c cxxprogram')
|
|
|
|
obj.install_path = None
|
|
|
|
obj.source = [ 'bb.cc', 'gui.cc', 'misc.cc' ]
|
|
|
|
obj.target = 'bb'
|
|
|
|
obj.includes = ['.', '../libs']
|
|
|
|
obj.use = [ 'libardour', 'libevoral', ]
|
|
|
|
obj.uselib = 'JACK GTKMM XML'
|
2017-08-05 02:03:43 -04:00
|
|
|
|
2022-01-24 18:38:32 -05:00
|
|
|
wrapper_subst_dict = {
|
|
|
|
'INSTALL_PREFIX' : bld.env['PREFIX'],
|
|
|
|
'LIBDIR' : os.path.normpath(bld.env['DLLDIR']),
|
|
|
|
'DATADIR' : os.path.normpath(bld.env['DATADIR']),
|
|
|
|
'CONFDIR' : os.path.normpath(bld.env['CONFDIR']),
|
|
|
|
'LIBS' : 'build/libs',
|
|
|
|
'VERSION' : str (bld.env['VERSION']),
|
|
|
|
'EXECUTABLE' : 'build/tools/bb/bb'
|
|
|
|
}
|
2017-08-05 02:03:43 -04:00
|
|
|
|
2022-01-24 18:38:32 -05:00
|
|
|
def set_subst_dict(obj, dict):
|
|
|
|
for i in dict:
|
|
|
|
setattr(obj, i, dict[i])
|
2017-08-05 02:03:43 -04:00
|
|
|
|
2022-01-24 18:38:32 -05:00
|
|
|
obj = bld (features = 'subst')
|
|
|
|
obj.source = '../../gtk2_ardour/ardev_common.sh.in'
|
|
|
|
obj.target = 'bbdev_common_waf.sh'
|
|
|
|
obj.chmod = Utils.O755
|
|
|
|
obj.dict = wrapper_subst_dict
|
|
|
|
set_subst_dict(obj, wrapper_subst_dict)
|