[cairo-commit] src/meson.build

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Nov 5 15:21:00 UTC 2020


 src/meson.build |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 618b13c436636149bb1c611a9f4a422f60c6476d
Author: Nirbheek Chauhan <nirbheek at centricular.com>
Date:   Wed Nov 4 14:50:52 2020 +0530

    meson: Add dependencies to the declared libcairo dep
    
    That way when other projects consume our declared dep, they get
    transitive dependencies too based on what features cairo was built
    with. Without this, projects that build cairo as a subproject and also
    build, say, fontconfig as a subproject will fail to find cairo-ft.h
    (etc).

diff --git a/src/meson.build b/src/meson.build
index 71cba4cfe..5bd1a57ee 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -307,7 +307,9 @@ libcairo = library('cairo', cairo_sources,
 
 cairo_headers += [configure_file(output: 'cairo-features.h', configuration: feature_conf)]
 
-libcairo_dep = declare_dependency(link_with: libcairo, include_directories: incsrc)
+libcairo_dep = declare_dependency(link_with: libcairo,
+  dependencies: deps,
+  include_directories: incsrc)
 
 pkgmod.generate(libcairo,
   description: 'Multi-platform 2D graphics library',


More information about the cairo-commit mailing list