gimp/libgimpthumb
Jehan 106f2a061d Issue #8145: meson: generation of '*-enums.c' files.
Our meson build system was not properly building the enums.c file,
because they are versionned.

I did a similar trick as what I did for the pdbgen, which is that I used
a wrapper script around the existing perl script, which sets proper
options and generate a stamp file in the end (which is considered by
meson as the actual custom target, not the C file since it is generated
in the source dir).

The most important part is that the stamp file is a generated header
source (not just a random text file) which is **included** by the
generated C file. This is what will force meson to regenerate the C file
if the header is updated, **then** build using this new version, not use
an outdated versionned version (which would make for hard to diagnose
bugs), through the indirection of the intermediate stamp header.

See #4201.
See also: https://github.com/mesonbuild/meson/issues/10196#issuecomment-1080742592
2022-08-01 19:59:53 +02:00
..
.gitignore libgimp*: add GI's .dirstamp to .gitigore 2019-08-03 19:50:17 +02:00
Makefile.am libgimpthumb: do not scan gimpthumb-enums.c for introspection. 2019-07-28 20:59:10 +02:00
Makefile.gi libgimp*: move GObject Introspection into libgimp/. 2019-08-08 15:59:44 +02:00
gimp-thumbnail-list.c libgimpthumb: fix "assignment discards ‘const’ qualifier" warning. 2013-12-05 22:18:15 +13:00
gimpthumb-enums.h libgimpthumb: update the URL of the thumbnail spec 2018-07-14 13:25:41 +02:00
gimpthumb-error.c Use "Returns:" to annotate return values 2019-08-03 07:53:47 +00:00
gimpthumb-error.h libgimpthumb: update the URL of the thumbnail spec 2018-07-14 13:25:41 +02:00
gimpthumb-types.h libgimpthumb: update the URL of the thumbnail spec 2018-07-14 13:25:41 +02:00
gimpthumb-utils.c libgimp*, plug-ins: fix some warnings 2021-05-24 20:36:31 +00:00
gimpthumb-utils.h libgimpthumb: update the URL of the thumbnail spec 2018-07-14 13:25:41 +02:00
gimpthumb.def libgimpthumb: new function gimp_thumb_get_thumb_base_dir() 2013-12-05 21:20:28 +13:00
gimpthumb.h libgimpthumb: update the URL of the thumbnail spec 2018-07-14 13:25:41 +02:00
gimpthumbnail.c core: function documentation clarification 2021-05-24 11:04:44 +00:00
gimpthumbnail.h libgimpthumb: update the URL of the thumbnail spec 2018-07-14 13:25:41 +02:00
meson.build Issue #8145: meson: generation of '*-enums.c' files. 2022-08-01 19:59:53 +02:00