From f1a3eb1e3d3ae4c45ffc418f8db448e0c9f5c4c0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 25 Apr 2024 09:26:33 -0600 Subject: [PATCH] use a different source file for ardour.menus in the livetrax case --- gtk2_ardour/wscript | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index 60525f769e..d1e0f94274 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -859,17 +859,19 @@ def build(bld): # always build all versions of the menu definitions # so that we can try them out with different program builds. - for program in [ 'ardour']: - obj = bld(features = 'command-output') - obj.command = 'cpp' - obj.command_is_external = True - obj.no_inputs = True - obj.argv = menus_argv - obj.dep_vars = ['PTFORMAT', 'MIXBUS', 'WINDOWS', 'debug'] - obj.stdin = program + '.menus.in' - obj.stdout = program + '.menus' - bld.install_files (bld.env['CONFDIR'], 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 = ['PTFORMAT', 'MIXBUS', 'WINDOWS', 'debug'] + if bld.is_defined('LIVETRAX'): + obj.stdin = 'livetrax.menus.in' + else: + obj.stdin = 'ardour.menus.in' + obj.stdout = 'ardour.menus' + bld.install_files (bld.env['CONFDIR'], 'ardour.menus') # Freedesktop freedesktop_subst_dict = {