-
Notifications
You must be signed in to change notification settings - Fork 17
/
GPSInfo.pro
78 lines (62 loc) · 1.93 KB
/
GPSInfo.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
TARGET = harbour-gpsinfo
CONFIG += sailfishapp
SOURCES += \
src/gpsdatasource.cpp \
src/qmlsettingswrapper.cpp \
src/gpsinfosettings.cpp \
src/app.cpp \
src/harbour-gpsinfo.cpp
OTHER_FILES += \
qml/pages/CoverPage.qml \
qml/pages/FirstPage.qml \
qml/pages/InfoField.qml \
qml/pages/SettingsPage.qml \
qml/LocationFormatter.js \
qml/providers/Providers.qml \
qml/pages/ShowGridRowLabel.qml \
qml/pages/AboutPage.qml \
qml/pages/LicensePage.qml \
qml/license.js \
rpm/harbour-gpsinfo.spec \
harbour-gpsinfo.desktop \
qml/harbour-gpsinfo.qml \
qml/pages/SatelliteInfoPage.qml \
qml/CircleCalculator.js
HEADERS += \
src/gpsdatasource.h \
src/qmlsettingswrapper.h \
src/gpsinfosettings.h \
src/app.h
QT += positioning
LANGUAGES = de en es fi fr nl pl ru sv
defineReplace(prependAll) {
for(a, $$1): result += $$2$${a}$$3
return($$result)
}
TRANSLATIONS = $$prependAll(LANGUAGES, $$PWD/i18n/, .ts)
TRANSLATIONS_FILES =
qtPrepareTool(LRELEASE, lrelease)
for(tsfile, TRANSLATIONS) {
qmfile = $$shadowed($$tsfile)
qmfile ~= s,.ts$,.qm,
qmdir = $$OUT_PWD/locales
qmfile = $$qmdir/$$basename(qmfile)
!exists($$qmdir) {
mkpath($$qmdir)|error("Aborting.")
}
command = $$LRELEASE -removeidentical $$tsfile -qm $$qmfile
system($$command)|error("Failed to run: $$command")
TRANSLATIONS_FILES += $$relative_path($$qmfile, $$OUT_PWD/)
}
locales.path = /usr/share/harbour-gpsinfo/locales
locales.files = $$TRANSLATIONS_FILES
images.files = \
images/coverbg.png
images.path = /usr/share/harbour-gpsinfo/images
icon108.files = images/icon108/harbour-gpsinfo.png
icon108.path = /usr/share/icons/hicolor/108x108/apps
icon128.files = images/icon128/harbour-gpsinfo.png
icon128.path = /usr/share/icons/hicolor/128x128/apps
icon256.files = images/icon256/harbour-gpsinfo.png
icon256.path = /usr/share/icons/hicolor/256x256/apps
INSTALLS += locales images icon108 icon128 icon256