@@ -27,6 +27,10 @@ if not exist "%OSGEO4W_ROOT%\bin\o4w_env.bat" goto error
27
27
28
28
call " %OSGEO4W_ROOT% \bin\o4w_env.bat"
29
29
30
+ set PATH = %PROGRAMFILES% \CMake 2.8\bin;%PROGRAMFILES% \GnuWin32\bin;%PATH%
31
+ set INCLUDE = %INCLUDE% ;%OSGEO4W_ROOT% \include;
32
+ set LIB = %LIB% ;%OSGEO4W_ROOT% \lib
33
+
30
34
set O4W_ROOT = %OSGEO4W_ROOT:\ =/ %
31
35
set LIB_DIR = %O4W_ROOT%
32
36
@@ -37,8 +41,8 @@ if "%DEVENV%"=="" goto error
37
41
38
42
PROMPT qgis%VERSION% $g
39
43
40
- set BUILDCONF = RelWithDebInfo
41
- REM set BUILDCONF=Release
44
+ REM set BUILDCONF=RelWithDebInfo
45
+ set BUILDCONF = Release
42
46
43
47
44
48
cd ..\..
@@ -89,11 +93,10 @@ cmake -G "Visual Studio 9 2008" ^
89
93
-D WITH_INTERNAL_SPATIALITE=TRUE ^
90
94
-D CMAKE_BUILD_TYPE=%BUILDCONF% ^
91
95
-D CMAKE_CONFIGURATION_TYPES=%BUILDCONF% ^
92
- -D GDAL_INCLUDE_DIR=%O4W_ROOT% /apps/gdal-17/include ^
93
- -D GDAL_LIBRARY=%O4W_ROOT% /apps/gdal-17/lib/gdal_i.lib ^
94
96
-D PYTHON_EXECUTABLE=%O4W_ROOT% /bin/python.exe ^
95
97
-D PYTHON_INCLUDE_PATH=%O4W_ROOT% /apps/Python25/include ^
96
98
-D PYTHON_LIBRARY=%O4W_ROOT% /apps/Python25/libs/python25.lib ^
99
+ -D GEOS_LIBRARY=%O4W_ROOT% /lib/geos_c_i.lib ^
97
100
-D SIP_BINARY_PATH=%O4W_ROOT% /apps/Python25/sip.exe ^
98
101
-D GRASS_PREFIX=%O4W_ROOT% /apps/grass/grass-%GRASS_VERSION% ^
99
102
-D QT_BINARY_DIR=%O4W_ROOT% /bin ^
@@ -145,7 +148,9 @@ REM del %OSGEO4W_ROOT%\apps\%PACKAGENAME%\python\qgis\qgisconfig.py
145
148
touch exclude
146
149
147
150
tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME% -%VERSION% -%PACKAGE% .tar.bz2 ^
151
+ --exclude " apps/%PACKAGENAME% /bin/qgis.reg" ^
148
152
--exclude-from exclude ^
153
+ --exclude " *.pyc" ^
149
154
--exclude " apps/%PACKAGENAME% /themes/classic/grass" ^
150
155
--exclude " apps/%PACKAGENAME% /themes/default/grass" ^
151
156
--exclude " apps/%PACKAGENAME% /themes/qgis/grass" ^
@@ -161,8 +166,9 @@ tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME%-%VERSION%-%PACKAGE%.tar.bz2 ^
161
166
>> %LOG% 2 >& 1
162
167
if errorlevel 1 goto error
163
168
164
- tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME% -grass-%VERSION% -%PACKAGE% .tar.bz2 ^
169
+ tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME% -grass-plugin- %VERSION% -%PACKAGE% .tar.bz2 ^
165
170
--exclude-from exclude ^
171
+ --exclude " *.pyc" ^
166
172
" apps/%PACKAGENAME% /themes/classic/grass" ^
167
173
" apps/%PACKAGENAME% /themes/default/grass" ^
168
174
" apps/%PACKAGENAME% /themes/gis/grass" ^
0 commit comments