Since we build a staticlib, we don't need a main() function and it can
be confusing. The goal is to extract the dependencies that we'll use
when building the other plugins.
Despite meson officially "supporting" Rust it does support working with
Cargo (Rust package manager and build system) so we need to have
a bit of custom system for using it. `cargo-output.py` to build and copy
the output files (static archive and depfile) to the expected location
by meson. And `cargo-rustc-static-libs.py` to get the common linker args
for a bar-bone std rust program (ie without dependencies).
Those two scripts would potentially be removed if meson and/or cargo
became more flexible and/or intelligent.
That's assuming we get a full path to the file, it may just be a command in the PATH.
It is fine if that command doesn't exist, we check the error of the subprocess.run() call.
... to restore compatiblity with Python 3.6.
This was initroduced in commit 177d049950,
which broke compilation on openSUSE Leap 15, which uses Python 3.6 als
default Python interpreter.
Fixes#28636
Signed-off-by: Olaf Hering <olaf@aepfle.de>
The target qmake uses the native qmake with this extra parameter.
And add some extra logs.
We don't want to rebuild the target qmake (and the whole Qt) just to get this
script.