summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2018-01-09 11:05:29 +0000
committerPhilip Withnall <withnall@endlessm.com>2018-01-10 10:58:18 +0000
commit1addea2febecb9e3511329b985d5566de6d8369e (patch)
treea5650f801a8e659dce6119e57592f405e48fae67
parent4120b76eed6daeec38d844ecf819977899f4edd7 (diff)
downloadpango-1addea2febecb9e3511329b985d5566de6d8369e.tar.gz
build: Only enable freetype if fontconfig is also available
This changes meson.build to match what configure.ac already does. The code doesn’t have separate conditions for whether fontconfig and freetype are available: if freetype compilation is enabled, it assumes that fontconfig is also available. Previously, systems with freetype available, but no fontconfig, would fail to compile Pango due to trying to link against non-existent fontconfig symbols. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=792363
-rw-r--r--meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index db9241c6..494104be 100644
--- a/meson.build
+++ b/meson.build
@@ -229,8 +229,9 @@ if fontconfig_dep.found()
endif
# The first version of freetype with a pkg-config file is 2.1.5
+# We require both fontconfig and freetype if we are to have either.
freetype_dep = dependency('freetype2', required: false)
-if freetype_dep.found()
+if freetype_dep.found() and fontconfig_dep.found()
pango_conf.set('HAVE_FREETYPE', 1)
pango_deps += freetype_dep
endif