Skip to content

Commit 7efcfee

Browse files
committed
osgeo4w: also build pdb and corresponding package for releases
1 parent 040c4b3 commit 7efcfee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ms-windows/osgeo4w/package.cmd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ if not exist "%SETUPAPI_LIBRARY%" (echo SETUPAPI_LIBRARY not found & goto error)
7878
set CMAKE_OPT=^
7979
-D SPATIALINDEX_LIBRARY=%O4W_ROOT%/lib/spatialindex-64.lib ^
8080
-D SIP_BINARY_PATH=%O4W_ROOT%/apps/Python36/sip.exe ^
81+
-D CMAKE_CXX_FLAGS_RELEASE="/MD /Zi /MP /O2 /Ob2 /D NDEBUG" ^
82+
-D CMAKE_PDB_OUTPUT_DIRECTORY_RELEASE=%BUILDDIR%\apps\%PACKAGENAME%\pdb ^
8183
-D SETUPAPI_LIBRARY="%SETUPAPI_LIBRARY%" ^
8284
-D CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS=TRUE
8385

@@ -395,6 +397,11 @@ tar -C %OSGEO4W_ROOT% -cjf %ARCH%/release/qgis/%PACKAGENAME%/%PACKAGENAME%-%VERS
395397
"etc/preremove/%PACKAGENAME%.bat"
396398
if errorlevel 1 (echo tar desktop failed & goto error)
397399

400+
if not exist %ARCH%\release\qgis\%PACKAGENAME%-pdb mkdir %ARCH%\release\qgis\%PACKAGENAME%-pdb
401+
tar -C %BUILDDIR% -cjf %ARCH%/release/qgis/%PACKAGENAME%-pdb/%PACKAGENAME%-pdb-%VERSION%-%PACKAGE%.tar.bz2 ^
402+
apps/%PACKAGENAME%/pdb
403+
if errorlevel 1 (echo tar failed & goto error)
404+
398405
tar -C %OSGEO4W_ROOT% -cjf %ARCH%/release/qgis/%PACKAGENAME%-grass-plugin-common/%PACKAGENAME%-grass-plugin-common-%VERSION%-%PACKAGE%.tar.bz2 ^
399406
--exclude-from exclude ^
400407
--exclude "*.pyc" ^

0 commit comments

Comments
 (0)