Gimp/plug-ins/metadata
Jehan 52928e04a5 Issue #7327: Cannot build GIMP3 on MSYS2 using Meson.
This is untested on my side, because the bug only happens on native
builds with meson (our CI has cross-builds with meson and native builds
with autotools and I only do cross-builds locally) but I think/hope it
will work.

Basically we were using .full_path() because these rc files were also
used as input of some configure_file() calls which doesn't like custom
target objects as input (it wants strings or file objects). Yet a bug
in meson didn't like the colon used in native Windows full paths ('C:'
and such) when used in windows.compile_resources(). This has been fixed
by Luca Bacci in: https://github.com/mesonbuild/meson/pull/9368
Yet we just cannot depend on very early meson (or worse dev meson code).

On the other hand, if the input is a custom_tgt object, it uses the
object ID which we give as first parameter of custom_target() so we know
it's appropriately named without colons (such as 'gimp_plugins_rc').
Thus we should not bump into this issue again.

For the few usage in configure_file(), I just add a .full_path() only
when needed at call time.

Last but not least, I replace the bogus `meson --version` call by a
`python3 -c 'exit()'` as advised by Eli Schwartz:
2afa019c70 (note_1284951)

The reason is that it is apparently possible (or will be when some
reimplementation of meson will be done) that the `meson` executable
itself does not exist. On the other hand, `python3` should always be
there, as a mandatory dependency of the build tool.

In order to use an appropriate `python3`, I made the
pythonmod.find_installation() check required in our build (which should
not be a problem since it's a meson requirement as well), even when the
-Dpython option is false (this one depends on other requirements too
anyway, such as version and pygobject). This way I can call this meson
variable of discovered python in my bogus call, instead of calling a
(potentially different) python from PATH environment.
2021-10-12 17:06:18 +02:00
..
.gitignore Bug 769820 - Cannot enter Iptc information when no metadata is available... 2017-07-07 18:11:39 +02:00
Makefile.am plug-ins: improve formatting of gps data in metadata-viewer. 2020-12-01 13:24:06 -05:00
meson.build Issue #7327: Cannot build GIMP3 on MSYS2 using Meson. 2021-10-12 17:06:18 +02:00
metadata-editor.c plug-ins: fix saving of XMP BAG/SEQ array values in metadata-editor 2021-09-25 14:54:45 -04:00
metadata-editor.h plug-ins: port the metadata plug-ins to GimpPlugIn and object 2019-08-27 18:28:56 +02:00
metadata-impexp.c plug-ins: clean all warnings on metadata plug-in. 2019-11-06 14:24:42 +01:00
metadata-impexp.h plug-ins: port the metadata plug-ins to GimpPlugIn and object 2019-08-27 18:28:56 +02:00
metadata-misc.h plug-ins: port the metadata plug-ins to GimpPlugIn and object 2019-08-27 18:28:56 +02:00
metadata-tags.c plug-ins: fix incorrect saving of Iptc.Application2.Caption in metadata-editor. 2021-03-24 12:51:59 -04:00
metadata-tags.h plug-ins: in metadata-editor use /iptcExt instead of /Iptc4xmpExt when saving. 2021-03-15 20:49:39 -04:00
metadata-viewer.c plug-ins: in metadata-viewer improve how we show XMP tags. 2021-09-24 15:22:49 -04:00
metadata-xml.c plug-ins: more refactoring of metadata-editor. 2021-03-12 22:05:52 -05:00
metadata-xml.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00