13
0
livetrax/tools/bb/wscript
Mads Kiilerich 4fb3a23adb wscript: use consistent python shebang path
Most wscripts use
  #!/usr/bin/env python
Use that consistently.

The wscripts are not executed directly and do not need the shebang path,
but it might guide editors and other tools to recognize the files as
being Python-ish.
2022-04-09 11:44:28 +02:00

44 lines
1.4 KiB
Python

#!/usr/bin/env python
import waflib.Logs as Logs, waflib.Utils as Utils
import os
# Mandatory variables
top = '.'
out = 'build'
def options(ctx):
pass
def configure(ctx):
pass
def build(bld):
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'
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'
}
def set_subst_dict(obj, dict):
for i in dict:
setattr(obj, i, dict[i])
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)