| 1 |
project('gobject-introspection-with-subproject', 'c') |
| 2 |
|
| 3 |
gir = find_program('g-ir-scanner', required: false) |
| 4 |
if not gir.found() |
| 5 |
error('MESON_SKIP_TEST g-ir-scanner not found.') |
| 6 |
endif |
| 7 |
|
| 8 |
python3 = import('python3') |
| 9 |
py3 = python3.find_python() |
| 10 |
if run_command(py3, '-c', 'import gi.repository;', check: false).returncode() != 0 |
| 11 |
error('MESON_SKIP_TEST python3-gi not found') |
| 12 |
endif |
| 13 |
|
| 14 |
gnome = import('gnome') |
| 15 |
gobj = dependency('gobject-2.0') |
| 16 |
|
| 17 |
add_global_arguments('-DMESON_TEST', language : 'c') |
| 18 |
meson_gir = dependency('meson-gir', fallback : ['mesongir', 'meson_gir']) |
| 19 |
|
| 20 |
subdir('gir') |