tests/meson: Set the typelib env var only if we have introspection

This commit is contained in:
Marco Trevisan (Treviño) 2019-12-05 14:39:45 +01:00
parent ad88a5a78f
commit d01bb41b7c

View file

@ -5,7 +5,6 @@ envs.set('G_MESSAGES_DEBUG', 'all')
# Setup paths
envs.set('MESON_SOURCE_ROOT', meson.build_root())
envs.prepend('GI_TYPELIB_PATH', join_paths(meson.build_root(), 'libfprint'))
envs.prepend('LD_LIBRARY_PATH', join_paths(meson.build_root(), 'libfprint'))
# Set FP_DEVICE_EMULATION so that drivers can adapt (e.g. to use fixed
@ -15,6 +14,8 @@ envs.set('FP_DEVICE_EMULATION', '1')
envs.set('NO_AT_BRIDGE', '1')
if get_option('introspection')
envs.prepend('GI_TYPELIB_PATH', join_paths(meson.build_root(), 'libfprint'))
if 'virtual_image' in drivers
test('virtual-image',
find_program('virtual-image.py'),