From ffc063a95ce23a25bab10a082eca1b327c01df5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Lureau?= Date: Fri, 8 Jul 2022 19:29:06 +0400 Subject: [PATCH] meson: add windows_output_debug_string option MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau [smcv: Rename to avoid using "Win32" to refer to both 32- and 64-bit] Signed-off-by: Simon McVittie --- meson.build | 3 +++ meson_options.txt | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/meson.build b/meson.build index 923c12a9f..874be1d1c 100644 --- a/meson.build +++ b/meson.build @@ -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' : [] diff --git a/meson_options.txt b/meson_options.txt index 770082eaa..68f91f199 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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' +) -- 2.47.3