Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build osmium_convert in order to be able to eventually replace osmosis #1877

Merged
merged 6 commits into from
Jan 13, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Build osmium_convert in order to be able to eventually replace osmosis
This provides a script to build the libosmium examples such as
osmium_convert (to convert from xml to pbf).

I initially tried a CMake ExternalProject setup, but this was more
complicated than I initially thought; this is the more elegant solution.

The goal is to eventually rip out osmosis, so that we no longer depend
on java for the cucumber tests.

References:

- #1788
daniel-j-h authored and TheMarex committed Jan 13, 2016
commit 37276371453f208369067bc1f4bb9e4045bc3bbe
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -41,6 +41,7 @@ Thumbs.db
#######################
/build/
/cmake/postinst
/third_party/libosmium/tmp/

# Eclipse related files #
#########################
15 changes: 15 additions & 0 deletions scripts/build_osmium_tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

# Builds command line tools shipped with libosmium for example osmium_convert
# CMake build directory is build/osmium; binaries are located under build/osmium/examples


# e: exit on first error, x: print commands
set -ex

BUILD_DIR=build/osmium

cmake -E remove_directory $BUILD_DIR
cmake -E make_directory $BUILD_DIR
cmake -E chdir $BUILD_DIR cmake ../../third_party/libosmium -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=1 -DBUILD_TESTING=0
cmake -E chdir $BUILD_DIR cmake --build .