libpurple/plugins/notification-sound/meson.build

Wed, 03 Apr 2024 16:32:56 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Wed, 03 Apr 2024 16:32:56 -0500
changeset 42655
db971edd4b59
parent 42446
bcaffaf9588f
child 42732
7c0d5898fa96
permissions
-rw-r--r--

Disable notification sound on Haiku as it doesn't have canberra

Testing Done:
Build on linux and haiku without issue.

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

42655
db971edd4b59 Disable notification sound on Haiku as it doesn't have canberra
Gary Kramlich <grim@reaperworld.com>
parents: 42446
diff changeset
1 if host_machine.system() not in ['haiku', 'windows']
40556
3fb07a4b34dd Disable notification-sound on windows
Gary Kramlich <grim@reaperworld.com>
parents: 40464
diff changeset
2 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
3
40556
3fb07a4b34dd Disable notification-sound on windows
Gary Kramlich <grim@reaperworld.com>
parents: 40464
diff changeset
4 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
5 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
6 gnu_symbol_visibility : 'hidden',
40556
3fb07a4b34dd Disable notification-sound on windows
Gary Kramlich <grim@reaperworld.com>
parents: 40464
diff changeset
7 dependencies : [libpurple_dep, glib, CANBERRA],
3fb07a4b34dd Disable notification-sound on windows
Gary Kramlich <grim@reaperworld.com>
parents: 40464
diff changeset
8 name_prefix : '',
3fb07a4b34dd Disable notification-sound on windows
Gary Kramlich <grim@reaperworld.com>
parents: 40464
diff changeset
9 install : true, install_dir : PURPLE_PLUGINDIR)
41066
00e6bda3ef95 Add a Meson devenv configuration.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41011
diff changeset
10
00e6bda3ef95 Add a Meson devenv configuration.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41011
diff changeset
11 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
12
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
13 settings_schemas = [
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
14 '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
15 ]
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
16
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
17 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
18 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
19
91aacfd62b5f Port notification-sound plugin to GSettings
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41317
diff changeset
20 # 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
21 gnome.compile_schemas(depend_files: files(settings_schemas))
40556
3fb07a4b34dd Disable notification-sound on windows
Gary Kramlich <grim@reaperworld.com>
parents: 40464
diff changeset
22 endif

mercurial