[gnome-initial-setup/wip/wjt/geocode-glib-2.0: 10/10] Build against geocode-glib-2.0 when using soup3
- From: Will Thompson <wjt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/wip/wjt/geocode-glib-2.0: 10/10] Build against geocode-glib-2.0 when using soup3
- Date: Thu, 30 Jun 2022 14:58:27 +0000 (UTC)
commit 6180fc4b836881761539cc04c97638146f3edbc1
Author: Will Thompson <wjt endlessos org>
Date: Thu Jun 30 15:54:34 2022 +0100
Build against geocode-glib-2.0 when using soup3
geocode-glib 3.26.3 was released today, with optional soup3 support.
When built against soup3, it generates a geocode-glib-2.0 pkg-config
file rather than geocode-glib-1.0.
Adjust our dependency based on initial setup's own soup2 flag.
gnome-initial-setup/meson.build | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gnome-initial-setup/meson.build b/gnome-initial-setup/meson.build
index 0db24f95..62b7fd1f 100644
--- a/gnome-initial-setup/meson.build
+++ b/gnome-initial-setup/meson.build
@@ -35,7 +35,11 @@ else
webkitgtk_dep = dependency ('webkit2gtk-4.1')
endif
-geocode_glib_dep = dependency ('geocode-glib-1.0')
+if get_option('soup2')
+ geocode_glib_dep = dependency ('geocode-glib-1.0')
+else
+ geocode_glib_dep = dependency ('geocode-glib-2.0')
+endif
geocode_soup_version = geocode_glib_dep.get_variable(
pkgconfig: 'soupapiversion',
default_value: '2.4', # Pre libsoup3 support
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]