glib/docs/reference/gobject
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
..
images add missing image 2005-04-22 18:34:41 +00:00
xml docs: Change Bugzilla references to GitLab 2018-06-15 13:04:39 +01:00
glib-genmarshal.xml docs: Document generated headers caveats for genmarshal 2020-02-25 03:14:50 +05:30
glib-mkenums.xml docs: Mention alternatives for defining enumeration types 2022-06-30 01:46:54 +01:00
gobject-docs.xml gversionmacros: Add version macros for GLib 2.74 2022-03-28 12:55:20 +01:00
gobject-overrides.txt Improve separation of generic non-generic parts and dependencies. 2000-09-06 15:01:07 +00:00
gobject-query.xml docs: Improve man page consistency 2012-08-03 23:36:45 -04:00
gobject-sections.txt Fix symbol visibility macros on Windows 2022-10-13 20:53:56 -04:00
meson.build Fix symbol visibility macros on Windows 2022-10-13 20:53:56 -04:00
tut_gobject.xml docs: Use G_PARAM_STATIC_STRINGS in examples and explain it more 2022-05-20 12:57:36 +01:00
tut_gsignal.xml Make clear in doc that signals are emitted synchroniously 2022-01-18 08:53:20 +00:00
tut_gtype.xml gobject: Drop use of volatile from get_type() macros 2020-11-20 14:40:19 +00:00
tut_howto.xml docs: Use G_PARAM_STATIC_STRINGS in examples and explain it more 2022-05-20 12:57:36 +01:00
tut_intro.xml docs: General cleanups and rewording in the GObject concepts docs 2015-08-21 15:15:53 +01:00
tut_tools.xml general: Remove a few unhelpful references to ‘master’ 2019-04-25 09:25:49 +01:00
version.xml.in Add version info to API docs. 2002-11-23 01:37:17 +00:00