[pygobject] meson: declare_dependency for use by potential superprojects



commit ca03871a8d2f13cc46f4a6134fb3ae10b2a4eaa7
Author: Mathieu Duponchelle <mathieu centricular com>
Date:   Wed Aug 15 02:48:08 2018 +0200

    meson: declare_dependency for use by potential superprojects

 meson.build | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/meson.build b/meson.build
index 877cb046..188f979c 100644
--- a/meson.build
+++ b/meson.build
@@ -142,6 +142,12 @@ configure_file(input : 'pygobject-@0  pc in'.format(platform_version),
   configuration : pkgconf,
   install_dir : pkg_install_dir)
 
+pygobject_dep = declare_dependency(
+  include_directories: include_directories('gi'),
+  dependencies: [gobject_dep, ffi_dep],
+  version: meson.project_version(),
+)
+
 if pygobject_version_minor.is_odd()
   py_version = '@0@.dev0'.format(pygobject_version)
 else


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