Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
Bundles osrm-components, resolves #283
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-j-h committed Jan 23, 2017
1 parent c04f9a3 commit 281966a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,14 @@ if(BUILD_LIBOSRM)
add_custom_command(OUTPUT ${BINDING_DIR}/osrm-datastore
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:osrm-datastore> ${BINDING_DIR}
DEPENDS osrm-datastore ${BINDING_DIR})
add_custom_command(OUTPUT ${BINDING_DIR}/osrm-components
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:osrm-components> ${BINDING_DIR}
DEPENDS osrm-components ${BINDING_DIR})
list(APPEND OSRM_BINARIES "${BINDING_DIR}/osrm-extract")
list(APPEND OSRM_BINARIES "${BINDING_DIR}/osrm-contract")
list(APPEND OSRM_BINARIES "${BINDING_DIR}/osrm-routed")
list(APPEND OSRM_BINARIES "${BINDING_DIR}/osrm-datastore")
list(APPEND OSRM_BINARIES "${BINDING_DIR}/osrm-components")
else()
# These will be set by the find script
# LibOSRM_INCLUDE_DIRS
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ node_modules: package.json
build/%/node-osrm.node: ./node_modules
mkdir -p build &&\
cd build &&\
cmake .. -DCMAKE_BUILD_TYPE=$* -DBUILD_LIBOSRM=On -DENABLE_LTO=ON &&\
cmake .. -DCMAKE_BUILD_TYPE=$* -DBUILD_LIBOSRM=On -DENABLE_LTO=On &&\
VERBOSE=1 make -j${JOBS} &&\
cd ..

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ osrm.route({coordinates: [[13.388860,52.517037], [13.39319,52.533976]]}, (err, r
});
```

We also ship the `osrm-components` binary which allows you to extract a GeoJSON file showing connectivity issues (small components) in the road network.

See the [full documentation](docs/api.md) for more examples.

# Source Build
Expand Down

0 comments on commit 281966a

Please sign in to comment.