From cc16bdfe59b06fdd7288c2e65fdca5295f2c725a Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 15 Oct 2021 00:25:48 +0100 Subject: 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. --- libgweather/meson.build | 16 ++++++++++++++++ meson.build | 16 ---------------- 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, -- cgit v1.2.1