pidgin/pidgin

1896a80ff8e3
Route GLib debug logging directly to the Finch debug window

Instead of flowing through purple debug, this merges some bits of the existing GLib log handler, and the purple debug printer.

Testing Done:
Open the Debug window an see some `GLib-*` outputs.

Reviewed at https://reviews.imfreedom.org/r/1057/
BONJOUR_SOURCES = [
'bonjour.c',
'bonjour.h',
'buddy.c',
'buddy.h',
'xmpp.c',
'xmpp.h',
'mdns_common.c',
'mdns_common.h',
'mdns_types.h',
'parser.c',
'parser.h',
'bonjour_ft.c',
'bonjour_ft.h'
]
if IS_WIN32
BONJOUR_SOURCES += [
'dns_sd_proxy.c', 'dns_sd_proxy.h', 'mdns_dns_sd.c', 'mdns_dns_sd.h',
'mdns_win32.c'
]
bonjour_link_args = ['-lnetapi32']
else
BONJOUR_SOURCES += ['mdns_avahi.c']
bonjour_link_args = []
endif
if DYNAMIC_BONJOUR
bonjour_resources = gnome.compile_resources('bonjourresource',
'resources/bonjour.gresource.xml',
source_dir : 'resources',
c_name : 'bonjour')
BONJOUR_SOURCES += bonjour_resources
bonjour_prpl = shared_library('bonjour', BONJOUR_SOURCES,
c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Purple-Bonjour"'],
link_args : bonjour_link_args,
dependencies : [libxml, avahi, libpurple_dep, glib, nice, ws2_32],
install : true, install_dir : PURPLE_PLUGINDIR)
devenv.append('PURPLE_PLUGIN_PATH', meson.current_build_dir())
endif