pidgin/pidgin

Enable structured logging in Pidgin

2021-10-18, Elliott Sales de Andrade
dff0811ff40c
Parents 4d22ff23a3b7
Children 6dc7e403f8f2
Enable structured logging in Pidgin

Testing Done:
Compile only.

Reviewed at https://reviews.imfreedom.org/r/1068/
--- a/pidgin/meson.build Mon Oct 18 13:42:45 2021 -0500
+++ b/pidgin/meson.build Mon Oct 18 21:21:38 2021 -0500
@@ -239,7 +239,7 @@
libpidgin = shared_library('pidgin3',
libpidgin_SOURCES + libpidgin_built_sources + libpidgin_built_headers + ['pidginprivate.h'],
package_revision,
- c_args : ['-DPIDGIN_COMPILATION', '-DG_LOG_DOMAIN="Pidgin"'],
+ c_args : ['-DPIDGIN_COMPILATION', '-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Pidgin"'],
include_directories : [toplevel_inc, include_directories('prefs')],
version : PURPLE_LIB_VERSION,
dependencies : _libpidgin_dependencies,
@@ -252,7 +252,7 @@
pidgin = executable('pidgin3',
pidgin_SOURCES,
- c_args : ['-DPIDGIN_COMPILATION', '-DG_LOG_DOMAIN="Pidgin"'],
+ c_args : ['-DPIDGIN_COMPILATION', '-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Pidgin"'],
include_directories : toplevel_inc,
dependencies : IS_WIN32 ? [] : [libpurple_dep, libpidgin_dep],
win_subsystem : 'windows',
--- a/pidgin/plugins/disco/meson.build Mon Oct 18 13:42:45 2021 -0500
+++ b/pidgin/plugins/disco/meson.build Mon Oct 18 21:21:38 2021 -0500
@@ -12,6 +12,7 @@
xmppdisco_SOURCES += xmppdisco_resource
xmppdisco = library('xmppdisco', xmppdisco_SOURCES,
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="PidginPlugin-XMPPDisco"'],
dependencies : [libpurple_dep, libpidgin_dep, glib],
name_prefix : '',
install : true, install_dir : PIDGIN_PLUGINDIR)
--- a/pidgin/plugins/gestures/meson.build Mon Oct 18 13:42:45 2021 -0500
+++ b/pidgin/plugins/gestures/meson.build Mon Oct 18 21:21:38 2021 -0500
@@ -7,6 +7,7 @@
]
gestures = library('gestures', gestures_SOURCES,
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="PidginPlugin-Gestures"'],
dependencies : [libpurple_dep, libpidgin_dep, glib],
name_prefix : '',
install : true, install_dir : PIDGIN_PLUGINDIR)
--- a/pidgin/plugins/meson.build Mon Oct 18 13:42:45 2021 -0500
+++ b/pidgin/plugins/meson.build Mon Oct 18 21:21:38 2021 -0500
@@ -3,27 +3,32 @@
subdir('xmppconsole')
gtkbuddynote = library('gtkbuddynote', 'gtkbuddynote.c',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="PidginPlugin-BuddyNote"'],
dependencies : [libpurple_dep, libpidgin_dep, glib],
name_prefix : '',
install : true, install_dir : PIDGIN_PLUGINDIR)
iconaway = library('iconaway', 'iconaway.c',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="PidginPlugin-IconAway"'],
dependencies : [libpurple_dep, libpidgin_dep, glib],
name_prefix : '',
install : true, install_dir : PIDGIN_PLUGINDIR)
notify = library('notify', 'notify.c',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="PidginPlugin-Notify"'],
dependencies : [libpurple_dep, libpidgin_dep, glib],
name_prefix : '',
build_by_default: false,
install : false, install_dir : PIDGIN_PLUGINDIR)
relnot = library('relnot', 'relnot.c',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="PidginPlugin-RelNot"'],
dependencies : [libpurple_dep, libpidgin_dep, libsoup, glib],
name_prefix : '',
install : true, install_dir : PIDGIN_PLUGINDIR)
spellchk = library('spellchk', 'spellchk.c',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="PidginPlugin-SpellCheck"'],
dependencies : [libpurple_dep, libpidgin_dep, glib],
name_prefix : '',
build_by_default: false,
@@ -31,6 +36,7 @@
if IS_WIN32
transparency = library('transparency', 'transparency.c',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="PidginPlugin-Transparency"'],
dependencies : [libpurple_dep, libpidgin_dep, glib],
name_prefix : '',
install : true, install_dir : PIDGIN_PLUGINDIR)
@@ -38,6 +44,7 @@
if enable_unity
unity = library('unity', 'unity.c',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="PidginPlugin-Unity"'],
dependencies : [UNITY, libpurple_dep, libpidgin_dep, glib],
name_prefix : '',
install : true, install_dir : PIDGIN_PLUGINDIR)
--- a/pidgin/plugins/xmppconsole/meson.build Mon Oct 18 13:42:45 2021 -0500
+++ b/pidgin/plugins/xmppconsole/meson.build Mon Oct 18 21:21:38 2021 -0500
@@ -4,6 +4,7 @@
library('xmppconsole',
'xmppconsole.c', xmppconsole_resource,
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="PidginPlugin-XMPPConsole"'],
dependencies : [libpurple_dep, libpidgin_dep, glib],
name_prefix : '',
install : true, install_dir : PIDGIN_PLUGINDIR)