makegdal_gen.bat doesn't work for newer versions of Visual Studio
|Reported by:||ilucena||Owned by:||ilucena|
Introduced almost 10 years ago the batch script makegdal_gen.bat generates a .vcproj file that is a Makefile Project for older versions of Visual Studio, like VS 2005 for example.
After VS 2010 it was still possible to import the .vcproj file generated by makegdal_gen. While importing the project VS would update the project to the newest XML structure but the resulting project was not a "Makefile Project" anymore. It wouldn't run makefile.vc and it wouldn't used namke.local and make.opt settings.
In newer versions of Visual Studio is possible to build a new project "from existing" source. That is a popular options in other IDE. But for Visual Studio the two major problems, generate project is not a "Makefile" and the source code tree is not properly loaded into the project. Netbeans does it particularly well.
We need to update makegdal_gen.bat to produce the exact same XML structure that Visual Studio currently uses for "Makefile Project". That should cover VS 2010 and up.
The advantages of this kind of project is that we can continue to use the setting prepared for GDAL building on nmake.opt or on our personal nmake.local while enjoying the full benefits of a modern IDE. Cross reference, refactoring, usage-search and debugging.
See discussion thread on gdal-dev: