]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
meson: add windows_output_debug_string option
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 8 Jul 2022 15:29:06 +0000 (19:29 +0400)
committerSimon McVittie <smcv@collabora.com>
Wed, 13 Jul 2022 19:36:13 +0000 (20:36 +0100)
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>
meson.build
meson_options.txt

index 923c12a9ffa18e7dcf022e3163623d8f63f967f2..874be1d1ca318a8fa4c0793aeadde5eecda3f28a 100644 (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'
     : []
index 770082eaaf7e65f9368118864b7c9f293ed1928c..68f91f1994d0e9d443854bdf0e44bca6da78ec45 100644 (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'
+)