gtk2/testsuite/introspection/meson.build
Marco Trevisan (Treviño) d5f2b69d0c build: Get typelib dir dynamically using gobject-introspection dependency
We hardcoded the typelib directory for only an arch (and a distro),
while we can just get it from gobject-introspection pkg config if tests
are enabled.
2021-07-08 04:59:10 +02:00

10 lines
315 B
Meson

test('api',
find_program('api.py', dirs: meson.current_source_dir()),
suite: ['introspection'],
env: [
'GI_TYPELIB_PATH=@0@/gtk:@1@'.format(project_build_root,
gi_dep.get_pkgconfig_variable('typelibdir')),
'LD_PRELOAD=@0@/gtk/libgtk-4.so'.format(project_build_root),
])