[libgweather/ebassi/pkg-config] build: Use the library() target to populate the pkg-config file
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/ebassi/pkg-config] build: Use the library() target to populate the pkg-config file
- Date: Thu, 11 Nov 2021 11:42:17 +0000 (UTC)
commit 0994dcd1ce3638d1cf2e17430c472d91aa611068
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Nov 11 11:41:30 2021 +0000
build: Use the library() target to populate the pkg-config file
Instead of specifying the required dependencies manually.
Fixes: #152
libgweather/meson.build | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/libgweather/meson.build b/libgweather/meson.build
index 5569b7ad..b9371b8e 100644
--- a/libgweather/meson.build
+++ b/libgweather/meson.build
@@ -184,7 +184,7 @@ libgweather_static_dep = declare_dependency(sources: gweather_c_sources,
link_with: libgweather_static,
)
-lib_libgweather = shared_library('gweather-4',
+lib_libgweather = library('gweather-4',
dependencies: deps_libgweather,
link_whole: libgweather_static,
soversion: libgweather_soversion,
@@ -250,18 +250,12 @@ if build_vapi and build_gir
endif
pkgconfig.generate(
+ lib_libgweather,
filebase: gweather_pc,
name: 'GWeather',
description: 'Gather weather information from online services',
version: meson.project_version(),
- libraries: lib_libgweather,
subdirs: libgweather_full_version,
- requires_private: [
- 'gio-2.0',
- 'libsoup-2.4',
- 'libxml-2.0',
- 'geocode-glib-1.0',
- ],
variables: [
'soupapiversion=' + libsoup_api_version,
]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]