Skip test cases/frameworks/11 gir subproject if prereqs not found
Skip test cases/frameworks/11 gir subproject if g-ir-scanner or python3-gi not found
This commit is contained in:
parent
90cbe48968
commit
1d36df3d40
|
@ -1,5 +1,16 @@
|
|||
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')
|
||||
|
||||
|
@ -7,4 +18,3 @@ add_global_arguments('-DMESON_TEST', language : 'c')
|
|||
meson_gir = dependency('meson-gir', fallback : ['mesongir', 'meson_gir'])
|
||||
|
||||
subdir('gir')
|
||||
|
||||
|
|
Loading…
Reference in New Issue