gimp/plug-ins/file-raw
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 784261 - Have some nice error message for formats known to work... 2017-07-24 22:19:53 +02:00
Makefile.am plug-ins: port file-raw plug-ins to GimpImage/GimpDrawable. 2019-08-22 15:54:36 +02:00
file-darktable-export-on-exit.lua plug-ins: update darktable lua script to API change in darktable master 2021-02-15 17:11:32 +00:00
file-darktable-get-size.lua Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
file-darktable.c plug-ins: more g_file_get_path() changed to g_file_peek_path(). 2021-10-01 22:59:53 +02:00
file-raw-formats.h Issue #4618: support Canon CR3. 2020-03-14 23:56:45 +01:00
file-raw-placeholder.c plug-ins: it's "darktable" not "placeholder"... 2019-09-07 19:59:48 +02:00
file-raw-utils.c Issue #2179: Get rid of the win32_use_hkcu flag. 2018-09-19 15:01:46 +02:00
file-raw-utils.h Issue #2179: Get rid of the win32_use_hkcu flag. 2018-09-19 15:01:46 +02:00
file-rawtherapee.c plug-ins: more g_file_get_path() changed to g_file_peek_path(). 2021-10-01 22:59:53 +02:00
meson.build Issue #7327: Cannot build GIMP3 on MSYS2 using Meson. 2021-10-12 17:06:18 +02:00