mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 08:26:14 +01:00
dcfc9f689e
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. |
||
---|---|---|
.. | ||
.gitignore | ||
codeset.m4 | ||
config.charset | ||
glibc21.m4 | ||
libcharset-glib.patch | ||
libcharset.h | ||
localcharset.c | ||
localcharset.h | ||
make-patch.sh | ||
meson.build | ||
README | ||
ref-add.sin | ||
ref-del.sin | ||
update.sh |
The sources are derived from Bruno Haible's libcharset library included with libiconv: http//www.gnu.org/software/libiconv The 'update.sh' script in this directory, when pointed at the original sources updates the files in this directory (and elsewhere in the GLib distribution) to the new version The 'make-patch.sh' script in this directory regenerates the patch files included in this directory from a copy of the pristine sources and the files in this directory. The license on the portions from libiconv portions is reproduced below. Owen Taylor 26 September 2001 Updated to libiconv-1.12. Behdad Esfahbod 20 May 2008 ==== /* Determine a canonical name for the current locale's character encoding. Copyright (C) 2000-2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, see <http://www.gnu.org/licenses/>. */ /* Written by Bruno Haible <haible@clisp.cons.org>. */