[libgweather/ebassi/gtk4] build: Move pkgconfig file generation near the library



commit cc16bdfe59b06fdd7288c2e65fdca5295f2c725a
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Oct 15 00:25:48 2021 +0100

    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 944c08ed..3c649e5d 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 b1d7c0c2..45dcf62f 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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]