[gssdp] all: Add warning if using too new API
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] all: Add warning if using too new API
- Date: Sun, 20 Jun 2021 14:10:47 +0000 (UTC)
commit f5af3f88bd6e1d393a576a405c060fa9ddd4203f
Author: Jens Georg <mail jensge org>
Date: Sun Jun 20 16:02:37 2021 +0200
all: Add warning if using too new API
There is a small issue with g_memdup2; we support it if glib is new
enough, but it will trigger the warning, so it is not set to error for
now
meson.build | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index e88980c..e043070 100644
--- a/meson.build
+++ b/meson.build
@@ -36,6 +36,11 @@ siocgifindex_available = cc.compiles(siocgifindex_test,
name : 'SIOCGIFINDEX is available')
conf.set('HAVE_SIOCGIFINDEX', siocgifindex_available)
+glib_version = '2.54'
+conf.set('GLIB_VERSION_MIN_REQUIRED', 'GLIB_VERSION_@0@'.format(glib_version.underscorify()))
+conf.set('GLIB_VERSION_MAX_ALLOWED', 'GLIB_VERSION_@0@'.format(glib_version.underscorify()))
+
+# Generate config.h, so all config has to be set up until here
subdir('internal')
system_deps = []
@@ -60,9 +65,9 @@ endif
generic_unix = not bionic_available and host_machine.system() != 'windows'
dependencies = [
- dependency('glib-2.0', version : '>= 2.54'),
- dependency('gobject-2.0', version : '>= 2.54'),
- dependency('gio-2.0', version : '>= 2.54'),
+ dependency('glib-2.0', version : '>= ' + glib_version),
+ dependency('gobject-2.0', version : '>= ' + glib_version),
+ dependency('gio-2.0', version : '>= ' + glib_version),
dependency('libsoup-2.4', version : '>= 2.26.1')
]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]