aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/frameworks/11 gir subproject/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/frameworks/11 gir subproject/meson.build')
-rw-r--r--meson/test cases/frameworks/11 gir subproject/meson.build20
1 files changed, 20 insertions, 0 deletions
diff --git a/meson/test cases/frameworks/11 gir subproject/meson.build b/meson/test cases/frameworks/11 gir subproject/meson.build
new file mode 100644
index 000000000..a599ae9eb
--- /dev/null
+++ b/meson/test cases/frameworks/11 gir subproject/meson.build
@@ -0,0 +1,20 @@
+project('gobject-introspection-with-subproject', 'c')
+
+gir = find_program('g-ir-scanner', required: false)
+if not gir.found()
+ error('MESON_SKIP_TEST g-ir-scanner not found.')
+endif
+
+python3 = import('python3')
+py3 = python3.find_python()
+if run_command(py3, '-c', 'import gi;').returncode() != 0
+ error('MESON_SKIP_TEST python3-gi not found')
+endif
+
+gnome = import('gnome')
+gobj = dependency('gobject-2.0')
+
+add_global_arguments('-DMESON_TEST', language : 'c')
+meson_gir = dependency('meson-gir', fallback : ['mesongir', 'meson_gir'])
+
+subdir('gir')