glib/gmodule
Xavier Claessens dcfc9f689e Fix symbol visibility macros on Windows
There is currently no `dllimport` attribute on any of our function,
which prevents MSVC to optimize function calls.

To fix that issue, we need to redeclare all our visibility macros for
each of our libraries, because when compiling e.g. GIO code, we need
dllimport in GLIB headers and dllexport in GIO headers. That means they
cannot use the same GLIB_AVAILABLE_* macro.

Since that's a lot of boilerplate to copy/paste after each version bump,
this MR generate all those macros using a python script.

Also simplify the meson side by using `gnu_symbol_visibility : 'hidden'`
keyword argument instead of passing the cflag manually.

This leaves only API index to add manually into glib-docs.xml when
bumping GLib version. That file cannot be generated because Meson does
not allow passing a buit file to gnome.gtkdoc()'s main_xml kwarg
unfortunately.
2022-10-13 20:53:56 -04:00
..
tests tests: skip shared libs if default_library=static 2022-10-12 16:49:39 +01:00
AUTHORS initial import of gmodule. 1998-08-09 08:32:18 +00:00
COPYING docs: Add all used licenses in a REUSE-compatible directory 2022-05-17 17:23:34 +01:00
gmodule-ar.c Add SPDX license headers for LGPL-2.1-or-later to various files 2022-06-01 12:44:23 +01:00
gmodule-dl.c Add SPDX license headers for LGPL-2.1-or-later to various files 2022-06-01 12:44:23 +01:00
gmodule-win32.c Add SPDX license headers for LGPL-2.1-or-later to various files 2022-06-01 12:44:23 +01:00
gmodule.c Merge branch 'gmodule-invalid-la-file' into 'main' 2022-07-06 13:00:09 +00:00
gmodule.h Fix symbol visibility macros on Windows 2022-10-13 20:53:56 -04:00
gmodule.rc.in meson: build Windows resource files 2018-01-04 22:19:30 +01:00
gmoduleconf.h.in Add SPDX license headers for LGPL-2.1-or-later to various files 2022-06-01 12:44:23 +01:00
meson.build Fix symbol visibility macros on Windows 2022-10-13 20:53:56 -04:00