forked from rinigus/osmscout-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosmscout-server_silica.pro
112 lines (91 loc) · 2.8 KB
/
osmscout-server_silica.pro
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# NOTICE:
#
# Application name defined in TARGET has a corresponding QML filename.
# If name defined in TARGET is changed, the following needs to be done
# to match new name:
# - corresponding QML filename must be changed
# - desktop icon filename must be changed
# - desktop filename must be changed
# - icon definition filename in desktop file must be changed
# - translation filenames have to be changed
# The name of your application
TARGET = harbour-osmscout-server
QT += core gui network
CONFIG += c++11
CONFIG += sailfishapp sailfishapp_no_deploy_qml
CONFIG += use_map_qt
#CONFIG += use_map_cairo
# to disable building translations every time, comment out the
# following CONFIG line
CONFIG += sailfishapp_i18n
# installs
qml.files = qml
qml.path = /usr/share/$${TARGET}
INSTALLS += qml
stylesheets.files = stylesheets
stylesheets.path = /usr/share/$${TARGET}
INSTALLS += stylesheets
data.files = data
data.path = /usr/share/$${TARGET}
INSTALLS += data
# defines
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
DEFINES += IS_SAILFISH_OS
SOURCES += \
src/dbmaster.cpp \
src/main.cpp \
src/requestmapper.cpp \
src/appsettings.cpp \
src/dbmaster_route.cpp \
src/dbmaster_search.cpp \
src/dbmaster_map.cpp \
src/osmscout-server_silica.cpp \
src/searchresults.cpp \
src/infohub.cpp \
src/rollinglogger.cpp \
src/consolelogger.cpp \
src/routingforhuman.cpp
OTHER_FILES += qml/osmscout-server.qml \
qml/cover/CoverPage.qml \
rpm/osmscout-server.spec \
translations/*.ts
include(src/uhttp/uhttp.pri)
HEADERS += \
src/dbmaster.h \
src/requestmapper.h \
src/appsettings.h \
src/config.h \
src/searchresults.h \
src/infohub.h \
src/rollinglogger.h \
src/consolelogger.h \
src/routingforhuman.h
use_map_qt {
DEFINES += USE_OSMSCOUT_MAP_QT
LIBS += -losmscout_map_qt
}
use_map_cairo {
DEFINES += USE_OSMSCOUT_MAP_CAIRO
LIBS += -losmscout_map_cairo
# those disappear if we use PKGCONFIG
LIBS += -pie -rdynamic -L/usr/lib/ -lsailfishapp -lmdeclarativecache5
CONFIG += link_pkgconfig
PKGCONFIG += pango cairo
}
LIBS += -losmscout_map -losmscout -lmarisa
SAILFISHAPP_ICONS = 86x86 108x108 128x128 256x256
CONFIG(release, debug|release) {
DEFINES += QT_NO_WARNING_OUTPUT QT_NO_DEBUG_OUTPUT
}
# German translation is enabled as an example. If you aren't
# planning to localize your app, remember to comment out the
# following TRANSLATIONS line. And also do not forget to
# modify the localized app name in the the .desktop file.
TRANSLATIONS += translations/harbour-osmscout-server-es.ts
DISTFILES += \
qml/pages/StartPage.qml \
qml/pages/AboutPage.qml \
harbour-osmscout-server.desktop \
rpm/harbour-osmscout-server.yaml \
rpm/harbour-osmscout-server.changes \
rpm/harbour-osmscout-server.spec