forked from organicmaps/organicmaps
[build] Fix cmake in build_omim and error detection in booking_hotels
This commit is contained in:
parent
0010540f22
commit
42ceabc905
2 changed files with 5 additions and 5 deletions
|
@ -60,7 +60,7 @@ class BookingApi:
|
|||
stream = urllib2.urlopen(request)
|
||||
payload = stream.read()
|
||||
data = json.loads(payload)
|
||||
if isinstance(data, dict) and 'ruid' in data:
|
||||
if isinstance(data, dict) and 'message' in data and 'code' in data:
|
||||
logging.error('Api call failed with error: {0} Code: {1}'.format(data['message'], data['code']))
|
||||
return None
|
||||
return data
|
||||
|
|
|
@ -57,9 +57,9 @@ fi
|
|||
# Find qmake, prefer qmake-qt5
|
||||
source "$OMIM_PATH/tools/autobuild/detect_qmake.sh"
|
||||
|
||||
# Find cmake, prefer cmake28
|
||||
# Find cmake, prefer cmake3
|
||||
if [ ! -x "${CMAKE-}" ]; then
|
||||
CMAKE=cmake28
|
||||
CMAKE=cmake3
|
||||
if ! hash "$CMAKE" 2>/dev/null; then
|
||||
CMAKE=cmake
|
||||
fi
|
||||
|
@ -113,11 +113,11 @@ build_conf_osrm()
|
|||
export BOOST_INCLUDEDIR="$BOOST_PATH/include"
|
||||
cd "$DIRNAME"
|
||||
|
||||
if [[ -z ${CMAKE_OMIM+x} ]]; then
|
||||
if [[ -n "${USE_CMAKE-}" ]]; then
|
||||
DIRNAME="$DIRNAME/out/$CONF"
|
||||
mkdir -p "$DIRNAME"
|
||||
cd "$DIRNAME"
|
||||
cmake "$OMIM_PATH"
|
||||
"$CMAKE" "$OMIM_PATH"
|
||||
make routing routing_common indexer geometry coding base jansson -j $PROCESSES
|
||||
else
|
||||
"$QMAKE" "$OMIM_PATH/omim.pro" ${SPEC:+-spec $SPEC} "CONFIG+=$CONF osrm no-tests" ${CONFIG+"CONFIG*=$CONFIG"}
|
||||
|
|
Loading…
Add table
Reference in a new issue