meson: add windows_output_debug_string option

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
[smcv: Rename to avoid using "Win32" to refer to both 32- and 64-bit]
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Marc-André Lureau 2022-07-08 19:29:06 +04:00 committed by Simon McVittie
parent f893b86e52
commit ffc063a95c
2 changed files with 10 additions and 0 deletions

View file

@ -699,6 +699,9 @@ config.set('HAVE_GIO_UNIX', have_gio_unix ? 1 : false)
config.set('GLIB_VERSION_MIN_REQUIRED', 'GLIB_VERSION_2_38')
config.set('GLIB_VERSION_MAX_ALLOWED', 'G_ENCODE_VERSION(2,44)')
windows_output_debug = get_option('windows_output_debug_string')
config.set('DBUS_USE_OUTPUT_DEBUG_STRING', windows_output_debug)
dbus_static_flags = ( get_option('default_library') == 'static'
? '-DDBUS_STATIC_BUILD'
: []

View file

@ -291,3 +291,10 @@ option(
value: 'auto',
description: 'Build XML documentation'
)
option(
'windows_output_debug_string',
type: 'boolean',
value: false,
description: 'use OutputDebugString() to log messages to Windows debug port'
)