[d-spy] build: add pkgconfig file for library



commit b3f308166418837da775c9052aea94410cec09e2
Author: Christian Hergert <chergert redhat com>
Date:   Sat Mar 26 22:55:29 2022 -0700

    build: add pkgconfig file for library

 lib/meson.build | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/lib/meson.build b/lib/meson.build
index 0f3ce9c..473a407 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -76,5 +76,17 @@ libdspy_dep = declare_dependency(
   include_directories: include_directories('.'),
 )
 
-install_headers(libdspy_headers,
-                subdir: 'dspy-@0@'.format(version_major))
+libdspy_header_subdir = 'dspy-@0@'.format(version_major)
+install_headers(libdspy_headers, subdir: libdspy_header_subdir)
+
+pkgg = import('pkgconfig')
+
+pkgg.generate(
+    libraries: [libdspy],
+      subdirs: libdspy_header_subdir,
+         name: 'D-Spy',
+     filebase: 'dspy-@0@'.format(version_major),
+  description: 'Embed D-Spy into applications and IDEs',
+     requires: [ 'gtk4', 'libadwaita-1'],
+)
+


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