tests/meson: Set the typelib env var only if we have introspection
This commit is contained in:
parent
ad88a5a78f
commit
d01bb41b7c
1 changed files with 2 additions and 1 deletions
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue