aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build40
1 files changed, 40 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 924f802..73c0469 100644
--- a/meson.build
+++ b/meson.build
@@ -288,6 +288,46 @@ if build_next_ui
dependencies : d2tk_ui_deps,
install : true,
install_dir : inst_dir)
+
+ use_fontconfig = get_option('use-fontconfig')
+ if not use_fontconfig.enabled()
+ fira_sans_bold_ttf = d2tk.get_variable('fira_sans_bold_ttf')
+ fira_code_bold_ttf = d2tk.get_variable('fira_code_bold_ttf')
+ fira_code_light_ttf = d2tk.get_variable('fira_code_light_ttf')
+ fira_code_medium_ttf = d2tk.get_variable('fira_code_medium_ttf')
+ fira_code_regular_ttf = d2tk.get_variable('fira_code_regular_ttf')
+
+ configure_file(
+ input : fira_sans_bold_ttf,
+ output : 'FiraSans:bold.ttf',
+ copy : true,
+ install : true,
+ install_dir : inst_dir)
+ configure_file(
+ input : fira_code_bold_ttf,
+ output : 'FiraCode:bold.ttf',
+ copy : true,
+ install : true,
+ install_dir : inst_dir)
+ configure_file(
+ input : fira_code_light_ttf,
+ output : 'FiraCode:light.ttf',
+ copy : true,
+ install : true,
+ install_dir : inst_dir)
+ configure_file(
+ input : fira_code_medium_ttf,
+ output : 'FiraCode:medium.ttf',
+ copy : true,
+ install : true,
+ install_dir : inst_dir)
+ configure_file(
+ input : fira_code_regular_ttf,
+ output : 'FiraCode:regular.ttf',
+ copy : true,
+ install : true,
+ install_dir : inst_dir)
+ endif
endif
app = executable('moony_test', app_srcs,