synaptics-rmi: fix meson configure when building tests

if synaptics-rmi is disabled and gnutls is not used, the configure fails

move the synaptics-rmi test check behind the "plugin_synaptics_rmi" option
This commit is contained in:
James Beddek 2021-10-30 19:55:49 +13:00 committed by Mario Limonciello
parent 3db727d460
commit d7bedc20af

View File

@ -39,8 +39,6 @@ shared_module('fu_plugin_synaptics_rmi',
], ],
) )
endif
if get_option('tests') if get_option('tests')
install_data(['tests/synaptics-rmi-0x.builder.xml','tests/synaptics-rmi-10.builder.xml'], install_data(['tests/synaptics-rmi-0x.builder.xml','tests/synaptics-rmi-10.builder.xml'],
install_dir: join_paths(installed_test_datadir, 'tests')) install_dir: join_paths(installed_test_datadir, 'tests'))
@ -73,3 +71,4 @@ if get_option('tests')
) )
test('synaptics-rmi-self-test', e, env : env) test('synaptics-rmi-self-test', e, env : env)
endif endif
endif