On Tue, 28 Jul 2020 at 15:36, John Scott <jsc...@posteo.net> wrote: > I'm not close to being finished yet, but I'm working on writing Meson > cross files that would be suitable for inclusion. Meson recommends that > distros including cross-toolchains ship these somehow, be it with the > toolchain or in a separate package. > > No cross files seem to be packaged yet. I've cc'd the Meson maintainer > if he has any thoughts, but I think mingw-w64-common seems a fine place. > > I wonder if you would prefer one of two scenarios: > > * Include two cross files: one for i686, another for x86_64. > Let the alternatives system handle the -posix and -win32 choice. > or > * Include four cross files: one for each arch and threads combination. > > Thanks for packaging MinGW-w64! It's a treasure I'd like to make more > useful out-of-the-box.
The way things are done in Debian is that Meson ships a script called debcrossgen that automatically generates cross files for a given setup. The best solution would probably be to extend that script to also generate cross files for mingw. There is a bit of a policy question, though. Currently debcrossgen is optimized for Debian package building and it works quite well with it. Presumably these cross files would be used for other things, such as building Windows packages/installers. I don't have personal experience with that work flow, so I don't know how well these two would tie together (most likely quite well, but you can never tell about these things). Thus if someone with more hands on experience could comment on the feasibility, it would be useful. Thanks,