Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2017-02-28 17:42:49 +0300
committerSergey Yershov <syershov@maps.me>2017-02-28 21:00:37 +0300
commitf36d72bb26c43cb977116494dab611d239ee21d2 (patch)
treea4e673fb1e70513d69053aa47f8ec4ee4ea6cbaa
parentf9835819217e32bc881f5c1ee67477ed07e3b49c (diff)
[build] Use system-provided boost instead of 3party.beta-655
-rw-r--r--3party/opening_hours/CMakeLists.txt2
-rw-r--r--3party/opening_hours/opening_hours.pro2
-rw-r--r--3party/opening_hours/opening_hours_parsers.hpp1
-rw-r--r--3party/opening_hours/parse_months.cpp1
-rw-r--r--3party/opening_hours/parse_opening_hours.cpp1
-rw-r--r--3party/opening_hours/parse_timespans.cpp1
-rw-r--r--3party/opening_hours/parse_weekdays.cpp1
-rw-r--r--3party/opening_hours/parse_weeks.cpp1
-rw-r--r--3party/opening_hours/parse_years.cpp1
-rw-r--r--CMakeLists.txt16
-rw-r--r--coding/simple_dense_coding.cpp2
-rw-r--r--pyhelpers/vector_list_conversion.hpp1
-rw-r--r--tracking/pytracking/CMakeLists.txt11
-rw-r--r--traffic/pytraffic/CMakeLists.txt14
14 files changed, 21 insertions, 34 deletions
diff --git a/3party/opening_hours/CMakeLists.txt b/3party/opening_hours/CMakeLists.txt
index c073ad93fa..b62632c4e9 100644
--- a/3party/opening_hours/CMakeLists.txt
+++ b/3party/opening_hours/CMakeLists.txt
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.2)
project(opening_hours C CXX)
+add_definitions(-DBOOST_SPIRIT_USE_PHOENIX_V3)
+
include_directories(src ../../)
add_compile_options(
diff --git a/3party/opening_hours/opening_hours.pro b/3party/opening_hours/opening_hours.pro
index 467bf7996b..2a09287338 100644
--- a/3party/opening_hours/opening_hours.pro
+++ b/3party/opening_hours/opening_hours.pro
@@ -13,6 +13,8 @@ ROOT_DIR = ../..
include($$ROOT_DIR/common.pri)
+DEFINES *= BOOST_SPIRIT_USE_PHOENIX_V3
+
HEADERS += opening_hours.hpp \
opening_hours_parsers.hpp \
parse_opening_hours.hpp \
diff --git a/3party/opening_hours/opening_hours_parsers.hpp b/3party/opening_hours/opening_hours_parsers.hpp
index cdc06fb8f7..8758f560be 100644
--- a/3party/opening_hours/opening_hours_parsers.hpp
+++ b/3party/opening_hours/opening_hours_parsers.hpp
@@ -112,4 +112,3 @@ public:
} // namespace parsing
} // namespace osmoh
-#undef BOOST_SPIRIT_USE_PHOENIX_V3
diff --git a/3party/opening_hours/parse_months.cpp b/3party/opening_hours/parse_months.cpp
index d16e1864e8..12cde9eedf 100644
--- a/3party/opening_hours/parse_months.cpp
+++ b/3party/opening_hours/parse_months.cpp
@@ -1,7 +1,6 @@
#include "parse_opening_hours.hpp"
#include "opening_hours_parsers.hpp"
-#define BOOST_SPIRIT_USE_PHOENIX_V3
#include <boost/spirit/include/phoenix_bind.hpp>
#include <boost/spirit/include/phoenix_operator.hpp>
diff --git a/3party/opening_hours/parse_opening_hours.cpp b/3party/opening_hours/parse_opening_hours.cpp
index 0030d797da..fb7cdd14e2 100644
--- a/3party/opening_hours/parse_opening_hours.cpp
+++ b/3party/opening_hours/parse_opening_hours.cpp
@@ -1,7 +1,6 @@
#include "parse_opening_hours.hpp"
#include "opening_hours_parsers.hpp"
-#define BOOST_SPIRIT_USE_PHOENIX_V3
#include <boost/spirit/include/phoenix_bind.hpp>
#include <boost/spirit/include/phoenix_operator.hpp>
#include <boost/spirit/include/phoenix_stl.hpp>
diff --git a/3party/opening_hours/parse_timespans.cpp b/3party/opening_hours/parse_timespans.cpp
index 7c1af6b5f5..0c1164bc3d 100644
--- a/3party/opening_hours/parse_timespans.cpp
+++ b/3party/opening_hours/parse_timespans.cpp
@@ -1,7 +1,6 @@
#include "parse_opening_hours.hpp"
#include "opening_hours_parsers.hpp"
-#define BOOST_SPIRIT_USE_PHOENIX_V3
#include <boost/spirit/include/phoenix_bind.hpp>
#include <boost/spirit/include/phoenix_operator.hpp>
diff --git a/3party/opening_hours/parse_weekdays.cpp b/3party/opening_hours/parse_weekdays.cpp
index e27ee7070b..cc66970afe 100644
--- a/3party/opening_hours/parse_weekdays.cpp
+++ b/3party/opening_hours/parse_weekdays.cpp
@@ -1,7 +1,6 @@
#include "parse_opening_hours.hpp"
#include "opening_hours_parsers.hpp"
-#define BOOST_SPIRIT_USE_PHOENIX_V3
#include <boost/spirit/include/phoenix_bind.hpp>
#include <boost/spirit/include/phoenix_operator.hpp>
diff --git a/3party/opening_hours/parse_weeks.cpp b/3party/opening_hours/parse_weeks.cpp
index 69b55b4189..43790e589a 100644
--- a/3party/opening_hours/parse_weeks.cpp
+++ b/3party/opening_hours/parse_weeks.cpp
@@ -1,7 +1,6 @@
#include "parse_opening_hours.hpp"
#include "opening_hours_parsers.hpp"
-#define BOOST_SPIRIT_USE_PHOENIX_V3
#include <boost/spirit/include/phoenix_bind.hpp>
namespace osmoh
diff --git a/3party/opening_hours/parse_years.cpp b/3party/opening_hours/parse_years.cpp
index 90d5f186a5..1fb4599fe3 100644
--- a/3party/opening_hours/parse_years.cpp
+++ b/3party/opening_hours/parse_years.cpp
@@ -1,7 +1,6 @@
#include "parse_opening_hours.hpp"
#include "opening_hours_parsers.hpp"
-#define BOOST_SPIRIT_USE_PHOENIX_V3
#include <boost/spirit/include/phoenix_bind.hpp>
namespace osmoh
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2a4fd5e48c..a57bc144eb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -73,6 +73,20 @@ endif()
find_package(Threads)
+set(Boost_USE_MULTITHREADED ON)
+add_definitions(-DBOOST_BIND_NO_PLACEHOLDERS)
+
+if (PLATFORM_MAC)
+ set(Boost_USE_STATIC_LIBS ON)
+ set(Boost_USE_STATIC_RUNTIME ON)
+endif()
+
+if (PYBINDINGS)
+ find_package(Boost 1.54 REQUIRED COMPONENTS python)
+else()
+ find_package(Boost 1.54)
+endif()
+
if (NOT PLATFORM_IPHONE AND NOT PLATFORM_ANDROID)
find_package(Qt5Core REQUIRED)
find_package(Qt5Network REQUIRED)
@@ -103,7 +117,7 @@ include_directories(
${CMAKE_HOME_DIRECTORY}
${Qt5Core_INCLUDE_DIRS}
${Qt5Network_INCLUDE_DIRS}
- ${CMAKE_HOME_DIRECTORY}/3party/boost
+ ${Boost_INCLUDE_DIRS}
)
# Functions for using in subdirectories
diff --git a/coding/simple_dense_coding.cpp b/coding/simple_dense_coding.cpp
index 6df600fa73..6a18241cd1 100644
--- a/coding/simple_dense_coding.cpp
+++ b/coding/simple_dense_coding.cpp
@@ -5,7 +5,7 @@
#include "std/algorithm.hpp"
#include "std/limits.hpp"
-#include "3party/boost/boost/range/adaptor/transformed.hpp"
+#include <boost/range/adaptor/transformed.hpp>
namespace coding
{
diff --git a/pyhelpers/vector_list_conversion.hpp b/pyhelpers/vector_list_conversion.hpp
index d39bc91a0c..2aa12a9c61 100644
--- a/pyhelpers/vector_list_conversion.hpp
+++ b/pyhelpers/vector_list_conversion.hpp
@@ -3,6 +3,7 @@
#include "std/vector.hpp"
#include <boost/python.hpp>
+#include <boost/python/stl_iterator.hpp>
namespace
{
diff --git a/tracking/pytracking/CMakeLists.txt b/tracking/pytracking/CMakeLists.txt
index 3cf7f1d75e..37c88d85b7 100644
--- a/tracking/pytracking/CMakeLists.txt
+++ b/tracking/pytracking/CMakeLists.txt
@@ -6,19 +6,8 @@ set(
SRC
bindings.cpp
)
-add_compile_options(
- "-Wno-unused-local-typedef"
-)
-
-set(Boost_USE_MULTITHREADED ON)
-
-if (PLATFORM_MAC)
- set(Boost_USE_STATIC_LIBS ON)
- set(Boost_USE_STATIC_RUNTIME ON)
-endif()
find_package(PythonLibs 2.7 REQUIRED)
-find_package(Boost 1.54 REQUIRED COMPONENTS python)
include_directories(${PYTHON_INCLUDE_DIRS})
add_library(${PROJECT_NAME} MODULE ${SRC})
diff --git a/traffic/pytraffic/CMakeLists.txt b/traffic/pytraffic/CMakeLists.txt
index 739c58fa91..b08f15fec9 100644
--- a/traffic/pytraffic/CMakeLists.txt
+++ b/traffic/pytraffic/CMakeLists.txt
@@ -7,21 +7,7 @@ set(
bindings.cpp
)
-# Suppress boost-python warnings
-add_compile_options(
- "-Wno-unused-local-typedef"
-)
-
-set(Boost_USE_MULTITHREADED ON)
-
-# For macOS we can use static linking, on Linux we can't.
-if (PLATFORM_MAC)
- set(Boost_USE_STATIC_LIBS ON)
- set(Boost_USE_STATIC_RUNTIME ON)
-endif()
-
find_package(PythonLibs 2.7 REQUIRED)
-find_package(Boost 1.54 REQUIRED COMPONENTS python)
include_directories(${PYTHON_INCLUDE_DIRS})
add_library(${PROJECT_NAME} MODULE ${SRC})