vcxproj target, was Re: [PATCH] Makefile: drop GEN_HDRS
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 17, 2019, 11:35 UTC
- Message-ID
- <nycvar.QRO.7.76.6.1912171231450.46@tvgsbejvaqbjf.bet>
- In-Reply-To
- <20191217052812.GB2762303@coredump.intra.peff.net>
Hi Peff,
On Tue, 17 Dec 2019, Jeff King wrote:
> (did you know that the vcxproj rule manually builds and git-adds > command-list.h? No idea what is going on there),
The idea of this is that contributors can clone the `vs/master` branch from Git for Windows repository, check it out, and open it in Visual Studio, then build.
Meaning: we cannot use any Unix shell scripts or Makefile targets to generate _anything_. That's just not an option. It is such a foreign concept in Visual Studio projects, it is very much Unix-y to think that everything uses `make` anyway and everybody has access to a Unix shell interpreter and the many Unix tools including `sed`, `awk`, etc.
Therefore we pre-generate all of those generated files, commit them, and the user does not have to worry about getting ~700MB worth of compressed data, unpack that to a ~2GB build environment that I like to call "Git for Windows SDK", _just_ to generate those files.
That's what's going on there.
Ciao, Dscho