Skip to content

Commit 29b1752

Browse files
authoredMar 22, 2024
Merge pull request zerebubuth#376 from mmd-osm/patch/staticxml2
Drop support for staticxml backend in production code
2 parents ea3e595 + 1c921da commit 29b1752

8 files changed

+20
-29
lines changed
 

‎openstreetmap-cgimap.1

+1-8
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ FCGI port number (e.g. 8000) to listen on. This option is for backwards compatib
8888
.TP
8989
.BR \-\-socket =\fISOCKET\fR
9090
FCGI port number (e.g. :8000) or UNIX socket to listen on.
91-
.TP
92-
.BR \-\-backend =\fIBACKEND\fR
93-
Backend to use, available options are: apidb, staticxml.
94-
Default is apidb.
9591
.SS ApiDB backend options
9692
.TP
9793
.BR \-\-dbname =\fIDBNAME\fR
@@ -155,7 +151,4 @@ Database character set to use for API write operations, if different from \-\-ch
155151
.TP
156152
.BR \-\-update\-dbport =\fIUPDATEPORT\fR
157153
Database port number or UNIX socket file name to use for API write operations, if different from \-\-dbport.
158-
.SS Static XML backend options:
159-
.TP
160-
.BR \-\-file =\fIFILE\fR
161-
File to load static OSM XML from.
154+

‎src/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ target_link_libraries(cgimap_fcgi
9999

100100

101101
add_subdirectory(backend/apidb)
102-
add_subdirectory(backend/staticxml)
102+

‎src/backend/staticxml/CMakeLists.txt

-15
This file was deleted.

‎src/main.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ using namespace std::chrono_literals;
5353
#include "cgimap/backend/apidb/apidb.hpp"
5454
#endif
5555

56-
#include "cgimap/backend/staticxml/staticxml.hpp"
57-
5856
namespace po = boost::program_options;
5957

6058
namespace {
@@ -295,7 +293,6 @@ void setup_backends() {
295293
#if ENABLE_APIDB
296294
register_backend(make_apidb_backend());
297295
#endif
298-
register_backend(make_staticxml_backend());
299296
}
300297

301298

‎test/CMakeLists.txt

+16
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
############
44
if(BUILD_TESTING)
55

6+
##################
7+
# cgimap_staticxml
8+
##################
9+
add_library(cgimap_staticxml)
10+
11+
target_include_directories(cgimap_staticxml PUBLIC
12+
.)
13+
14+
target_sources(cgimap_staticxml PRIVATE
15+
staticxml.cpp)
16+
17+
target_link_libraries(cgimap_staticxml
18+
cgimap_common_compiler_options
19+
LibXml2::LibXml2
20+
cgimap_core)
21+
622
###########
723
# test_core
824
###########

‎src/backend/staticxml/staticxml.cpp ‎test/staticxml.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* For a full list of authors see the git log.
88
*/
99

10-
#include "cgimap/backend/staticxml/staticxml.hpp"
10+
#include "staticxml.hpp"
1111
#include "cgimap/backend.hpp"
1212
#include "cgimap/output_formatter.hpp"
1313
#include "cgimap/api06/id_version.hpp"
File renamed without changes.

‎test/test_core.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
#include "cgimap/process_request.hpp"
1111
#include "cgimap/output_buffer.hpp"
12-
#include "cgimap/backend/staticxml/staticxml.hpp"
1312
#include "cgimap/request_helpers.hpp"
1413
#include "cgimap/time.hpp"
14+
#include "staticxml.hpp"
1515

1616
#include <boost/program_options.hpp>
1717
#include <fmt/core.h>

0 commit comments

Comments
 (0)