summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-10-15 00:25:48 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-10-15 00:25:48 +0100
commitcc16bdfe59b06fdd7288c2e65fdca5295f2c725a (patch)
treea87241c52a2de1ea1c5bbc77e0e5e06524dc38d8
parenta1db116ebe1372e8534c44cca1750cc13844fdb1 (diff)
downloadlibgweather-cc16bdfe59b06fdd7288c2e65fdca5295f2c725a.tar.gz
build: Move pkgconfig file generation near the library
There's no point in having it at the bottom of the meson.build file in the top-level directory.
-rw-r--r--libgweather/meson.build16
-rw-r--r--meson.build16
2 files changed, 16 insertions, 16 deletions
diff --git a/libgweather/meson.build b/libgweather/meson.build
index 944c08e..3c649e5 100644
--- a/libgweather/meson.build
+++ b/libgweather/meson.build
@@ -227,5 +227,21 @@ if build_vapi and build_gir
)
endif
+pkgconfig.generate(
+ filebase: 'gweather-' + libgweather_api_version,
+ name: 'GWeather',
+ description: 'GWeather shared library',
+ version: meson.project_version(),
+ libraries: lib_libgweather,
+ subdirs: libgweather_full_version,
+ requires_private: [
+ 'gio-2.0',
+ 'gdk-pixbuf-2.0',
+ 'libsoup-2.4',
+ 'libxml-2.0',
+ 'geocode-glib-1.0',
+ ],
+)
+
subdir('tests')
subdir('tools')
diff --git a/meson.build b/meson.build
index b1d7c0c..45dcf62 100644
--- a/meson.build
+++ b/meson.build
@@ -55,22 +55,6 @@ subdir('po-locations')
meson.add_install_script('build-aux/meson/meson_post_install.py')
-pkgconfig.generate(
- filebase: 'gweather-' + libgweather_api_version,
- name: 'GWeather',
- description: 'GWeather shared library',
- version: meson.project_version(),
- libraries: lib_libgweather,
- subdirs: libgweather_full_version,
- requires_private: [
- 'gio-2.0',
- 'gdk-pixbuf-2.0',
- 'libsoup-2.4',
- 'libxml-2.0',
- 'geocode-glib-1.0',
- ],
-)
-
summary({
'prefix': prefix,
'libdir': libdir,