Fri, 27 Oct 2023 00:27:12 -0500
Mark all libpurple symbol visibility as hidden
This will match behaviour on Windows, so it will prevent not tagging the symbols with the correct export macro.
This closes [PIDGIN-17838](https://issues.imfreedom.org/issue/PIDGIN-17838), as successfully compiling with this flag means all symbols have been correctly marked.
Testing Done:
Compiled on Linux and Windows.
Bugs closed: PIDGIN-17838
Reviewed at https://reviews.imfreedom.org/r/2744/
|
41317
fa45763d9c71
Use correct check for host system
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41107
diff
changeset
|
1 | if host_machine.system() != '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 |