From ea8c09f14da4b931cdadbabe2be315f6747ac7b7 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 14 Aug 2018 16:00:13 +0100 Subject: build: Enable G_LOG_USE_STRUCTURED=1 This enables structured logging for all parts of dconf, which will make it easier to check for certain log messages in the unit tests. Signed-off-by: Philip Withnall --- common/meson.build | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'common') diff --git a/common/meson.build b/common/meson.build index 90245b7..58e0fa8 100644 --- a/common/meson.build +++ b/common/meson.build @@ -17,14 +17,12 @@ sources = files( 'dconf-paths.c', ) -cflags = ['-DG_LOG_DOMAIN="dconf"'] - libdconf_common = static_library( 'dconf-common', sources: sources, include_directories: top_inc, dependencies: glib_dep, - c_args: cflags, + c_args: dconf_c_args, pic: true, ) @@ -33,14 +31,12 @@ libdconf_common_dep = declare_dependency( link_whole: libdconf_common, ) -cflags += cc.get_supported_arguments('-fvisibility=hidden') - libdconf_common_hidden = static_library( 'dconf-common-hidden', sources: sources, include_directories: top_inc, dependencies: glib_dep, - c_args: cflags, + c_args: dconf_c_args + cc.get_supported_arguments('-fvisibility=hidden'), pic: true, ) -- cgit v1.2.1