glib/gio/xdgmime
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
..
.gitignore
meson.build Fix symbol visibility macros on Windows 2022-10-13 20:53:56 -04:00
xdgmime.c xdgmime: fix double free 2022-06-17 08:49:03 -05:00
xdgmime.h Revert "Don't compile some unused functions in gio/xdgmime/" 2021-11-01 12:06:26 +00:00
xdgmimealias.c Revert "Don't compile some unused functions in gio/xdgmime/" 2021-11-01 12:06:26 +00:00
xdgmimealias.h Revert "Don't compile some unused functions in gio/xdgmime/" 2021-11-01 12:06:26 +00:00
xdgmimecache.c xdgmime: Fix broken file:// content type lookups for webkitgtk 2022-06-01 14:02:53 +01:00
xdgmimecache.h Revert "Don't compile some unused functions in gio/xdgmime/" 2021-11-01 12:06:26 +00:00
xdgmimeglob.c Revert "Don't compile some unused functions in gio/xdgmime/" 2021-11-01 12:06:26 +00:00
xdgmimeglob.h Revert "Don't compile some unused functions in gio/xdgmime/" 2021-11-01 12:06:26 +00:00
xdgmimeicon.c Revert "Don't compile some unused functions in gio/xdgmime/" 2021-11-01 12:06:26 +00:00
xdgmimeicon.h Revert "Don't compile some unused functions in gio/xdgmime/" 2021-11-01 12:06:26 +00:00
xdgmimeint.c gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2021-09-23 19:23:33 +02:00
xdgmimeint.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2021-09-23 19:23:33 +02:00
xdgmimemagic.c xdgmime: Fix unused-variable warning 2022-01-25 20:18:41 +01:00
xdgmimemagic.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2021-09-23 19:23:33 +02:00
xdgmimeparent.c Revert "Don't compile some unused functions in gio/xdgmime/" 2021-11-01 12:06:26 +00:00
xdgmimeparent.h Revert "Don't compile some unused functions in gio/xdgmime/" 2021-11-01 12:06:26 +00:00