[libgweather] build: Add requires clauses for pkg-config file
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather] build: Add requires clauses for pkg-config file
- Date: Mon, 27 Nov 2017 14:13:26 +0000 (UTC)
commit 193829857b78f7c5004743f4ca7c87e8fba41eab
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Nov 27 14:12:22 2017 +0000
build: Add requires clauses for pkg-config file
The Gweather library depends on various other libraries, so we need to
express that dependency inside the pkg-config file, otherwise the
compiler and linker flags will be useless.
data/meson.build | 9 +++++++++
meson.build | 13 +++++++++----
2 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index c7881b4..dafe889 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -5,6 +5,15 @@ pkgconfig.generate(
version: meson.project_version(),
libraries: lib_libgweather,
subdirs: 'libgweather-3.0',
+ requires: [
+ 'gtk+-3.0 ' + gtk_req_version,
+ ],
+ requires_private: [
+ 'gio-2.0 ' + glib_req_version,
+ 'libsoup-2.4 ' + libsoup_req_version,
+ 'libxml-2.0 ' + libxml_req_version,
+ 'geocode-glib-1.0',
+ ],
)
if enable_glade_catalog
diff --git a/meson.build b/meson.build
index e2cb4c1..0ce7bde 100644
--- a/meson.build
+++ b/meson.build
@@ -35,11 +35,16 @@ libexecdir = join_paths(prefix, get_option('libexecdir'))
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
pkgdatadir = join_paths(datadir, 'libgweather')
+glib_req_version = '>= 2.35.1'
+gtk_req_version = '>= 3.13.5'
+libsoup_req_version = '>= 2.44.0'
+libxml_req_version = '>= 2.6.0'
+
c_compiler = meson.get_compiler('c')
-gtk_dep = dependency('gtk+-3.0', version: '>=3.13.5')
-glib_dep = dependency('gio-2.0', version: '>=2.35.1')
-libsoup_dep = dependency('libsoup-2.4', version: '>=2.44.0')
-libxml_dep = dependency('libxml-2.0', version: '>=2.6.0')
+gtk_dep = dependency('gtk+-3.0', version: gtk_req_version)
+glib_dep = dependency('gio-2.0', version: glib_req_version)
+libsoup_dep = dependency('libsoup-2.4', version: libsoup_req_version)
+libxml_dep = dependency('libxml-2.0', version: libxml_req_version)
geocode_glib_dep = dependency('geocode-glib-1.0')
math_dep = c_compiler.find_library('m', required : false)
deps_libgweather = [math_dep, gtk_dep, glib_dep, libsoup_dep, libxml_dep, geocode_glib_dep]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]