diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-11-04 14:50:52 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-11-04 14:50:52 +0530 |
commit | 618b13c436636149bb1c611a9f4a422f60c6476d (patch) | |
tree | 6f9ecce7b9c7e811f4dbce4f884ac3884b77f296 /src/meson.build | |
parent | c3e48e63a2d2deeae6205ee746cc00c960c8c5c5 (diff) | |
download | cairo-618b13c436636149bb1c611a9f4a422f60c6476d.tar.gz |
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).
Diffstat (limited to 'src/meson.build')
-rw-r--r-- | src/meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
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', |