-
Notifications
You must be signed in to change notification settings - Fork 14
/
maep.pro
executable file
·77 lines (63 loc) · 3.43 KB
/
maep.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
TEMPLATE = app
TARGET = harbour-maep-qt
DEPENDPATH += .
INCLUDEPATH += .
CONFIG += link_pkgconfig hide_symbols
PKGCONFIG += gobject-2.0 cairo libsoup-2.4 dconf libxml-2.0 libcurl
QT += qml quick positioning sensors
LIBS += -ljpeg
packagesExist(qdeclarative5-boostable) {
DEFINES += HAS_BOOSTER
PKGCONFIG += qdeclarative5-boostable
} else {
warning("qdeclarative-boostable not available; startup times will be slower")
}
isEmpty(PREFIX)
{
PREFIX = /usr
}
DEPLOYMENT_PATH = $$PREFIX/share/$$TARGET
DEFINES += DEPLOYMENT_PATH=\"\\\"\"$${DEPLOYMENT_PATH}\"\\\"\"
DEFINES += ORG=\"\\\"\"maep\"\\\"\"
DEFINES += APP=\"\\\"\"$${TARGET}\"\\\"\"
DEFINES += DATADIR=\"\\\"\"$${DEPLOYMENT_PATH}\"\\\"\"
DEFINES += SAILFISH
DEFINES += VERSION=\"\\\"\"1.4.10\"\\\"\"
DEFINES += G_LOG_DOMAIN=\\\"Maep\\\"
# Input
HEADERS += src/config.h src/misc.h src/conf.h src/net_io.h src/geonames.h src/search.h src/track.h src/img_loader.h src/icon.h src/converter.h src/osm-gps-map/osm-gps-map.h src/osm-gps-map/osm-gps-map-layer.h src/osm-gps-map/sourcemodel.h src/osm-gps-map/osm-gps-map-qt.h src/osm-gps-map/osm-gps-map-osd-classic.h src/osm-gps-map/layer-wiki.h src/osm-gps-map/layer-gps.h src/osm-gps-map/source.h
SOURCES += src/misc.c src/conf.c src/net_io.c src/geonames.c src/search.c src/track.c src/img_loader.c src/icon.c src/converter.c src/osm-gps-map/osm-gps-map.c src/osm-gps-map/osm-gps-map-layer.c src/osm-gps-map/sourcemodel.cpp src/osm-gps-map/osm-gps-map-qt.cpp src/osm-gps-map/osm-gps-map-osd-classic.c src/osm-gps-map/layer-wiki.c src/osm-gps-map/layer-gps.c src/osm-gps-map/source.c src/main.cpp
# Installation
target.path = $$PREFIX/bin
desktop.path = $$PREFIX/share/applications
desktop.files = data/harbour-maep-qt.desktop
icon86.path = $$PREFIX/share/icons/hicolor/86x86/apps
icon86.files = data/86x86/harbour-maep-qt.png
icon108.path = $$PREFIX/share/icons/hicolor/108x108/apps
icon108.files = data/108x108/harbour-maep-qt.png
icon128.path = $$PREFIX/share/icons/hicolor/128x128/apps
icon128.files = data/128x128/harbour-maep-qt.png
icon172.path = $$PREFIX/share/icons/hicolor/172x172/apps
icon172.files = data/172x172/harbour-maep-qt.png
qml.path = $$DEPLOYMENT_PATH
qml.files = src/main.qml src/Header.qml src/PlaceHeader.qml src/TrackHeader.qml src/TrackView.qml src/Sources.qml src/About.qml src/Settings.qml src/FileChooser.qml
resources.path = $$DEPLOYMENT_PATH
resources.files = data/wikipedia_w.48.png data/icon-camera-zoom-wide.png data/icon-camera-zoom-tele.png data/icon-cover-remove.png data/AUTHORS data/COPYING
INSTALLS += target desktop icon86 icon108 icon128 icon172 qml resources qm
OTHER_FILES += rpm/maep-qt.spec
TS_FILE = translations/$${TARGET}.ts
TRANSLATIONS = translations/fr_FR.ts translations/es.ts translations/zh_CN.ts
qm.files = $$replace(TRANSLATIONS, \.ts, .qm)
qm.path = $$DEPLOYMENT_PATH/translations
qm.CONFIG += no_check_exist
# update the ts files in the src dir and then copy them to the out dir
qm.commands += lupdate -noobsolete src/ -ts $${TS_FILE} $$TRANSLATIONS && \
mkdir -p translations && \
[ \"$${OUT_PWD}\" != \"$${_PRO_FILE_PWD_}\" ] && \
cp -af $${TRANSLATIONS_IN} $${OUT_PWD}/translations || :
qm.commands += ; lrelease $${TRANSLATIONS} || :
# This part is to circumvent harbour limitations.
QMAKE_RPATHDIR = $$DEPLOYMENT_PATH/lib
QT += qml-private core-private
SOURCES += qmlLibs/qquickfolderlistmodel.cpp qmlLibs/fileinfothread.cpp
HEADERS += qmlLibs/qquickfolderlistmodel.h qmlLibs/fileproperty_p.h qmlLibs/fileinfothread_p.h