Changes between Version 1 and Version 2 of GeneratingVisualStudioProject


Ignore:
Timestamp:
Feb 16, 2017, 1:51:34 PM (7 years ago)
Author:
Mateusz Łoskot
Comment:

Post r37389 and r37390 update

Legend:

Unmodified
Added
Removed
Modified
  • GeneratingVisualStudioProject

    v1 v2  
    1 TODO
     1= Generating Visual Studio Project =
     2
     3Use [http://svn.osgeo.org/gdal/trunk/gdal/generate_vcxproj.bat generate_vcxproj.bat] script available in GDAL source code tree to generate project files (.vcxproj) for Visual Studio 2010 or later.
     4
     5The script generates Visual Studio [https://msdn.microsoft.com/en-us/library/h27k75y5.aspx External Project] (aka [https://msdn.microsoft.com/en-us/library/8y48z24a.aspx Makefile Project]) generated project. Makefile Project almost entirely relies on build configuration defined in GDAL `nmake.opt` (or `nmake.local`) and `makefile.vc` files.
     6
     7{{{
     8Usage: generate_vcxproj ^<Visual C++ version^> [32^|64] ^<^(*^) project file name^>
     9Parameters:
     10   1 : Visual C++ version is not the same as Visual Studio version ^( =^> 10.0 ^)
     11   2 : Windows platform 32 for Win32 and 64 for Win64
     12   3 : Base file name, with no path and no extension ^(*^)
     13Examples:
     14   generate_vcxproj 10.1 32 gdal_vs2010
     15   generate_vcxproj 11.0 64 gdal_vs2012
     16   generate_vcxproj 12.0 64 gdal_vs2013
     17   generate_vcxproj 14.0 64 gdal_vs2015
     18}}}
     19
     201. Edit `nmake.opt` (or `nmake.local`) to configure desired build options.
     212. Generate projects: `generate_vcxproj.bat 14.0 32 gdal_vs2015`
     22   * `gdal_vs2015.vcxproj` is generated.
     23   * If you build source tree checked out from the repository with [http://svn.osgeo.org/gdal/trunk/autotest/ autotest] folder included, then also `gdal_vs2015_test.vcxproj` is generated for makefile in `autotest/cpp` folder with GDAL C++ tests.
     243. Launch Visual Studio IDE
     254. Go to File > Open > !Project/Solution...
     265. Open project `gdal_vs2015.vcxproj`.
     276. Add  project `gdal_vs2015_test.vcxproj` to the solution.
     287. Configure Build Dependencies to build the main project before the test project.
     298. Optionally, you may also have to add in Windows SDK library paths in the project's "VC++ Directories" configuration properties.
     309. Save solution in .sln file.
     3110. Build.
     32