diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-09 21:51:07 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-09 22:37:37 -0400 |
commit | f972ba0562823a8d55ad02ff9609481a884c79f8 (patch) | |
tree | 3f9950ecd7b1cf5642d77b763dec36b98f7c65e3 /pango/meson.build | |
parent | 37fd3ce13b643d1743ae8b69c453a2cfcb0e3eb0 (diff) | |
download | pango-f972ba0562823a8d55ad02ff9609481a884c79f8.tar.gz |
Reduce overlinking
Only link libpangoxft and libpangocairo
against xft and cairo.
Diffstat (limited to 'pango/meson.build')
-rw-r--r-- | pango/meson.build | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pango/meson.build b/pango/meson.build index 4ca062ec..bcb5ad72 100644 --- a/pango/meson.build +++ b/pango/meson.build @@ -282,7 +282,7 @@ if xft_dep.found() and fontconfig_dep.found() soversion: pango_soversion, darwin_versions : pango_osxversion, install: true, - dependencies: pango_deps + [ libpango_dep, libpangoft2_dep ], + dependencies: pango_deps + pangoxft_deps + [ libpango_dep, libpangoft2_dep ], include_directories: [ root_inc, pango_inc ], c_args: common_cflags + pango_debug_cflags + pango_cflags + [ '-DPANGO_DISABLE_DEPRECATION_WARNINGS', @@ -408,15 +408,13 @@ if cairo_dep.found() 'pangocairo-render.c', ] - pangocairo_deps = pango_deps + [ libpango_dep ] + pangocairo_deps += libpango_dep if pango_font_backends.contains('freetype') pangocairo_sources += [ 'pangocairo-fcfont.c', 'pangocairo-fcfontmap.c', ] - - pangocairo_deps += libpangoft2_dep endif if host_system == 'windows' and pango_font_backends.contains('win32') @@ -486,7 +484,7 @@ if cairo_dep.found() libpangocairo_dep = declare_dependency( link_with: libpangocairo, include_directories: root_inc, - dependencies: pango_deps + [ libpango_dep ], + dependencies: pangocairo_deps + pango_deps + [ libpango_dep ], sources: pangocairo_dep_sources, ) |