meson: rename dbus option to dbus-tests

This does not prevent the building of code that needs dbus,
it only prevents building and running tests that need dbus-daemon
to be installed.
This commit is contained in:
George Kiagiadakis 2022-10-18 15:54:55 +03:00
parent bfd70aff29
commit 5622805178
3 changed files with 4 additions and 4 deletions

View file

@ -2,8 +2,6 @@ option('introspection', type : 'feature', value : 'auto',
description : 'Generate gobject-introspection bindings')
option('doc', type : 'feature', value : 'auto',
description: 'Enable documentation.')
option('dbus', type : 'boolean', value : 'true',
description: 'Enable dbus support')
option('system-lua', type : 'boolean', value : 'false',
description : 'Use lua from the system instead of the bundled one')
option('system-lua-version',
@ -31,3 +29,5 @@ option('glib-supp', type : 'string', value : '',
description: 'The glib.supp valgrind suppressions file to be used when running valgrind')
option('tests', type : 'boolean', value : 'true',
description : 'Build the test suite')
option('dbus-tests', type : 'boolean', value : 'true',
description: 'Enable running tests that need a dbus-daemon')

View file

@ -7,7 +7,7 @@ common_args = [
'-DG_LOG_USE_STRUCTURED',
]
if get_option('dbus')
if get_option('dbus-tests')
test(
'test-reserve-device',
executable('test-reserve-device', 'reserve-device.c',

View file

@ -91,7 +91,7 @@ test(
env: common_env,
)
if get_option('dbus')
if get_option('dbus-tests')
test(
'test-dbus',
executable('test-dbus', 'dbus.c',