More boolean.to_string() fixes in meson.builds

This commit is contained in:
Tamás Bálint Misius 2023-08-22 00:22:43 +02:00
parent bbefc9970f
commit 3ab697d05f
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2
3 changed files with 6 additions and 6 deletions

View File

@ -9,4 +9,4 @@ elif host_platform == 'emscripten'
else
client_files += files('Libcurl.cpp')
endif
conf_data.set('NOHTTP', not enable_http ? 'true' : 'false')
conf_data.set('NOHTTP', (not enable_http).to_string())

View File

@ -73,9 +73,9 @@ else
'DdirCommon.cpp',
)
endif
conf_data.set('SET_WINDOW_ICON', set_window_icon ? 'true' : 'false')
conf_data.set('SET_WINDOW_ICON', set_window_icon.to_string())
conf_data.set('PATH_SEP_CHAR', path_sep_char)
conf_data.set('USE_BLUESCREEN', use_bluescreen ? 'true' : 'false')
conf_data.set('USE_BLUESCREEN', use_bluescreen.to_string())
can_install = get_option('can_install')
if can_install == 'auto'
@ -90,5 +90,5 @@ endif
if can_install != 'no' and can_install_enforce_no
error('cannot provide install support, configure with -Dcan_install=no to fix this error')
endif
conf_data.set('CAN_INSTALL', can_install != 'no' ? 'true' : 'false')
conf_data.set('INSTALL_CHECK', can_install == 'yes_check' ? 'true' : 'false')
conf_data.set('CAN_INSTALL', (can_install != 'no').to_string())
conf_data.set('INSTALL_CHECK', (can_install == 'yes_check').to_string())

View File

@ -29,7 +29,7 @@ if not enable_http or host_platform == 'emscripten'
else
luaconsole_files += files('LuaSocketTCPHttp.cpp')
endif
conf_data.set('LUACONSOLE', lua_variant != 'none' ? 'true' : 'false')
conf_data.set('LUACONSOLE', (lua_variant != 'none').to_string())
subdir('luascripts')