Mozilla uses its own build system on Windows, based on the MSYS environment (which is related to MingW) and the MSVC compilers:
I've created a patch that allows ICU 50.1 to be built with this build system. To simplify maintenance, I'd like to work with the ICU team to integrate the changes into ICU.
The current patch:
The main part is a new file mh-msys-msvc, which is based on mh-cygwin-msvc. It may actually be possible to have a single file covering both environments if options can be consistently indicated with "-" rather than "/" - the other changes are very localized.
Other changes are largely to select the new file and, again, to use "-" rather than "/" for options. The change in source/data/Makefile.in is the only one needing more work.
Is the ICU team interesting in adding support for this environment? Who can I work with (I'd need someone who really understands build systems, because I don't...)?
Replying to (Comment 3 norbert):
An updated patch that makes it clearer how mh-msys-msvc differs from mh-cygwin-msvc, and how small the changes really are, is available at:
Based on that patch, does it look feasible to make one mh-msvc file handle both cygwin and msys?
Changes are small, but i think it makes more sense to have 2 files.
Additional notes from email discussions:
Sure, [files are|two] possible, and is in fact what Mozilla currently has. I was just hoping to simplify maintenance of these two quite similar configurations.
Any thoughts on how to handle source/data/Makefile.in?
I would just add a variable in the 'mh' file, and then add an "ifdef" to Makefile.in
then in Makefile.in:
Or just plain add in the mh file;
Then in Makefile.in:
rc.exe -i$(srcdir)/../common -i$(top_builddir)/common -fo$@ $(CPPFLAGS) $<
rc.exe /i$(srcdir)/../common /i$(top_builddir)/common /fo$@ $(CPPFLAGS)
something like that?
So how shall we proceed? Can one of you take the patch
and integrate it, or should I create a branch and integrate it there? I can test with MSYS; somebody else would have to try with Cygwin.
rolling some platform tickets to mow
I tested and committed the patch (with some minor adjustments) to trunk for msys/msvc build environment
looking forward to trying this