[gtk/ci-introspection: 1/2] Add g-i as a subproject



commit c31727d0dc55fed583d98be95a4024efb6dcf7f8
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Apr 27 11:01:14 2020 +0100

    Add g-i as a subproject
    
    If the version of Meson is high enough, we can use gobject-introspection
    as a Meson sub-project.

 meson.build                            | 7 +++++++
 subprojects/gobject-introspection.wrap | 5 +++++
 2 files changed, 12 insertions(+)
---
diff --git a/meson.build b/meson.build
index 12388f743a..7cebb52d19 100644
--- a/meson.build
+++ b/meson.build
@@ -694,6 +694,13 @@ if graphene_has_sse2 or graphene_has_gcc
   endif
 endif
 
+introspection_enabled = get_option('introspection')
+if introspection_enabled and meson.version().version_compare('>= 0.54.0')
+  gi_dep = dependency('gobject-introspection-1.0', required: true,
+    fallback: ['gobject-introspection', 'girepo_dep'],
+  )
+endif
+
 subdir('gtk/css')
 subdir('gdk')
 subdir('gsk')
diff --git a/subprojects/gobject-introspection.wrap b/subprojects/gobject-introspection.wrap
new file mode 100644
index 0000000000..7a4aec806a
--- /dev/null
+++ b/subprojects/gobject-introspection.wrap
@@ -0,0 +1,5 @@
+[wrap-git]
+directory=gobject-introspection
+url=https://gitlab.gnome.org/GNOME/gobject-introspection.git
+push-url=ssh://git gitlab gnome org:GNOME/gobject-introspection.git
+revision=master


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