summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2017-05-31 17:17:17 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2018-03-30 12:20:41 +0800
commit55afeeca8031ba74cbcdf569500334ebef6b61e0 (patch)
treee06e2cd657b4b9ea38d7a35ad256db3c0a57a9ec /tools
parentec8251d9728d0691365249eec4c681218e379819 (diff)
downloadpango-55afeeca8031ba74cbcdf569500334ebef6b61e0.tar.gz
meson: Check for HarfBuzz and FontConfig for PangoFT2
It is possible that we can have the following situations, at least on Windows: -FreeType present, FontConfig missing -Cairo-FT present, with no FontConfig support. As gen-script-for-lang requires FontConfig, and PangoFT2 depends on HarfBuzz, FontConfig and Freetype, we need to check for them before we build PangoFT2, and so that we could include PangoFT2 support in PangoCairo. The tests and pango-view have an optional dependency on PangoFT2, so we need to also check whether we built PangoFT2 before we try to build things related to PangoFT2. For the tools, since gen-script-for-lang.c depends on FontConfig, check for it as well before we build it. https://bugzilla.gnome.org/show_bug.cgi?id=783274
Diffstat (limited to 'tools')
-rw-r--r--tools/meson.build12
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/meson.build b/tools/meson.build
index 37a3be76..37e52434 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -1,5 +1,7 @@
-executable('gen-script-for-lang', 'gen-script-for-lang.c',
- dependencies: pango_deps + [ libpango_dep ],
- c_args: common_cflags + pango_debug_cflags + [ '-DPANGO_DISABLE_DEPRECATED' ],
- include_directories: root_inc,
- install: false)
+if fontconfig_dep.found()
+ executable('gen-script-for-lang', 'gen-script-for-lang.c',
+ dependencies: pango_deps + [ libpango_dep ],
+ c_args: common_cflags + pango_debug_cflags + [ '-DPANGO_DISABLE_DEPRECATED' ],
+ include_directories: root_inc,
+ install: false)
+endif