summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-04-10 07:31:26 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-04-10 07:31:26 -0400
commit21a6c20e9a85ddef7ad2b92d474428445bf8083e (patch)
tree09e70ccdd0c706d2c4e177b97133f7de8471add2
parent75210a480c1ce211a7b13f88fa593047b2378dfc (diff)
always build all per-program menu files so that we can try them out with different builds
-rw-r--r--gtk2_ardour/wscript29
1 files changed, 18 insertions, 11 deletions
diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript
index 326ee143f8..bda61e0eba 100644
--- a/gtk2_ardour/wscript
+++ b/gtk2_ardour/wscript
@@ -664,23 +664,30 @@ def build(bld):
else:
menus_argv = [ '-E', '-P' ]
+ # always build all versions of the menu definitions
+ # so that we can try them out with different program builds.
+ for program in [ 'ardour', 'trx' ]:
+ obj = bld(features = 'command-output')
+ obj.command = 'cpp'
+ obj.command_is_external = True
+ obj.no_inputs = True
+ obj.argv = menus_argv
+ obj.dep_vars = ['GTKOSX']
+ obj.stdin = program + '.menus.in'
+ obj.stdout = program + '.menus'
+ bld.install_files(os.path.join(bld.env['SYSCONFDIR'], 'ardour3'),
+ program + '.menus')
+
obj = bld(features = 'command-output')
obj.command = 'cpp'
obj.command_is_external = True
obj.no_inputs = True
obj.argv = menus_argv
obj.dep_vars = ['GTKOSX']
-
- 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')
+ obj.stdin = 'ardour.menus.in'
+ obj.stdout = 'ardour.menus'
+ bld.install_files(os.path.join(bld.env['SYSCONFDIR'], 'ardour3'),
+ 'ardour.menus')
# Keybindings