pidgin/plugins/idle-xscreensaver/meson.build

Thu, 02 Nov 2023 21:24:43 -0500

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Thu, 02 Nov 2023 21:24:43 -0500
changeset 42468
3ea8d5befbe4
parent 42459
e0a24938f214
permissions
-rw-r--r--

Mark all Pidgin 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-17839](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-17839

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

if IS_WIN32
	subdir_done()
endif

GTK4_X11 = dependency('gtk4-x11', required : false)

if GTK4_X11.found()
	shared_module('idle-xscreensaver', 'idle-xscreensaver.c',
	    c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Purple-IdleXScreenSaver"'],
	    gnu_symbol_visibility : 'hidden',
	    dependencies : [libpurple_dep, libpidgin_dep, GTK4_X11],
	    name_prefix : '',
	    install : true, install_dir : PIDGIN_PLUGINDIR)

	devenv.append('PIDGIN_PLUGIN_PATH', meson.current_build_dir())
endif

mercurial