+ obj = bld.new_task_gen('subst')
+ obj.source = 'ardev_common.sh.in'
+ obj.target = 'ardev_common_waf.sh'
+ obj.chmod = 0755
+ obj.dict = wrapper_subst_dict
+
+ obj = bld.new_task_gen('subst')
+ obj.source = 'ardour.sh.in'
+ obj.target = 'ardour3'
+ obj.chmod = 0755
+ obj.dict = wrapper_subst_dict
+ obj.install_path = bld.env['BINDIR']
+
+ # Font configuration
+
+ font_subst_dict = {}
+ font_sizes = {}
+ base_font = ""
+
+ # Set up font sizes
+ if bld.env['IS_OSX']: # OS X fonts
+ basefont = "Lucida Grande"
+ font_sizes = {
+ 'TINY' : '7',
+ 'SMALLER' : '9',
+ 'SMALL' : '10',
+ 'NORMAL' : '11',
+ 'BIG' : '12',
+ 'BIGGER' : '14',
+ 'LARGE' : '18',
+ 'LARGER' : '28',
+ 'HUGER' : '36',
+ 'MASSIVE' : '60'
+ }
+ else: # Linux/X11 fonts
+ basefont = "sans"
+ font_sizes = {
+ 'TINY' : '6',
+ 'SMALLER' : '8',
+ 'SMALL' : '9',
+ 'NORMAL' : '10',
+ 'BIG' : '14',
+ 'BIGGER' : '16',
+ 'LARGE' : '18',
+ 'LARGER' : '24',
+ 'HUGER' : '34',
+ 'MASSIVE' : '60'
+ }
+
+ # Set up font substitution dictionary
+ for style in ['', 'BOLD', 'ITALIC']:
+ for sizename,points in iter(font_sizes.items()):
+ if (len (style)):
+ key = "_".join (['FONT',style,sizename])
+ fontstyle = " ".join ([basefont,style.lower(),points])
+ else:
+ key = "_".join (['FONT',sizename])
+ fontstyle = " ".join ([basefont,points])
+
+ font_subst_dict[key] = fontstyle
+
+ # add normal monospace to font dict
+ font_subst_dict['FONT_MONOSPACE_NORMAL'] = 'monospace 10'
+
+ # RC files
+ obj = bld.new_task_gen('subst')
+ obj.source = 'ardour3_ui_dark.rc.in'
+ obj.target = 'ardour3_ui_dark.rc'
+ obj.dict = font_subst_dict
+ obj.install_path = os.path.join(bld.env['CONFIGDIR'], 'ardour3')
+
+ obj = bld.new_task_gen('subst')
+ obj.source = 'ardour3_ui_light.rc.in'
+ obj.target = 'ardour3_ui_light.rc'
+ obj.dict = font_subst_dict
+ obj.install_path = os.path.join(bld.env['CONFIGDIR'], 'ardour3')
+
+ obj = bld.new_task_gen('subst')
+ obj.source = 'ardour3_ui_dark_sae.rc.in'
+ obj.target = 'ardour3_ui_dark_sae.rc'
+ obj.dict = font_subst_dict
+ obj.install_path = os.path.join(bld.env['CONFIGDIR'], 'ardour3')
+
+ obj = bld.new_task_gen('subst')
+ obj.source = 'ardour3_ui_light_sae.rc.in'
+ obj.target = 'ardour3_ui_light_sae.rc'
+ obj.dict = font_subst_dict
+ obj.install_path = os.path.join(bld.env['CONFIGDIR'], 'ardour3')
+
+ # Menus
+ menus_argv = []
+ if bld.env['GTKOSX']:
+ menus_argv = [ '-E', '-P', '-DGTKOSX' ]
+ else:
+ menus_argv = [ '-E', '-P' ]
+ obj = bld.new_task_gen('command-output')
+ obj.command = 'cpp'
+ obj.command_is_external = True
+ obj.no_inputs = True
+ obj.argv = menus_argv
+ obj.stdin = 'ardour.menus.in'
+ obj.stdout = 'ardour.menus'
+ bld.install_files(os.path.join(bld.env['CONFIGDIR'], 'ardour3'), 'ardour.menus')
+
+ # Keybindings
+
+ # 'SAE-de-keypad', 'SAE-de-nokeypad', 'SAE-us-keypad', 'SAE-us-nokeypad', 'ergonomic-us'
+
+ for b in [ 'mnemonic-us' ] :
+ obj = bld.new_task_gen (
+ target = b + '.bindings',
+ source = b + '.bindings.in',
+ rule = '../tools/fmt-bindings --winkey="%s" --accelmap <${SRC} >${TGT}' % bld.env['WINDOWS_KEY']
+ )
+ obj.install_path = os.path.join(bld.env['CONFIGDIR'], 'ardour3')
+
+ # not modified at present
+ bld.install_files(os.path.join(bld.env['CONFIGDIR'], 'ardour3'), 'step_editing.bindings')
+
+ # Icons/Images
+ bld.install_files('${DATADIR}/ardour3/icons', 'icons/*.png')
+ bld.install_files('${DATADIR}/ardour3/pixmaps', 'pixmaps/*.xpm')
+ bld.install_files('${DATADIR}/ardour3', 'splash.png')
+
+ # Default UI configuration
+ bld.install_files('${CONFIGDIR}/ardour3', 'ardour3_ui_default.conf')