Skip to content

Commit 6a1e1bb

Browse files
committed
* fix server plugin build on windows
* move src/mapserver to src/server (IMHO better name and in sync with python/server) * rename cmake option WITH_MAPSERVER to WITH_SERVER * rename define MAPSERVER_HAVE_PYTHON_PLUGINS to HAVE_SERVER_PYTHON_PLUGINS
1 parent 0454c0d commit 6a1e1bb

26 files changed

+69
-56
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ before_install:
1313
install:
1414
- mkdir build
1515
- cd build
16-
- cmake -DWITH_MAPSERVER=ON -DWITH_STAGED_PLUGINS=OFF -DWITH_GRASS=OFF -DSUPPRESS_QT_WARNINGS=ON ..
16+
- cmake -DWITH_SERVER=ON -DWITH_STAGED_PLUGINS=OFF -DWITH_GRASS=OFF -DSUPPRESS_QT_WARNINGS=ON ..
1717

1818
script: xvfb-run ctest -V -E 'PyQgsPalLabelingCanvas|PyQgsPalLabelingServer|qgis_wcsprovidertest' -S ../qgis-test-travis.ctest --output-on-failure

CMakeLists.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ ENDIF (WITH_GRASS)
4040

4141
SET (WITH_DESKTOP TRUE CACHE BOOL "Determines whether QGIS desktop should be built")
4242

43-
# mapserver by us disabled default because it needs FastCGI (which is optional dependency)
44-
SET (WITH_MAPSERVER FALSE CACHE BOOL "Determines whether QGIS mapserver should be built")
45-
IF(WITH_MAPSERVER)
46-
SET (MAPSERVER_SKIP_ECW FALSE CACHE BOOL "Determines whether QGIS mapserver should disable ECW (ECW in server apps requires a special license)")
43+
# server disabled default because it needs FastCGI (which is optional dependency)
44+
SET (WITH_SERVER FALSE CACHE BOOL "Determines whether QGIS server should be built")
45+
IF(WITH_SERVER)
46+
SET (SERVER_SKIP_ECW FALSE CACHE BOOL "Determines whether QGIS server should disable ECW (ECW in server apps requires a special license)")
4747

48-
SET (WITH_SERVER_PLUGINS TRUE CACHE BOOL "Determines whether QGIS mapserver support for python plugins should be built")
48+
SET (WITH_SERVER_PLUGINS TRUE CACHE BOOL "Determines whether QGIS server support for python plugins should be built")
4949
IF(WITH_SERVER_PLUGINS)
50-
SET(MAPSERVER_HAVE_PYTHON_PLUGINS TRUE)
50+
SET(HAVE_SERVER_PYTHON_PLUGINS TRUE)
5151
ENDIF(WITH_SERVER_PLUGINS)
52-
ENDIF(WITH_MAPSERVER)
52+
ENDIF(WITH_SERVER)
5353

5454
# Custom widgets
5555
SET (WITH_CUSTOM_WIDGETS FALSE CACHE BOOL "Determines whether QGIS custom widgets for Qt Designer should be built")
@@ -540,6 +540,7 @@ ADD_DEFINITIONS("-DPYTHON_EXPORT=${DLLIMPORT}")
540540
ADD_DEFINITIONS("-DANALYSIS_EXPORT=${DLLIMPORT}")
541541
ADD_DEFINITIONS("-DAPP_EXPORT=${DLLIMPORT}")
542542
ADD_DEFINITIONS("-DCUSTOMWIDGETS_EXPORT=${DLLIMPORT}")
543+
ADD_DEFINITIONS("-DSERVER_EXPORT=${DLLIMPORT}")
543544

544545
#############################################################
545546
# user-changeable settings which can be used to customize

cmake/MacBundleMacros.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ FUNCTION (UPDATEQGISPATHS LIBFROM LIBTO)
115115
INSTALLNAMETOOL_CHANGE ("${LIBFROM}" "${LIB_CHG_TO}" "${QBINDIR}/${QA}.app/Contents/MacOS/${QA}")
116116
ENDFOREACH (QA)
117117
# qgis-mapserver
118-
IF (${WITH_MAPSERVER})
118+
IF (${WITH_SERVER})
119119
IF (${OSX_HAVE_LOADERPATH})
120120
SET (LIB_CHG_TO "${ATEXECUTABLE}/${QGIS_CGIBIN_SUBDIR_REV}/${LIBMID}/${LIBPOST}")
121121
ENDIF ()

cmake_templates/qgsconfig.h.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454

5555
#cmakedefine HAVE_OSGEARTHQT
5656

57-
#cmakedefine MAPSERVER_SKIP_ECW
57+
#cmakedefine SERVER_SKIP_ECW
5858

59-
#cmakedefine MAPSERVER_HAVE_PYTHON_PLUGINS
59+
#cmakedefine HAVE_SERVER_PYTHON_PLUGINS
6060

6161
#endif
6262

debian/rules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ CMAKE_OPTS := \
5050
-DBINDINGS_GLOBAL_INSTALL=TRUE \
5151
-DPEDANTIC=TRUE \
5252
-DWITH_QSPATIALITE=TRUE \
53-
-DWITH_MAPSERVER=TRUE \
54-
-DMAPSERVER_SKIP_ECW=TRUE \
53+
-DWITH_SERVER=TRUE \
54+
-DSERVER_SKIP_ECW=TRUE \
5555
-DQGIS_CGIBIN_SUBDIR=/usr/lib/cgi-bin \
5656
-DWITH_APIDOC=TRUE \
5757
-DWITH_CUSTOM_WIDGETS=TRUE \

doc/osx.t2t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ component on Leopard and Snow, add the following line before the last line in
883883
the above configuration:
884884

885885
```
886-
-D WITH_MAPSERVER=TRUE \
886+
-D WITH_SERVER=TRUE \
887887
```
888888

889889
On Lion you are on your own to figure out how to install libfcgi and add fcgi

mac/cmake/0vars.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ SET (QGIS_DATA_SUBDIR_REV "@QGIS_DATA_SUBDIR_REV@")
3838
# optional components
3939
SET (WITH_GLOBE "@WITH_GLOBE@")
4040
SET (WITH_GRASS "@WITH_GRASS@")
41-
SET (WITH_MAPSERVER "@WITH_MAPSERVER@")
41+
SET (WITH_SERVER "@WITH_SERVER@")
4242
SET (WITH_POSTGRESQL "@WITH_POSTGRESQL@")
4343
SET (WITH_QSPATIALITE "@WITH_QSPATIALITE@")
4444

ms-windows/cygwin/package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cmake -D BUILDNAME="cygwin" \
1212
-D WITH_GRASS=FALSE \
1313
-D WITH_SPATIALITE=TRUE \
1414
-D WITH_QSPATIALITE=TRUE \
15-
-D WITH_MAPSERVER=TRUE \
15+
-D WITH_SERVER=TRUE \
1616
-D WITH_ASTYLE=TRUE \
1717
-D WITH_GLOBE=TRUE \
1818
-D WITH_TOUCH=TRUE \

ms-windows/osgeo4w/package-nightly.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ cmake %CMAKE_OPT% ^
141141
-D SITE="qgis.org" ^
142142
-D PEDANTIC=TRUE ^
143143
-D WITH_QSPATIALITE=TRUE ^
144-
-D WITH_MAPSERVER=TRUE ^
145-
-D MAPSERVER_SKIP_ECW=TRUE ^
144+
-D WITH_SERVER=TRUE ^
145+
-D SERVER_SKIP_ECW=TRUE ^
146146
-D WITH_ASTYLE=TRUE ^
147147
-D WITH_GLOBE=TRUE ^
148148
-D WITH_TOUCH=TRUE ^

ms-windows/osgeo4w/package.cmd

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ set GRASS_PREFIX=%O4W_ROOT%/apps/grass/grass-%GRASS_VERSION%
134134
cmake %CMAKE_OPT% ^
135135
-D PEDANTIC=TRUE ^
136136
-D WITH_QSPATIALITE=TRUE ^
137-
-D WITH_MAPSERVER=TRUE ^
138-
-D MAPSERVER_SKIP_ECW=TRUE ^
137+
-D WITH_SERVER=TRUE ^
138+
-D SERVER_SKIP_ECW=TRUE ^
139139
-D WITH_GLOBE=TRUE ^
140140
-D WITH_TOUCH=TRUE ^
141141
-D WITH_ORACLE=TRUE ^
@@ -268,8 +268,11 @@ tar -C %OSGEO4W_ROOT% -cjf %ARCH%/release/qgis/%PACKAGENAME%-server/%PACKAGENAME
268268
--exclude-from exclude ^
269269
--exclude "*.pyc" ^
270270
"apps/%PACKAGENAME%/bin/qgis_mapserv.fcgi.exe" ^
271+
"apps/%PACKAGENAME%/bin/qgis_server.dll" ^
271272
"apps/%PACKAGENAME%/bin/admin.sld" ^
272273
"apps/%PACKAGENAME%/bin/wms_metadata.xml" ^
274+
"apps/%PACKAGENAME%/python/_server.pyd" ^
275+
"apps/%PACKAGENAME%/python/server" ^
273276
"httpd.d/httpd_%PACKAGENAME%.conf.tmpl" ^
274277
"etc/postinstall/%PACKAGENAME%-server.bat" ^
275278
"etc/preremove/%PACKAGENAME%-server.bat"
@@ -298,6 +301,8 @@ if not exist %ARCH%\release\qgis\%PACKAGENAME% mkdir %ARCH%\release\qgis\%PACKAG
298301
tar -C %OSGEO4W_ROOT% -cjf %ARCH%/release/qgis/%PACKAGENAME%/%PACKAGENAME%-%VERSION%-%PACKAGE%.tar.bz2 ^
299302
--exclude-from exclude ^
300303
--exclude "*.pyc" ^
304+
--exclude "apps/%PACKAGENAME%/python/_server.pyd" ^
305+
--exclude "apps/%PACKAGENAME%/python/server" ^
301306
"bin/%PACKAGENAME%-browser-bin.exe" ^
302307
"bin/%PACKAGENAME%-bin.exe" ^
303308
"apps/%PACKAGENAME%/bin/qgis.reg.tmpl" ^

0 commit comments

Comments
 (0)