mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 15:16:25 +01:00
build ardour3_ui_default.conf at build time, to allow font substitutions to be done (which are platform dependent)
This commit is contained in:
parent
58e3d7a1a1
commit
38db61f44f
3 changed files with 11 additions and 1 deletions
|
|
@ -546,6 +546,7 @@ def build(bld):
|
||||||
|
|
||||||
dark_rc_subst_dict = {}
|
dark_rc_subst_dict = {}
|
||||||
light_rc_subst_dict = {}
|
light_rc_subst_dict = {}
|
||||||
|
ui_conf_dict = {}
|
||||||
font_sizes = {}
|
font_sizes = {}
|
||||||
base_font = ""
|
base_font = ""
|
||||||
|
|
||||||
|
|
@ -606,18 +607,21 @@ def build(bld):
|
||||||
|
|
||||||
dark_rc_subst_dict[key] = fontstyle
|
dark_rc_subst_dict[key] = fontstyle
|
||||||
light_rc_subst_dict[key] = fontstyle
|
light_rc_subst_dict[key] = fontstyle
|
||||||
|
ui_conf_dict[key] = points
|
||||||
|
|
||||||
# @FONT_SIZE_XXXX@
|
# @FONT_SIZE_XXXX@
|
||||||
for sizename,points in iter(font_sizes.items()):
|
for sizename,points in iter(font_sizes.items()):
|
||||||
key = "_".join (['FONT_SIZE',sizename])
|
key = "_".join (['FONT_SIZE',sizename])
|
||||||
dark_rc_subst_dict[key] = points
|
dark_rc_subst_dict[key] = points
|
||||||
light_rc_subst_dict[key] = points
|
light_rc_subst_dict[key] = points
|
||||||
|
ui_conf_dict[key] = points
|
||||||
|
|
||||||
# various font names, eg @BOLD_MONOSPACE@
|
# various font names, eg @BOLD_MONOSPACE@
|
||||||
for font_sym,text in iter(font_names.items()):
|
for font_sym,text in iter(font_names.items()):
|
||||||
key = font_sym
|
key = font_sym
|
||||||
dark_rc_subst_dict[key] = text
|
dark_rc_subst_dict[key] = text
|
||||||
light_rc_subst_dict[key] = text
|
light_rc_subst_dict[key] = text
|
||||||
|
ui_conf_dict[key] = text
|
||||||
|
|
||||||
# RC files
|
# RC files
|
||||||
dark_rc_subst_dict['COLOR_SCHEME'] = build_color_scheme(
|
dark_rc_subst_dict['COLOR_SCHEME'] = build_color_scheme(
|
||||||
|
|
@ -682,6 +686,12 @@ def build(bld):
|
||||||
obj.target = 'ardour3_ui_light.rc'
|
obj.target = 'ardour3_ui_light.rc'
|
||||||
obj.install_path = '${SYSCONFDIR}/ardour3'
|
obj.install_path = '${SYSCONFDIR}/ardour3'
|
||||||
|
|
||||||
|
obj = bld(features = 'subst')
|
||||||
|
obj.source = [ 'ardour3_ui_default.conf.in' ]
|
||||||
|
obj.target = 'ardour3_ui_default.conf'
|
||||||
|
obj.install_path = None
|
||||||
|
set_subst_dict(obj, ui_conf_dict)
|
||||||
|
|
||||||
# Menus
|
# Menus
|
||||||
menus_argv = []
|
menus_argv = []
|
||||||
if bld.is_defined('GTKOSX'):
|
if bld.is_defined('GTKOSX'):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue