[cantarell-fonts: 104/109] Split Meson build files into subdirectories
- From: Nikolaus Waxweiler <nwaxweiler src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cantarell-fonts: 104/109] Split Meson build files into subdirectories
- Date: Mon, 5 Feb 2018 21:20:23 +0000 (UTC)
commit 9044027b96793ecee8d6462a6a500f258becb87f
Author: Nikolaus Waxweiler <madigens gmail com>
Date: Sat Feb 3 00:51:35 2018 +0000
Split Meson build files into subdirectories
meson.build | 31 ++++---------------------------
src/meson.build | 15 +++++++++++++++
2 files changed, 19 insertions(+), 27 deletions(-)
---
diff --git a/meson.build b/meson.build
index 4a74f4b..acc8987 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-project('Cantarell', version : '0.30')
+project('Cantarell', version : '0.100')
datadir = join_paths(get_option('prefix'), get_option('datadir'))
@@ -14,31 +14,8 @@ endif
python3 = import('python3').find_python()
fontmake = find_program('fontmake')
-fontmake_wrapper = join_paths(meson.current_source_dir(), 'scripts', 'fontmakewrapper.py')
+fontmake_wrapper = join_paths(meson.current_source_dir(), 'scripts', 'fm.py')
psautohint = find_program('psautohint')
-legacy_fonts = ['CantarellLegacy-Regular.@0@',
- 'CantarellLegacy-Bold.@0@']
-
-foreach font : legacy_fonts
- custom_target(font.format('otf'),
- input : join_paths('src', font.format('ufo')),
- output : font.format('otf'),
- command : [python3, fontmake_wrapper, fontmake, psautohint, '@INPUT@'])
-endforeach
-
-cantarell_binaries = ['Cantarell-Thin.otf',
- 'Cantarell-Light.otf',
- 'Cantarell-Regular.otf',
- 'Cantarell-Bold.otf',
- 'Cantarell-Black.otf']
-
-custom_target('Cantarell',
- input : join_paths('src', 'Cantarell.glyphs'),
- output : cantarell_binaries,
- command : [python3, fontmake_wrapper, fontmake, psautohint, '@INPUT@'],
- install : true,
- install_dir : fontsdir)
-
-install_data(join_paths('fontconfig', '31-cantarell.conf'),
- install_dir : fontconfigdir)
+subdir('src')
+subdir('appstream')
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 0000000..048b304
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,15 @@
+cantarell_binaries = [
+'Cantarell-Thin.otf',
+'Cantarell-Light.otf',
+'Cantarell-Regular.otf',
+'Cantarell-Bold.otf',
+'Cantarell-ExtraBold.otf'
+]
+
+custom_target('Cantarell',
+ input : 'Cantarell.glyphs',
+ output : cantarell_binaries,
+ command : [python3, fontmake_wrapper, fontmake, psautohint,
+ '@INPUT@', '@OUTDIR@'],
+ install: true,
+ install_dir : fontsdir)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]