protocols/xmpp/meson.build

Thu, 17 Jul 2025 20:28:54 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Thu, 17 Jul 2025 20:28:54 -0500
changeset 43290
01edcfbfebaa
parent 43266
19b9321a0177
permissions
-rw-r--r--

IRCv3: Implement the /me command

This was kind of forgotten about, but it's here now.

Testing Done:
Watched a packet dump to verify it was sent correct and asked people in #pidgin on libera if it came through correctly.

Reviewed at https://reviews.imfreedom.org/r/4070/

feature = get_option('xmpp')

summary({'XMPP': feature.allowed()}, bool_yn: true, section : 'Protocols')

if not feature.allowed()
  subdir_done()
endif

xeme_dep = dependency('xeme')

XMPP_SOURCES = [
	'purplexmppconnection.c',
	'purplexmppcore.c',
	'purplexmppprotocol.c',
]

XMPP_HEADERS = [
	'purplexmppconnection.h',
	'purplexmppconstants.h',
	'purplexmppcore.h',
	'purplexmppprotocol.h',
]

xmpp_resources = gnome.compile_resources('xmppresource',
	'resources/xmpp.gresource.xml',
	source_dir : 'resources',
	c_name : 'purple_xmpp')
XMPP_SOURCES += xmpp_resources

xmpp_prpl = library('xmpp',
	XMPP_SOURCES + XMPP_HEADERS,
	c_args : ['-DPURPLE_XMPP_COMPILATION', '-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Purple-XMPP"'],
	gnu_symbol_visibility : 'hidden',
	dependencies : [libpurple_dep, glib, gio, hasl, xeme_dep],
	install : true,
	install_dir : PURPLE_PLUGINDIR)

devenv.append('PURPLE_PLUGIN_PATH', meson.current_build_dir())

mercurial