summaryrefslogtreecommitdiffstats
path: root/test cases/frameworks/11 gir subproject/meson.build
blob: 3714daa3492290eb705a5f3e6b8e0729f540dfd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;', check: false).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')