Code Review #1178
Bug #845: Speed on windows systems
Make dependency checking optional
For NewGRF projets, running a dependency calculation is next to useless.
Therefore, I propose to disable it.
Attached patch introduces a DO_DEP_CHECK variable that controls whether or not to perform dependency checking.
For now, I have left it as a seperate setting. but you could consider making it depend on the type of project.
With thanks to Foobar for testing
Add #1178: Alternative dependency check implemented in python (script by Alberth)
There are now two types available: normal (as before, default) and mdep, the new
script. Select by setting DEP_CHECK_TYPE=mdep in your Makefile.local
#1 Updated by planetmaker over 9 years ago
I actually added thevdep check for the reason that newgrfs freque.tly reqired differently spellt graphics or other include files (case!) an as such it broke on case sensitive systems where it did not error out on the original author's machine. Not useless I think.
#2 Updated by yexo over 9 years ago
<Yexo> planetmaker: the major problem #1178 is that the dependency check takes sometimes longer than the actual compiling process, especially on windows machines
<Yexo> and during development you don't need to do a depcheck every time you rebuild, so that patch should add an option to disable the depcheck, mainly useful while developing
<Yexo> it's not for the average user just checking out a copy of a newgrf repo
<FooBar> that patch is a great help for me, reduces build times by around 75%!
#4 Updated by planetmaker over 9 years ago
- File optional_depcheck_firs.diff added
Attached a patch to the Makefile system of FIRS (it should also work elsewhere, but the hunk in Makefile.in is then not needed).
This patch simply disables the dep check. That is for re-building the newgrf you'll need to run 'make remake' as make will (still) report that the grf is up to date once built.
The dep check is disabled by giving DEP_CHECK_TYPE= as command parameter or setting it in Makefile.config or Makefile.local