On Mon, 26 Feb 2024 at 17:58, Simon McVittie <s...@debian.org> wrote:
> I did consider that, but if I'm understanding what you propose > correctly, that would involve going through these steps for every > possible cross-tool: > > * inventing a new environment variable similar to CC and PKG_CONFIG, for > example perhaps G_IR_SCANNER in this case > * making debhelper (or dpkg) add it to the environment > * making `meson env2mfile` (or the older debcrossgen) read it from the > environment and add it to the generated cross-file That is not how it would work at all. Meson's env2mfile has a command line option that tells it to generate things for Debian package building. The idea is that then you can add any custom detection logic you could possibly want. In this way custom logic can be added in the main project in an actual programming language rather than trying to replicate the same via envvars and magic hacks.