new configure option for trx build, which also generates new menus file
This commit is contained in:
parent
782f67d2bc
commit
716c5b0642
|
@ -669,11 +669,18 @@ def build(bld):
|
||||||
obj.command_is_external = True
|
obj.command_is_external = True
|
||||||
obj.no_inputs = True
|
obj.no_inputs = True
|
||||||
obj.argv = menus_argv
|
obj.argv = menus_argv
|
||||||
obj.stdin = 'ardour.menus.in'
|
|
||||||
obj.stdout = 'ardour.menus'
|
|
||||||
obj.dep_vars = ['GTKOSX']
|
obj.dep_vars = ['GTKOSX']
|
||||||
bld.install_files(os.path.join(bld.env['SYSCONFDIR'], 'ardour3'),
|
|
||||||
'ardour.menus')
|
if bld.is_defined('TRX_BUILD'):
|
||||||
|
obj.stdin = 'trx.menus.in'
|
||||||
|
obj.stdout = 'trx.menus'
|
||||||
|
bld.install_files(os.path.join(bld.env['SYSCONFDIR'], 'ardour3'),
|
||||||
|
'trx.menus')
|
||||||
|
else:
|
||||||
|
obj.stdin = 'ardour.menus.in'
|
||||||
|
obj.stdout = 'ardour.menus'
|
||||||
|
bld.install_files(os.path.join(bld.env['SYSCONFDIR'], 'ardour3'),
|
||||||
|
'ardour.menus')
|
||||||
|
|
||||||
# Keybindings
|
# Keybindings
|
||||||
|
|
||||||
|
|
5
wscript
5
wscript
|
@ -430,6 +430,8 @@ def options(opt):
|
||||||
autowaf.set_options(opt, debug_by_default=True)
|
autowaf.set_options(opt, debug_by_default=True)
|
||||||
opt.add_option('--program-name', type='string', action='store', default='Ardour', dest='program_name',
|
opt.add_option('--program-name', type='string', action='store', default='Ardour', dest='program_name',
|
||||||
help='The user-visible name of the program being built')
|
help='The user-visible name of the program being built')
|
||||||
|
opt.add_option ('--trx', action='store_true', default=False, dest='trx_build',
|
||||||
|
help='Whether to build for TRX')
|
||||||
opt.add_option('--arch', type='string', action='store', dest='arch',
|
opt.add_option('--arch', type='string', action='store', dest='arch',
|
||||||
help='Architecture-specific compiler flags')
|
help='Architecture-specific compiler flags')
|
||||||
opt.add_option('--backtrace', action='store_true', default=True, dest='backtrace',
|
opt.add_option('--backtrace', action='store_true', default=True, dest='backtrace',
|
||||||
|
@ -579,6 +581,9 @@ def configure(conf):
|
||||||
conf.env.append_value ('CXXFLAGS', '-DNO_PLUGIN_STATE')
|
conf.env.append_value ('CXXFLAGS', '-DNO_PLUGIN_STATE')
|
||||||
conf.define ('NO_PLUGIN_STATE', 1)
|
conf.define ('NO_PLUGIN_STATE', 1)
|
||||||
|
|
||||||
|
if Options.options.trx_build:
|
||||||
|
conf.define ('TRX_BUILD', 1)
|
||||||
|
|
||||||
if Options.options.lv2dir:
|
if Options.options.lv2dir:
|
||||||
conf.env['LV2DIR'] = Options.options.lv2dir
|
conf.env['LV2DIR'] = Options.options.lv2dir
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user