Fix build_init vcxproj to correctly detect changes in config.h.
authorlateralusX <lateralusx.github@gmail.com>
Wed, 28 Dec 2016 15:50:54 +0000 (16:50 +0100)
committerlateralusX <lateralusx.github@gmail.com>
Wed, 28 Dec 2016 15:50:54 +0000 (16:50 +0100)
commit23b8b5d387d3be6c2a24dc8ffcdb3f7c20350eb6
treec9761ba18e3efccf0e89d7a0496a2d9e960e8811
parentf997a6e0de836c3ec9f8a34bca2dc31b1760e5be
Fix build_init vcxproj to correctly detect changes in config.h.

build_init project doesn't detect changes done in config.h. This is needed in order
for build_init to replace config.h with winconfig.h and backup cygconfig.h. This is
normally an issue if you do a reconfigure and build using make and then msbuild. The msbuild
will then fail, since config.h is still the cygwin version. Solution is to do a rebuild all
that will trigger build_init. This fix will make sure that build_init gets invoked if there has been a change to config.h.

There was also a very old issue with the first copy of config.h -> cygconfig.h. This is only done
if there is no cygconfig.h in the directory. This means that the cygconfig.h will not be update until
deleted and a new build_init has been invoked. This fix will make sure cygconfig.h is always updated
if config.h is the cygwin generated version (not already replaced with winconfig.h).
msvc/backup-config-files.ps1 [new file with mode: 0644]
msvc/build-init.vcxproj
msvc/build-init.vcxproj.filters
msvc/mono.sln
msvc/winsetup.bat