libpurple/plugins/notification-sound/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 42742
44125b8e3b27
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.

subdir_done()

if host_machine.system() not in ['haiku', 'windows']
	CANBERRA = dependency('libcanberra', version: '>= 0.30')

	library('notification-sound', 'notification-sound.c',
		c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="PurplePlugin-NotificationSound"'],
		gnu_symbol_visibility : 'hidden',
		dependencies : [libpurple_dep, glib, CANBERRA],
		name_prefix : '',
		install : true,
		install_dir : PURPLE_PLUGINDIR)

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

	settings_schemas = [
	  'im.pidgin.Purple.plugin.NotificationSound.gschema.xml',
	]

	install_data(settings_schemas, install_dir: schemas_dir)
	gnome.post_install(glib_compile_schemas: true)

	# Compile the schemas in the current directory; this is only useful for testing
	gnome.compile_schemas(depend_files: files(settings_schemas))
endif

mercurial