build: Define G_LOG_USE_STRUCTURED in GDK

We want to use the new structured logging support in GLib.
This commit is contained in:
Emmanuele Bassi
2017-04-28 22:40:58 +01:00
parent 9e8ba70d69
commit d09ccaaf35
2 changed files with 6 additions and 2 deletions

View File

@@ -63,6 +63,6 @@ executable('gtk4-broadwayd',
clienthtml_h, broadwayjs_h,
'broadwayd.c', 'broadway-server.c', 'broadway-buffer.c', 'broadway-output.c',
include_directories: [confinc, gdkinc],
c_args: ['-DGDK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"'],
c_args: ['-DGDK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"', '-DG_LOG_USE_STRUCTURED=1', ],
dependencies : [broadwayd_syslib, gdk_deps],
install : true)

View File

@@ -202,7 +202,11 @@ libgdk = static_library('gdk',
sources: [gdk_sources, gdk_backends_gen_headers, gdkconfig],
dependencies: gdk_deps,
include_directories: [confinc, xinc, wlinc],
c_args: ['-DGDK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"'] + common_cflags,
c_args: [
'-DGDK_COMPILATION',
'-DG_LOG_DOMAIN="Gdk"',
'-DG_LOG_USE_STRUCTURED=1',
] + common_cflags,
link_with: gdk_backends,
link_args: common_ldflags)