protocols/bonjour/meson.build

Sun, 10 Aug 2025 23:44:08 +0800

author
Gong Zhile <gongzl@stu.hebust.edu.cn>
date
Sun, 10 Aug 2025 23:44:08 +0800
branch
purple_conversation_find_message_by_id
changeset 43309
099e1dfb856b
parent 43266
19b9321a0177
permissions
-rw-r--r--

Add Purple.Conversation.find_message_by_id

The method was added so that a protocol or plugin could easily lookup
for the reference for a message. This will be especially useful when a
protocol received a quoted message but only with an id.

feature = get_option('link-local-messaging')

summary({'Link Local Messaging': feature.allowed()}, bool_yn : true,
	section : 'Protocols')

if not feature.allowed()
  subdir_done()
endif

xeme_dep = dependency('xeme')

BONJOUR_SOURCES = [
	'purplebonjourconnection.c',
	'purplebonjourcore.c',
	'purplebonjourprotocol.c',
]

BONJOUR_HEADERS = [
	'purplebonjourconnection.h',
	'purplebonjourconstants.h',
	'purplebonjourcore.h',
	'purplebonjourprotocol.h',
]

bonjour_resources = gnome.compile_resources('bonjourresource',
	'resources/bonjour.gresource.xml',
	source_dir : 'resources',
	c_name : 'purple_bonjour')
BONJOUR_SOURCES += bonjour_resources

bonjour_prpl = library('bonjournouveau',
	BONJOUR_SOURCES, BONJOUR_HEADERS,
	c_args : ['-DPURPLE_BONJOUR_COMPILATION', '-DG_LOG_USE_STRUCTURED',
	          '-DG_LOG_DOMAIN="Purple-Bonjour"'],
	gnu_symbol_visibility : 'hidden',
	dependencies : [libpurple_dep, glib, gio],
	install : true,
	install_dir : PURPLE_PLUGINDIR)

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

mercurial