trivial: workaround for ERROR: Unknown variable "gcab"

This change enables the use of tests in Chrome OS. Fixes #3270
This commit is contained in:
Daniel Campello 2021-09-24 09:38:24 -06:00 committed by Richard Hughes
parent 3d7d49c1e1
commit 4fa2a7604a

View File

@ -250,7 +250,6 @@ if build_daemon
endif
libm = cc.find_library('m', required: false)
libgcab = dependency('libgcab-1.0', version : '>= 1.0', fallback : ['gcab', 'gcab_dep'])
gcab = find_program('gcab', required : get_option('tests'))
bashcomp = dependency('bash-completion', required: false)
if host_machine.system() != 'freebsd'
python3 = find_program('python3')
@ -587,6 +586,7 @@ if build_daemon and get_option('polkit')
subdir('policy')
endif
if build_standalone
gcab = find_program('gcab', required : get_option('tests'))
subdir('data')
subdir('po')
subdir('libfwupdplugin')