[libgweather/ebassi/gtk4] build: Rename libgweather's pkg-config file
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/ebassi/gtk4] build: Rename libgweather's pkg-config file
- Date: Fri, 15 Oct 2021 08:53:49 +0000 (UTC)
commit 577a67cd9729d093af734f569598214fff76aa6e
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Oct 15 09:46:57 2021 +0100
build: Rename libgweather's pkg-config file
There's no point in using the full "N.0" version.
libgweather/meson.build | 6 +++---
meson.build | 3 ++-
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/libgweather/meson.build b/libgweather/meson.build
index 3c649e5d..9285f2fb 100644
--- a/libgweather/meson.build
+++ b/libgweather/meson.build
@@ -219,7 +219,7 @@ libgweather_dep = declare_dependency(
)
if build_vapi and build_gir
- gnome.generate_vapi('gweather-' + libgweather_api_version,
+ gnome.generate_vapi('gweather@0@'.format(libgweather_api),
sources: gweather_gir[0],
packages: ['gio-2.0', 'gdk-pixbuf-2.0'],
metadata_dirs: '.',
@@ -228,9 +228,9 @@ if build_vapi and build_gir
endif
pkgconfig.generate(
- filebase: 'gweather-' + libgweather_api_version,
+ filebase: 'gweather@0@'.format(libgweather_api),
name: 'GWeather',
- description: 'GWeather shared library',
+ description: 'Gather weather information from online services',
version: meson.project_version(),
libraries: lib_libgweather,
subdirs: libgweather_full_version,
diff --git a/meson.build b/meson.build
index 45dcf62f..bef96ac3 100644
--- a/meson.build
+++ b/meson.build
@@ -10,7 +10,8 @@ project('libgweather', 'c',
)
libgweather_version = meson.project_version().split('.')
-libgweather_api_version = '4.0'
+libgweather_api = 4
+libgweather_api_version = '@0@.0'.format(libgweather_api)
libgweather_full_version = '@0@-@1@'.format(meson.project_name(), libgweather_api_version)
pkgconfig = import('pkgconfig')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]