summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-09 18:36:14 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-07-09 18:41:42 -0400
commita030bdf67986ce90c7999d773f4077928442ad68 (patch)
treecf356ee250e37f47ed449f1fc4c59c51e31b8436
parent76d7e303c94d293e60fca83690d46fb74c3a048e (diff)
downloadpango-a030bdf67986ce90c7999d773f4077928442ad68.tar.gz
fixup! Build a single library
Keep Xft separate. It is just dead cruft.
-rw-r--r--pango/meson.build35
1 files changed, 15 insertions, 20 deletions
diff --git a/pango/meson.build b/pango/meson.build
index 1b9b9d3c..be651aec 100644
--- a/pango/meson.build
+++ b/pango/meson.build
@@ -140,24 +140,6 @@ if cairo_dep.found()
pango_sources += pangocairo_sources
endif
-# Xft
-if xft_dep.found() and fontconfig_dep.found()
- pangoxft_headers = [
- 'pangoxft.h',
- 'pangoxft-render.h',
- ]
-
- pangoxft_sources = [
- 'pangoxft-font.c',
- 'pangoxft-fontmap.c',
- 'pangoxft-render.c',
- ]
-
- install_headers(pangoxft_headers, subdir: pango_api_path)
-
- pango_sources += pangoxft_sources
-endif
-
# Features header
pango_features_conf = configuration_data()
pango_features_conf.set('PANGO_VERSION_MAJOR', pango_major_version)
@@ -325,9 +307,22 @@ endif
# Xft
if xft_dep.found() and fontconfig_dep.found()
+ pangoxft_headers = [
+ 'pangoxft.h',
+ 'pangoxft-render.h',
+ ]
+
+ pangoxft_sources = [
+ 'pangoxft-font.c',
+ 'pangoxft-fontmap.c',
+ 'pangoxft-render.c',
+ ]
+
+ install_headers(pangoxft_headers, subdir: pango_api_path)
+
libpangoxft = library(
'pangoxft-@0@'.format(pango_api_version),
- sources: [],
+ sources: pangoxft_sources,
version: pango_libversion,
soversion: pango_soversion,
darwin_versions : pango_osxversion,
@@ -344,7 +339,7 @@ if xft_dep.found() and fontconfig_dep.found()
if build_gir
pangoxft_gir = gnome.generate_gir(
libpangoxft,
- sources: [],
+ sources: pangoxft_headers+ pangoxft_sources,
dependencies: [ libpango_dep, libpangoft2_dep, pango_gir_dep, pangoft2_gir_dep ],
namespace: 'PangoXft',
nsversion: pango_api_version,