@@ -62,17 +62,20 @@ call "%PF86%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
62
62
path %path% ;%PF86% \Microsoft Visual Studio 14.0\VC\bin
63
63
set CMAKE_COMPILER_PATH = %PF86% \Microsoft Visual Studio 14.0\VC\bin
64
64
set SETUPAPI_LIBRARY = c:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\um\x86\SetupAPI.Lib
65
+ if not exist " %SETUPAPI_LIBRARY% " set SETUPAPI_LIBRARY = c:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\SetupAPI.Lib
65
66
if not exist " %SETUPAPI_LIBRARY% " (echo SETUPAPI_LIBRARY not found & goto error)
66
67
67
68
set CMAKE_OPT = ^
68
69
-D SIP_BINARY_PATH=%O4W_ROOT% /apps/Python36/sip.exe ^
70
+ -D SPATIALINDEX_LIBRARY=%O4W_ROOT% /lib/spatialindex_i.lib
69
71
goto cmake
70
72
71
73
:cmake_x86_64
72
74
call " %PF86% \Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
73
75
path %path% ;%PF86% \Microsoft Visual Studio 14.0\VC\bin
74
76
set CMAKE_COMPILER_PATH = %PF86% \Microsoft Visual Studio 14.0\VC\bin\amd64
75
77
set SETUPAPI_LIBRARY = c:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\um\x64\SetupAPI.Lib
78
+ if not exist " %SETUPAPI_LIBRARY% " set SETUPAPI_LIBRARY = c:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x64\SetupAPI.Lib
76
79
if not exist " %SETUPAPI_LIBRARY% " (echo SETUPAPI_LIBRARY not found & goto error)
77
80
78
81
set CMAKE_OPT = ^
@@ -84,13 +87,19 @@ set CMAKE_OPT=^
84
87
-D CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS=TRUE
85
88
86
89
:cmake
87
- for /f " usebackq tokens=1" %%a in (`%OSGEO4W_ROOT% \bin\grass72 --config path`) do set GRASS72_PATH = %%a
88
- for %%i in (" %GRASS72_PATH% " ) do set GRASS72_VERSION = %%~nxi
89
- set GRASS72_VERSION = %GRASS72_VERSION:grass- =%
90
- set GRASS_VERSIONS = %GRASS72_VERSION%
90
+ set GRASS7 =
91
+ if exist %OSGEO4W_ROOT% \bin\grass72.bat set GRASS7 = %OSGEO4W_ROOT% \bin\grass72.bat
92
+ if exist %OSGEO4W_ROOT% \bin\grass74.bat set GRASS7 = %OSGEO4W_ROOT% \bin\grass74.bat
93
+ if " %GRASS7% " == " " (echo GRASS7 not found & goto error)
94
+
95
+ for /f " usebackq tokens=1" %%a in (`%GRASS7% --config path`) do set GRASS7_PATH = %%a
96
+ for %%i in (" %GRASS7_PATH% " ) do set GRASS7_VERSION = %%~nxi
97
+ set GRASS7_VERSION = %GRASS7_VERSION:grass- =%
98
+ set GRASS_VERSIONS = %GRASS7_VERSION%
91
99
92
100
set PYTHONPATH =
93
- path %PATH% ;c:\cygwin\bin;%PF86% \CMake\bin
101
+ if exist " %PF86% \CMake\bin" path %PATH% ;c:\cygwin\bin;%PF86% \CMake\bin
102
+ if exist " %PROGRAMFILES% \CMake\bin" path %PATH% ;c:\cygwin\bin;%PROGRAMFILES% \CMake\bin
94
103
95
104
PROMPT qgis%VERSION% $g
96
105
@@ -158,8 +167,9 @@ cmake -G Ninja ^
158
167
-D WITH_SERVER=TRUE ^
159
168
-D SERVER_SKIP_ECW=TRUE ^
160
169
-D WITH_GRASS=TRUE ^
170
+ -D WITH_3D=TRUE ^
161
171
-D WITH_GRASS7=TRUE ^
162
- -D GRASS_PREFIX7=%GRASS72_PATH :\ =/ % ^
172
+ -D GRASS_PREFIX7=%GRASS7_PATH :\ =/ % ^
163
173
-D WITH_GLOBE=FALSE ^
164
174
-D WITH_ORACLE=TRUE ^
165
175
-D WITH_CUSTOM_WIDGETS=TRUE ^
@@ -192,27 +202,38 @@ cmake --build %BUILDDIR% --target clean --config %BUILDCONF%
192
202
if errorlevel 1 (echo clean failed & goto error)
193
203
194
204
:skipclean
205
+ if exist ..\skipbuild (echo skip build & goto skipbuild)
195
206
echo ALL_BUILD: %DATE% %TIME%
196
207
cmake --build %BUILDDIR% --config %BUILDCONF%
197
208
if errorlevel 1 cmake --build %BUILDDIR% --config %BUILDCONF%
198
209
if errorlevel 1 (echo build failed twice & goto error)
199
210
211
+ :skipbuild
200
212
if exist ..\skiptests goto skiptests
201
213
202
214
echo RUN_TESTS: %DATE% %TIME%
203
215
204
216
set oldtemp = %TEMP%
205
217
set oldtmp = %TMP%
206
218
set oldpath = %PATH%
219
+
220
+ set TEMP = %TEMP% \%PACKAGENAME% -%ARCH%
221
+ set TMP = %TEMP%
222
+ if exist " %TEMP% " rmdir /s /q " %TEMP% "
223
+ mkdir " %TEMP% "
224
+
207
225
for %%g IN (%GRASS_VERSIONS% ) do (
208
226
set path = !path! ;%OSGEO4W_ROOT% \apps\grass\grass-%%g \lib
209
227
set GISBASE = %OSGEO4W_ROOT% \apps\grass\grass-%%g
210
228
)
211
- PATH %path% ;%BUILDDIR% \output\plugins\%BUILDCONF%
229
+ PATH %path% ;%BUILDDIR% \output\plugins
230
+ set QT_PLUGIN_PATH = %BUILDDIR% \output\plugins;%OSGEO4W_ROOT% \apps\qt5\plugins
212
231
213
232
cmake --build %BUILDDIR% --target Experimental --config %BUILDCONF%
214
233
if errorlevel 1 echo TESTS WERE NOT SUCCESSFUL.
215
234
235
+ set TEMP = %oldtemp%
236
+ set TMP = %oldtmp%
216
237
PATH %oldpath%
217
238
218
239
:skiptests
@@ -244,10 +265,6 @@ if errorlevel 1 (echo creation of desktop template failed & goto error)
244
265
245
266
sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' designer.bat.tmpl > %OSGEO4W_ROOT% \bin\%PACKAGENAME% -designer.bat.tmpl
246
267
if errorlevel 1 (echo creation of designer template failed & goto error)
247
-
248
- sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' python.bat.tmpl > %OSGEO4W_ROOT% \bin\python-%PACKAGENAME% .bat.tmpl
249
- if errorlevel 1 (echo creation of python wrapper template failed & goto error)
250
-
251
268
sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' qgis.reg.tmpl > %PKGDIR% \bin\qgis.reg.tmpl
252
269
if errorlevel 1 (echo creation of registry template & goto error)
253
270
@@ -278,12 +295,16 @@ for %%g IN (%GRASS_VERSIONS%) do (
278
295
set packages = !packages! " -grass-plugin!w! "
279
296
)
280
297
298
+ sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' python.bat.tmpl > %OSGEO4W_ROOT% \bin\python-%PACKAGENAME% .bat.tmpl
299
+ if errorlevel 1 (echo creation of python wrapper template failed & goto error)
300
+
281
301
sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' preremove-grass-plugin-common.bat > %OSGEO4W_ROOT% \etc\preremove\%PACKAGENAME% -grass-plugin-common.bat
282
302
if errorlevel 1 (echo creation of grass common preremove failed & goto error)
283
303
sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' postinstall-grass-plugin-common.bat > %OSGEO4W_ROOT% \etc\postinstall\%PACKAGENAME% -grass-plugin-common.bat
284
304
if errorlevel 1 (echo creation of grass common postinstall failed & goto error)
285
305
286
306
touch exclude
307
+ if exist ..\skipbuild (echo skip build & goto skipbuild)
287
308
288
309
for %%i in (%packages% ) do (
289
310
if not exist %ARCH% \release\qgis\%PACKAGENAME% %%i mkdir %ARCH% \release\qgis\%PACKAGENAME% %%i
@@ -294,8 +315,10 @@ tar -C %OSGEO4W_ROOT% -cjf %ARCH%/release/qgis/%PACKAGENAME%-common/%PACKAGENAME
294
315
--exclude " *.pyc" ^
295
316
" apps/%PACKAGENAME% /bin/qgispython.dll" ^
296
317
" apps/%PACKAGENAME% /bin/qgis_analysis.dll" ^
318
+ " apps/%PACKAGENAME% /bin/qgis_3d.dll" ^
297
319
" apps/%PACKAGENAME% /bin/qgis_core.dll" ^
298
320
" apps/%PACKAGENAME% /bin/qgis_gui.dll" ^
321
+ " apps/%PACKAGENAME% /bin/qgis_native.dll" ^
299
322
" apps/%PACKAGENAME% /doc/" ^
300
323
" apps/%PACKAGENAME% /plugins/basicauthmethod.dll" ^
301
324
" apps/%PACKAGENAME% /plugins/delimitedtextprovider.dll" ^
@@ -334,7 +357,8 @@ tar -C %OSGEO4W_ROOT% -cjf %ARCH%/release/qgis/%PACKAGENAME%-server/%PACKAGENAME
334
357
" apps/%PACKAGENAME% /bin/qgis_server.dll" ^
335
358
" apps/%PACKAGENAME% /bin/admin.sld" ^
336
359
" apps/%PACKAGENAME% /bin/wms_metadata.xml" ^
337
- " apps/%PACKAGENAME% /bin/schemaExtension.xsd" ^
360
+ " apps/%PACKAGENAME% /resources/server/schemaExtension.xsd" ^
361
+ " apps/%PACKAGENAME% /server/" ^
338
362
" apps/%PACKAGENAME% /python/qgis/_server.pyd" ^
339
363
" apps/%PACKAGENAME% /python/qgis/server/" ^
340
364
" httpd.d/httpd_%PACKAGENAME% .conf.tmpl" ^
@@ -368,6 +392,7 @@ tar -C %OSGEO4W_ROOT% -cjf %ARCH%/release/qgis/%PACKAGENAME%/%PACKAGENAME%-%VERS
368
392
--exclude " apps/%PACKAGENAME% /python/qgis/_server.pyd" ^
369
393
--exclude " apps/%PACKAGENAME% /python/qgis/_server.lib" ^
370
394
--exclude " apps/%PACKAGENAME% /python/qgis/server" ^
395
+ --exclude " apps/%PACKAGENAME% /server/" ^
371
396
" bin/%PACKAGENAME% -bin.exe" ^
372
397
" bin/%PACKAGENAME% -bin.vars" ^
373
398
" bin/python-%PACKAGENAME% .bat.tmpl" ^
@@ -391,6 +416,8 @@ tar -C %OSGEO4W_ROOT% -cjf %ARCH%/release/qgis/%PACKAGENAME%/%PACKAGENAME%-%VERS
391
416
" apps/%PACKAGENAME% /resources/data/" ^
392
417
" apps/%PACKAGENAME% /resources/metadata-ISO/" ^
393
418
" apps/%PACKAGENAME% /resources/2to3migration.txt" ^
419
+ " apps/%PACKAGENAME% /qgiscrashhandler.exe" ^
420
+ " apps/%PACKAGENAME% /qgis_global_settings.ini" ^
394
421
" bin/%PACKAGENAME% .bat.tmpl" ^
395
422
" bin/%PACKAGENAME% -designer.bat.tmpl" ^
396
423
" etc/postinstall/%PACKAGENAME% .bat" ^
@@ -473,6 +500,7 @@ echo BUILD ERROR %ERRORLEVEL%: %DATE% %TIME%
473
500
for %%i in (" " " -common" " -server" " -devel" " -grass-plugin" " -globe-plugin" " -oracle-provider" ) do (
474
501
if exist %ARCH% \release\qgis\%PACKAGENAME% %%i \%PACKAGENAME% %%i -%VERSION% -%PACKAGE% .tar.bz2 del %ARCH% \release\qgis\%PACKAGENAME% %%i \%PACKAGENAME% %%i -%VERSION% -%PACKAGE% .tar.bz2
475
502
)
503
+ exit /b 1
476
504
477
505
:end
478
506
echo FINISHED: %DATE% %TIME%
0 commit comments