libpurple/plugins/notification-sound/meson.build

Wed, 24 Apr 2024 01:02:13 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Wed, 24 Apr 2024 01:02:13 -0500
changeset 42742
44125b8e3b27
parent 42732
7c0d5898fa96
permissions
-rw-r--r--

Really disable some plugins

Previous we disabled some plugins that we want to keep around but can't port
yet by setting `build_by_default` to `false`. However, this isn't working on
many machines. I haven't figured out why, so instead lets just make their
meson.build files exit early.

Testing Done:
Ran the turtles on a machine that was still building these plugins.

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

42742
44125b8e3b27 Really disable some plugins
Gary Kramlich <grim@reaperworld.com>
parents: 42732
diff changeset
1 subdir_done()
44125b8e3b27 Really disable some plugins
Gary Kramlich <grim@reaperworld.com>
parents: 42732
diff changeset
2
42655
db971edd4b59 Disable notification sound on Haiku as it doesn't have canberra
Gary Kramlich <grim@reaperworld.com>
parents: 42446
diff changeset
3 if host_machine.system() not in ['haiku', 'windows']
40556
3fb07a4b34dd Disable notification-sound on windows
Gary Kramlich <grim@reaperworld.com>
parents: 40464
diff changeset
4 CANBERRA = dependency('libcanberra', version: '>= 0.30')
40464
190b65759b4c Add a new plugin outside of the current sound api that uses libcanbbera for new im and chat messages.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5
40556
3fb07a4b34dd Disable notification-sound on windows
Gary Kramlich <grim@reaperworld.com>
parents: 40464
diff changeset
6 library('notification-sound', 'notification-sound.c',
41107
1570d8844e9a Enable structured logging in libpurple
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41066
diff changeset
7 c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="PurplePlugin-NotificationSound"'],
42446
bcaffaf9588f Mark all libpurple symbol visibility as hidden
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41662
diff changeset
8 gnu_symbol_visibility : 'hidden',
40556
3fb07a4b34dd Disable notification-sound on windows
Gary Kramlich <grim@reaperworld.com>
parents: 40464
diff changeset
9 dependencies : [libpurple_dep, glib, CANBERRA],
3fb07a4b34dd Disable notification-sound on windows
Gary Kramlich <grim@reaperworld.com>
parents: 40464
diff changeset
10 name_prefix : '',
42732
7c0d5898fa96 Remove the old conversations API
Gary Kramlich <grim@reaperworld.com>
parents: 42655
diff changeset
11 install : true,
42742
44125b8e3b27 Really disable some plugins
Gary Kramlich <grim@reaperworld.com>
parents: 42732
diff changeset
12 install_dir : PURPLE_PLUGINDIR)
41066
00e6bda3ef95 Add a Meson devenv configuration.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41011
diff changeset
13
00e6bda3ef95 Add a Meson devenv configuration.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41011
diff changeset
14 devenv.append('PURPLE_PLUGIN_PATH', meson.current_build_dir())
41662
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
15
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
16 settings_schemas = [
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
17 'im.pidgin.Purple.plugin.NotificationSound.gschema.xml',
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
18 ]
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
19
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
20 install_data(settings_schemas, install_dir: schemas_dir)
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
21 gnome.post_install(glib_compile_schemas: true)
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
22
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
23 # Compile the schemas in the current directory; this is only useful for testing
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
24 gnome.compile_schemas(depend_files: files(settings_schemas))
40556
3fb07a4b34dd Disable notification-sound on windows
Gary Kramlich <grim@reaperworld.com>
parents: 40464
diff changeset
25 endif

mercurial