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

search_engine_pylib.pro « search_engine_pylib « search - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4e64bf1de1842aff7f23150ca01f20f427fe390c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
TARGET = search_engine_pylib

TEMPLATE = lib
CONFIG += plugin no_plugin_name_prefix

QMAKE_LFLAGS_PLUGIN -= -dynamiclib
QMAKE_EXTENSION_SHLIB = so
QT *= core network

ROOT_DIR = ../..
include($$ROOT_DIR/common.pri)

DEFINES += BOOST_PYTHON_DYNAMIC_LIB BOOST_BIND_NO_PLACEHOLDERS

INCLUDEPATH -= $$ROOT_DIR/3party/boost

# For Mac boost is built with libc++, for Linux with libstdc++.
# We do not support search_engine_pylib for other combinations of
# OS and c++ standard library.
macx-clang {
    QMAKE_LFLAGS_PLUGIN += -bundle

    LIBRARY_PYTHON=/Library/Frameworks/Python.framework/Versions/2.7
    SYSTEM_LIBRARY_PYTHON=/System/Library/Frameworks/Python.framework/Versions/2.7

    exists($$LIBRARY_PYTHON) {
        INCLUDEPATH += $$LIBRARY_PYTHON/include/python2.7
        LIBS += -L$$LIBRARY_PYTHON/lib -lpython2.7
    } else:exists($$SYSTEM_LIBRARY_PYTHON) {
        INCLUDEPATH += $$SYSTEM_LIBRARY_PYTHON/include/python2.7
        LIBS += -L$$SYSTEM_LIBRARY_PYTHON/lib -lpython2.7
    } else {
        error("Can't find Python2.7")
    }

    LIBS *= "-framework IOKit"
    LIBS *= "-framework SystemConfiguration"

    LIBS *= -L/usr/local/opt/qt5/lib
    LIBS *= "-framework QtCore"
    LIBS *= "-framework QtNetwork"

    INCLUDEPATH += /usr/local/include
    LIBS += -L/usr/local/lib -lboost_python

    INCLUDEPATH += /usr/local/opt/qt5/include
} else:linux-clang {
    INCLUDEPATH += /usr/include
    LIBS += -L/usr/lib/x86_64-linux-gnu/ -lboost_python

    INCLUDEPATH += /usr/include/python2.7
    LIBS += -L/usr/lib -lpython2.7
} else {
    error("Can't build search_engine_pylib - wrong spec $$QMAKESPEC")
}

LIBS += -lsearch_tests_support \
        -lsearch \
        -lstorage \
        -lindexer \
        -leditor \
        -lgeometry \
        -lplatform \
        -lcoding \
        -lbase \
        -lopening_hours \
        -ltomcrypt \
        -lsuccinct \
        -lpugixml \
        -lprotobuf \
        -ljansson \
        -loauthcpp \
        -lstats_client

SOURCES += api.cpp \