pidgin/pidgin

Disable notification-sound on windows

2020-10-13, Gary Kramlich
3fb07a4b34dd
Parents 0bf5825aab0a
Children 5c44a08bdbcd
Disable notification-sound on windows

Disable the notification sounds plugin on windows as canberra is not available in msys2

Testing Done:
Deleted the notification-sound.so on linux and rebuilt to make sure it got rebuilt.

Reviewed at https://reviews.imfreedom.org/r/162/
--- a/libpurple/plugins/notification-sound/meson.build Tue Oct 13 00:42:59 2020 -0500
+++ b/libpurple/plugins/notification-sound/meson.build Tue Oct 13 21:26:55 2020 -0500
@@ -1,11 +1,13 @@
if PLUGINS
-CANBERRA = dependency('libcanberra', version: '>= 0.30')
+if target_machine.system() != 'windows'
+ CANBERRA = dependency('libcanberra', version: '>= 0.30')
-library('notification-sound', 'notification-sound.c',
- dependencies : [libpurple_dep, glib, CANBERRA],
- name_prefix : '',
- install : true, install_dir : PURPLE_PLUGINDIR)
+ library('notification-sound', 'notification-sound.c',
+ dependencies : [libpurple_dep, glib, CANBERRA],
+ name_prefix : '',
+ install : true, install_dir : PURPLE_PLUGINDIR)
+endif
endif