[libsoup/libsoup-2-74] meson: Override deps for use by the provide wrap section
- From: Nirbheek Chauhan <nirbheekc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/libsoup-2-74] meson: Override deps for use by the provide wrap section
- Date: Mon, 28 Mar 2022 14:07:13 +0000 (UTC)
commit 1470a9992f02022b93d9b758e4cf32cfa787d73e
Author: Nirbheek Chauhan <nirbheek centricular com>
Date: Fri Mar 25 23:28:29 2022 +0530
meson: Override deps for use by the provide wrap section
See: https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section
libsoup/meson.build | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/libsoup/meson.build b/libsoup/meson.build
index e585b3fe..8ff0e57f 100644
--- a/libsoup/meson.build
+++ b/libsoup/meson.build
@@ -278,6 +278,10 @@ libsoup_dep = declare_dependency(link_with : libsoup,
sources : soup_enum_h,
dependencies : [ platform_deps, gssapi_dep, glib_deps ])
+if meson.version().version_compare('>=0.54.0')
+ meson.override_dependency('libsoup-2.4', libsoup_dep)
+endif
+
if enable_gnome
soup_gnome_api_name = 'soup-gnome-' + apiversion
libsoup_gnome_api_name = 'lib' + soup_gnome_api_name
@@ -297,6 +301,14 @@ if enable_gnome
install : true,
dependencies : deps + [libsoup_dep])
+ libsoup_gnome_dep = declare_dependency(link_with : libsoup_gnome,
+ include_directories : configinc,
+ dependencies : deps + [libsoup_dep])
+
+ if meson.version().version_compare('>=0.54.0')
+ meson.override_dependency('libsoup-gnome-2.4', libsoup_gnome_dep)
+ endif
+
pkg.generate(
libraries : libsoup_gnome,
version : soup_version,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]