Skip to content

Commit 3116734

Browse files
committed
Merge branch 'master' of github.com:Project-OSRM/osrm-backend
2 parents c9bd9a9 + 4d6272b commit 3116734

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1201
-617
lines changed

.gitignore

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Thumbs.db
4949
/_build*
5050
/build/
5151
/example/build/
52-
/test/data/monaco*
52+
/test/data/monaco.osrm*
5353
/test/data/ch
5454
/test/data/corech
5555
/test/data/mld
@@ -72,12 +72,6 @@ Thumbs.db
7272
###########################
7373
.idea/
7474

75-
# stxxl related files #
76-
#######################
77-
.stxxl
78-
stxxl.log
79-
stxxl.errlog
80-
8175
# Compiled Binary Files #
8276
####################################
8377
/osrm-extract

.travis.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ matrix:
121121
packages: ['libstdc++-4.9-dev']
122122
env: CLANG_VERSION='5.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON RUN_CLANG_FORMAT=ON ENABLE_LTO=ON
123123

124+
- os: linux
125+
compiler: "gcc-9-release"
126+
addons: &gcc9
127+
apt:
128+
sources: ['ubuntu-toolchain-r-test']
129+
packages: ['g++-9', 'libbz2-dev', 'libxml2-dev', 'libzip-dev', 'liblua5.2-dev', 'libtbb-dev', 'libboost-all-dev']
130+
env: CCOMPILER='gcc-9' CXXCOMPILER='g++-9' BUILD_TYPE='Release' CXXFLAGS='-Wno-cast-function-type'
131+
124132
- os: linux
125133
compiler: "gcc-8-release"
126134
addons: &gcc8
@@ -143,14 +151,6 @@ matrix:
143151
TARGET_ARCH='i686' CCOMPILER='gcc-7' CXXCOMPILER='g++-7' BUILD_TYPE='Release'
144152
CFLAGS='-m32 -msse2 -mfpmath=sse' CXXFLAGS='-m32 -msse2 -mfpmath=sse'
145153
146-
- os: linux
147-
compiler: "gcc-7-stxxl"
148-
addons: &gcc7
149-
apt:
150-
sources: ['ubuntu-toolchain-r-test']
151-
packages: ['g++-7', 'libbz2-dev', 'libstxxl-dev', 'libxml2-dev', 'libzip-dev', 'liblua5.2-dev', 'libtbb-dev', 'libboost-all-dev']
152-
env: CCOMPILER='gcc-7' CXXCOMPILER='g++-7' BUILD_TYPE='Release' ENABLE_STXXL=On
153-
154154
- os: linux
155155
compiler: "gcc-5-release"
156156
addons: &gcc49
@@ -475,7 +475,6 @@ install:
475475
-DENABLE_COVERAGE=${ENABLE_COVERAGE:-OFF} \
476476
-DENABLE_NODE_BINDINGS=${ENABLE_NODE_BINDINGS:-OFF} \
477477
-DENABLE_SANITIZER=${ENABLE_SANITIZER:-OFF} \
478-
-DENABLE_STXXL=${ENABLE_STXXL:-OFF} \
479478
-DBUILD_TOOLS=ON \
480479
-DENABLE_CCACHE=ON \
481480
-DCMAKE_INSTALL_PREFIX=${OSRM_INSTALL_DIR} \

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,27 @@
22
- Changes from 5.21.0
33
- Build:
44
- ADDED: optionally build Node `lts` and `latest` bindings [#5347](https://github.com/Project-OSRM/osrm-backend/pull/5347)
5+
- FIXED: pessimistic calls to std::move [#5560](https://github.com/Project-OSRM/osrm-backend/pull/5561)
56
- Features:
67
- ADDED: new waypoints parameter to the `route` plugin, enabling silent waypoints [#5345](https://github.com/Project-OSRM/osrm-backend/pull/5345)
78
- ADDED: data timestamp information in the response (saved in new file `.osrm.timestamp`). [#5115](https://github.com/Project-OSRM/osrm-backend/issues/5115)
89
- ADDED: new API parameter - `snapping=any|default` to allow snapping to previously unsnappable edges [#5361](https://github.com/Project-OSRM/osrm-backend/pull/5361)
910
- ADDED: keepalive support to the osrm-routed HTTP server [#5518](https://github.com/Project-OSRM/osrm-backend/pull/5518)
1011
- ADDED: flatbuffers output format support [#5513](https://github.com/Project-OSRM/osrm-backend/pull/5513)
12+
- ADDED: Global 'skip_waypoints' option [#5556](https://github.com/Project-OSRM/osrm-backend/pull/5556)
13+
- FIXED: Install the libosrm_guidance library correctly [#5604](https://github.com/Project-OSRM/osrm-backend/pull/5604)
14+
- FIXED: Http Handler can now deal witch optional whitespace between header-key and -value [#5606](https://github.com/Project-OSRM/osrm-backend/issues/5606)
1115
- Routing:
1216
- CHANGED: allow routing past `barrier=arch` [#5352](https://github.com/Project-OSRM/osrm-backend/pull/5352)
1317
- CHANGED: default car weight was reduced to 2000 kg. [#5371](https://github.com/Project-OSRM/osrm-backend/pull/5371)
1418
- CHANGED: default car height was reduced to 2 meters. [#5389](https://github.com/Project-OSRM/osrm-backend/pull/5389)
19+
- FIXED: treat `bicycle=use_sidepath` as no access on the tagged way. [#5622](https://github.com/Project-OSRM/osrm-backend/pull/5622)
20+
- Misc:
21+
- CHANGED: Reduce memory usage for raster source handling. [#5572](https://github.com/Project-OSRM/osrm-backend/pull/5572)
22+
- CHANGED: Add cmake option `ENABLE_DEBUG_LOGGING` to control whether output debug logging. [#3427](https://github.com/Project-OSRM/osrm-backend/issues/3427)
1523
- CHANGED: updated extent of Hong Kong as left hand drive country. [#5535](https://github.com/Project-OSRM/osrm-backend/issues/5535)
16-
24+
- Infrastructure
25+
- REMOVED: STXXL support removed as STXXL became abandonware. [#5760](https://github.com/Project-OSRM/osrm-backend/pull/5760)
1726
# 5.21.0
1827
- Changes from 5.20.0
1928
- Features:

CMakeLists.txt

Lines changed: 16 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ option(ENABLE_CCACHE "Speed up incremental rebuilds via ccache" ON)
2323
option(BUILD_TOOLS "Build OSRM tools" OFF)
2424
option(BUILD_PACKAGE "Build OSRM package" OFF)
2525
option(ENABLE_ASSERTIONS "Use assertions in release mode" OFF)
26+
option(ENABLE_DEBUG_LOGGING "Use debug logging in release mode" OFF)
2627
option(ENABLE_COVERAGE "Build with coverage instrumentalisation" OFF)
2728
option(ENABLE_SANITIZER "Use memory sanitizer for Debug build" OFF)
28-
option(ENABLE_STXXL "Use STXXL library" OFF)
2929
option(ENABLE_LTO "Use LTO if available" OFF)
3030
option(ENABLE_FUZZING "Fuzz testing using LLVM's libFuzzer" OFF)
3131
option(ENABLE_GOLD_LINKER "Use GNU gold linker if available" ON)
@@ -37,7 +37,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
3737
if(ENABLE_MASON)
3838
# versions in use
3939
set(MASON_BOOST_VERSION "1.65.1")
40-
set(MASON_STXXL_VERSION "1.4.1-1")
4140
set(MASON_EXPAT_VERSION "2.2.0")
4241
set(MASON_LUA_VERSION "5.2.4")
4342
set(MASON_BZIP2_VERSION "1.0.6")
@@ -57,6 +56,12 @@ endif()
5756
if (POLICY CMP0048)
5857
cmake_policy(SET CMP0048 OLD)
5958
endif()
59+
if (POLICY CMP0057)
60+
cmake_policy(SET CMP0057 NEW)
61+
endif()
62+
if (POLICY CMP0074)
63+
cmake_policy(SET CMP0074 NEW)
64+
endif()
6065
project(OSRM C CXX)
6166

6267
include(JSONParser)
@@ -227,6 +232,7 @@ endif()
227232
if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
228233
message(STATUS "Configuring debug mode flags")
229234
set(ENABLE_ASSERTIONS ON)
235+
set(ENABLE_DEBUG_LOGGING ON)
230236
endif()
231237

232238
if(NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
@@ -472,13 +478,6 @@ if(ENABLE_MASON)
472478
mason_use(boost_libsystem VERSION ${MASON_BOOST_VERSION})
473479
set(Boost_SYSTEM_LIBRARY ${MASON_PACKAGE_boost_libsystem_STATIC_LIBS})
474480

475-
if (ENABLE_STXXL)
476-
mason_use(stxxl VERSION ${MASON_STXXL_VERSION})
477-
add_dependency_includes(${MASON_PACKAGE_stxxl_INCLUDE_DIRS})
478-
set(MAYBE_STXXL_LIBRARY ${MASON_PACKAGE_stxxl_STATIC_LIBS})
479-
add_definitions(-DUSE_STXXL_LIBRARY)
480-
endif()
481-
482481
mason_use(expat VERSION ${MASON_EXPAT_VERSION})
483482
add_dependency_includes(${MASON_PACKAGE_expat_INCLUDE_DIRS})
484483
set(EXPAT_LIBRARIES ${MASON_PACKAGE_expat_STATIC_LIBS})
@@ -524,30 +523,16 @@ else()
524523

525524
find_package(Boost 1.54 REQUIRED COMPONENTS ${BOOST_COMPONENTS})
526525
add_dependency_includes(${Boost_INCLUDE_DIRS})
527-
if(WIN32 AND Boost_VERSION VERSION_LESS 106200)
528-
message(FATAL_ERROR "Building with MSVC needs Boost 1.62 with CXX11_CONSTEXPR support")
529-
endif()
530526

531527
find_package(TBB REQUIRED)
532528
add_dependency_includes(${TBB_INCLUDE_DIR})
533-
if(WIN32 AND CMAKE_BUILD_TYPE MATCHES Debug)
534-
set(TBB_LIBRARIES ${TBB_DEBUG_LIBRARIES})
529+
if(WIN32)
530+
set(TBB_LIBRARIES optimized ${TBB_LIBRARY} optimized ${TBB_MALLOC_LIBRARY} debug ${TBB_LIBRARY_DEBUG} debug ${TBB_MALLOC_LIBRARY_DEBUG})
535531
endif()
536532

537533
find_package(EXPAT REQUIRED)
538534
add_dependency_includes(${EXPAT_INCLUDE_DIRS})
539535

540-
if (ENABLE_STXXL)
541-
find_package(STXXL)
542-
if (STXXL_FOUND)
543-
add_dependency_includes(${STXXL_INCLUDE_DIR})
544-
set(MAYBE_STXXL_LIBRARY ${STXXL_LIBRARY})
545-
add_definitions(-DUSE_STXXL_LIBRARY)
546-
else()
547-
MESSAGE(STATUS "STXXL was requested but not found, default STL will be used")
548-
endif()
549-
endif()
550-
551536
find_package(BZip2 REQUIRED)
552537
add_dependency_includes(${BZIP2_INCLUDE_DIR})
553538

@@ -607,15 +592,6 @@ add_dependency_defines(-DBOOST_SPIRIT_USE_PHOENIX_V3)
607592
add_dependency_defines(-DBOOST_RESULT_OF_USE_DECLTYPE)
608593
add_dependency_defines(-DBOOST_FILESYSTEM_NO_DEPRECATED)
609594

610-
if (ENABLE_STXXL)
611-
set(OpenMP_FIND_QUIETLY ON)
612-
find_package(OpenMP)
613-
if(OPENMP_FOUND)
614-
message(STATUS "OpenMP support found. Linking just in case for stxxl")
615-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
616-
endif()
617-
endif()
618-
619595
add_definitions(${OSRM_DEFINES})
620596
include_directories(SYSTEM ${DEPENDENCIES_INCLUDE_DIRS})
621597

@@ -648,7 +624,6 @@ set(EXTRACTOR_LIBRARIES
648624
${EXPAT_LIBRARIES}
649625
${USED_LUA_LIBRARIES}
650626
${OSMIUM_LIBRARIES}
651-
${MAYBE_STXXL_LIBRARY}
652627
${TBB_LIBRARIES}
653628
${ZLIB_LIBRARY}
654629
${MAYBE_COVERAGE_LIBRARIES})
@@ -682,7 +657,6 @@ set(CONTRACTOR_LIBRARIES
682657
${BOOST_BASE_LIBRARIES}
683658
${CMAKE_THREAD_LIBS_INIT}
684659
${USED_LUA_LIBRARIES}
685-
${MAYBE_STXXL_LIBRARY}
686660
${TBB_LIBRARIES}
687661
${MAYBE_RT_LIBRARY}
688662
${MAYBE_COVERAGE_LIBRARIES})
@@ -702,7 +676,6 @@ set(STORAGE_LIBRARIES
702676
set(UTIL_LIBRARIES
703677
${BOOST_BASE_LIBRARIES}
704678
${CMAKE_THREAD_LIBS_INIT}
705-
${MAYBE_STXXL_LIBRARY}
706679
${TBB_LIBRARIES}
707680
${MAYBE_COVERAGE_LIBRARIES}
708681
${ZLIB_LIBRARY})
@@ -734,6 +707,11 @@ if (ENABLE_ASSERTIONS)
734707
add_definitions(-DBOOST_ENABLE_ASSERT_HANDLER)
735708
endif()
736709

710+
if (ENABLE_DEBUG_LOGGING)
711+
message(STATUS "Enabling debug logging")
712+
add_definitions(-DENABLE_DEBUG_LOGGING)
713+
endif()
714+
737715
# Add RPATH info to executables so that when they are run after being installed
738716
# (i.e., from /usr/local/bin/) the linker can find library dependencies. For
739717
# more info see http://www.cmake.org/Wiki/CMake_RPATH_handling
@@ -778,6 +756,7 @@ install(TARGETS osrm_customize DESTINATION lib)
778756
install(TARGETS osrm_update DESTINATION lib)
779757
install(TARGETS osrm_contract DESTINATION lib)
780758
install(TARGETS osrm_store DESTINATION lib)
759+
install(TARGETS osrm_guidance DESTINATION lib)
781760

782761

783762
# Install profiles and support library to /usr/local/share/osrm/profiles by default

0 commit comments

Comments
 (0)