protocols/demo/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.

43247
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
1 feature = get_option('demo')
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
2
43266
19b9321a0177 Disable SIP by default and update the protocol summaries to reflect what will be built
Gary Kramlich <grim@reaperworld.com>
parents: 43247
diff changeset
3 summary({'Demo': feature.allowed()}, bool_yn: true, section : 'Protocols')
43247
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
4
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
5 if not feature.allowed()
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
6 subdir_done()
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
7 endif
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
8
41224
32a7796a2a36 Create a demo protocol plugin that right now just adds contacts and statuses.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 DEMO_SOURCES = [
43066
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents: 42854
diff changeset
10 'purpledemocommands.c',
850400fb36c0 Add an edited command to the demo protocol
Gary Kramlich <grim@reaperworld.com>
parents: 42854
diff changeset
11 'purpledemocommands.h',
41999
91af085cf35b Update the demo protocol plugin to use the new create_connection virtual method
Gary Kramlich <grim@reaperworld.com>
parents: 41968
diff changeset
12 'purpledemoconnection.c',
91af085cf35b Update the demo protocol plugin to use the new create_connection virtual method
Gary Kramlich <grim@reaperworld.com>
parents: 41968
diff changeset
13 'purpledemoconnection.h',
41224
32a7796a2a36 Create a demo protocol plugin that right now just adds contacts and statuses.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 'purpledemocontacts.c',
32a7796a2a36 Create a demo protocol plugin that right now just adds contacts and statuses.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 'purpledemocontacts.h',
32a7796a2a36 Create a demo protocol plugin that right now just adds contacts and statuses.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 'purpledemoplugin.c',
32a7796a2a36 Create a demo protocol plugin that right now just adds contacts and statuses.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 'purpledemoplugin.h',
32a7796a2a36 Create a demo protocol plugin that right now just adds contacts and statuses.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 'purpledemoprotocol.c',
32a7796a2a36 Create a demo protocol plugin that right now just adds contacts and statuses.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 'purpledemoprotocol.h',
41459
53a9d24d5be2 Add some protocol actions to demo protocol
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41285
diff changeset
20 'purpledemoprotocolactions.c',
53a9d24d5be2 Add some protocol actions to demo protocol
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41285
diff changeset
21 'purpledemoprotocolactions.h',
42304
51a419226147 A basic context menu for PurpleContactInfo
Gary Kramlich <grim@reaperworld.com>
parents: 42073
diff changeset
22 'purpledemoprotocolcontacts.c',
51a419226147 A basic context menu for PurpleContactInfo
Gary Kramlich <grim@reaperworld.com>
parents: 42073
diff changeset
23 'purpledemoprotocolcontacts.h',
42323
119cc14f9c12 Port the Demo protocol plugin to PurpleProtocolConversation
Gary Kramlich <grim@reaperworld.com>
parents: 42304
diff changeset
24 'purpledemoprotocolconversation.c',
119cc14f9c12 Port the Demo protocol plugin to PurpleProtocolConversation
Gary Kramlich <grim@reaperworld.com>
parents: 42304
diff changeset
25 'purpledemoprotocolconversation.h',
41224
32a7796a2a36 Create a demo protocol plugin that right now just adds contacts and statuses.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 ]
32a7796a2a36 Create a demo protocol plugin that right now just adds contacts and statuses.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27
43247
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
28 demo_resources = gnome.compile_resources('purpledemoresource',
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
29 'resources/purpledemo.gresource.xml',
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
30 source_dir : 'resources',
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
31 c_name : 'purple_demo')
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
32 DEMO_SOURCES += demo_resources
41224
32a7796a2a36 Create a demo protocol plugin that right now just adds contacts and statuses.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33
43247
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
34 shared_library('demo', DEMO_SOURCES,
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
35 c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Purple-Demo"'],
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
36 gnu_symbol_visibility : 'hidden',
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
37 dependencies : [glib, json, libpurple_dep],
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
38 install : true,
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
39 install_dir : PURPLE_PLUGINDIR)
41224
32a7796a2a36 Create a demo protocol plugin that right now just adds contacts and statuses.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40
43247
197c541b3e7c Add discrete options for protocol plugins
Gary Kramlich <grim@reaperworld.com>
parents: 43066
diff changeset
41 devenv.append('PURPLE_PLUGIN_PATH', meson.current_build_dir())

mercurial