File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,10 @@ if "%ARCH%"=="x86" goto devenv_x86
56
56
goto devenv_x86_64
57
57
58
58
:devenv_x86
59
- set GRASS_VERSIONS = 6.4.4 7.0.1
59
+ for /f " usebackq tokens=1" %%a in (`%OSGEO4W_ROOT% \bin\grass70 --config path`) do set GRASS70_PATH = %%a
60
+ for %%i in (" %GRASS70_PATH% " ) do set GRASS70_VERSION = %%~nxi
61
+ set GRASS70_VERSION = %GRASS70_VERSION:grass- =%
62
+ set GRASS_VERSIONS = 6.4.4 %GRASS70_VERSION%
60
63
call " %PF86% \Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
61
64
if exist " c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" call " c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /x86 /Release
62
65
path %path% ;%PF86% \Microsoft Visual Studio 10.0\VC\bin
@@ -69,7 +72,7 @@ set CMAKE_OPT=^
69
72
-D WITH_GRASS6=TRUE ^
70
73
-D WITH_GRASS7=TRUE ^
71
74
-D GRASS_PREFIX=%O4W_ROOT% /apps/grass/grass-6.4.4 ^
72
- -D GRASS_PREFIX7=%O4W_ROOT% /apps/grass/grass-7.0.1 ^
75
+ -D GRASS_PREFIX7=%GRASS70_PATH: \ = / % ^
73
76
-D CMAKE_CXX_FLAGS_RELWITHDEBINFO=" /MD /ZI /MP /Od /D NDEBUG /D QGISDEBUG" ^
74
77
-D CMAKE_PDB_OUTPUT_DIRECTORY_RELWITHDEBINFO=%BUILDDIR% \apps\%PACKAGENAME% \pdb
75
78
goto devenv
@@ -88,6 +91,7 @@ set CMAKE_OPT=^
88
91
-G " Visual Studio 10 Win64" ^
89
92
-D SPATIALINDEX_LIBRARY=%O4W_ROOT% /lib/spatialindex-64.lib ^
90
93
-D WITH_GRASS=TRUE ^
94
+ -D WITH_GRASS6=TRUE ^
91
95
-D WITH_GRASS7=FALSE ^
92
96
-D GRASS_PREFIX=%O4W_ROOT% /apps/grass/grass-6.4.3 ^
93
97
-D SIP_BINARY_PATH=%O4W_ROOT% /bin/sip.exe ^
Original file line number Diff line number Diff line change @@ -56,7 +56,10 @@ if "%ARCH%"=="x86" goto devenv_x86
56
56
goto devenv_x86_64
57
57
58
58
:devenv_x86
59
- set GRASS_VERSIONS = 6.4.4 7.0.1
59
+ for /f " usebackq tokens=1" %%a in (`%OSGEO4W_ROOT% \bin\grass70 --config path`) do set GRASS70_PATH = %%a
60
+ for %%i in (" %GRASS70_PATH% " ) do set GRASS70_VERSION = %%~nxi
61
+ set GRASS70_VERSION = %GRASS70_VERSION:grass- =%
62
+ set GRASS_VERSIONS = 6.4.4 %GRASS70_VERSION%
60
63
call " %PF86% \Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
61
64
if exist " c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" call " c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /x86 /Release
62
65
path %path% ;%PF86% \Microsoft Visual Studio 10.0\VC\bin
@@ -69,7 +72,7 @@ set CMAKE_OPT=^
69
72
-D WITH_GRASS6=TRUE ^
70
73
-D WITH_GRASS7=TRUE ^
71
74
-D GRASS_PREFIX=%O4W_ROOT% /apps/grass/grass-6.4.4 ^
72
- -D GRASS_PREFIX7=%O4W_ROOT% /apps/grass/grass-7.0.1
75
+ -D GRASS_PREFIX7=%GRASS70_PATH: \ = / %
73
76
goto devenv
74
77
75
78
:devenv_x86_64
@@ -87,6 +90,7 @@ set CMAKE_OPT=^
87
90
-D SPATIALINDEX_LIBRARY=%O4W_ROOT% /lib/spatialindex-64.lib ^
88
91
-D WITH_GRASS=TRUE ^
89
92
-D WITH_GRASS6=TRUE ^
93
+ -D WITH_GRASS7=FALSE ^
90
94
-D GRASS_PREFIX=%O4W_ROOT% /apps/grass/grass-6.4.3 ^
91
95
-D SIP_BINARY_PATH=%O4W_ROOT% /bin/sip.exe ^
92
96
-D QWT_LIBRARY=%O4W_ROOT% /lib/qwt5.lib ^
You can’t perform that action at this time.
0 commit comments