mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-21 16:50:42 +01:00
meson.build: explicitly convert a boolean to string
Fixes: DEPRECATION: Variable substitution with boolean value 'MESON_ENABLED_DEBUG_GUI' is deprecated. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1445>
This commit is contained in:
parent
c6813dc7d8
commit
a0dc0997f5
2 changed files with 2 additions and 2 deletions
|
|
@ -766,7 +766,7 @@ executable('ptraccel-debug',
|
|||
if is_debug_build
|
||||
config_tool_option_test = configuration_data()
|
||||
config_tool_option_test.set('DISABLE_WARNING', 'yes')
|
||||
config_tool_option_test.set('MESON_ENABLED_DEBUG_GUI', get_option('debug-gui'))
|
||||
config_tool_option_test.set('MESON_ENABLED_DEBUG_GUI', get_option('debug-gui').to_string())
|
||||
config_tool_option_test.set('MESON_BUILD_ROOT', meson.current_build_dir())
|
||||
config_tool_option_test.set('TOOL_PATH', libinput_tool.full_path())
|
||||
tool_option_test = configure_file(input: 'tools/test_tool_option_parsing.py',
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ class LibinputDebugGui(LibinputTool):
|
|||
assert subtool == "debug-gui"
|
||||
super().__init__(subtool)
|
||||
|
||||
debug_gui_enabled = "@MESON_ENABLED_DEBUG_GUI@" == "True"
|
||||
debug_gui_enabled = "@MESON_ENABLED_DEBUG_GUI@".lower() == "true"
|
||||
if not debug_gui_enabled:
|
||||
pytest.skip()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue