-
Notifications
You must be signed in to change notification settings - Fork 0
/
lcrail.pro
160 lines (147 loc) · 6.35 KB
/
lcrail.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# 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 = lcrail
# QMake config
CONFIG += sailfishapp \
c++11
# Qt modules
QT += core \
network \
positioning \
concurrent \
sql
# OS module notification support
PKGCONFIG += nemonotifications-qt5
QT += dbus
SOURCES += src/lcrail.cpp \
src/models/liveboard.cpp \
src/models/stations.cpp \
src/models/router.cpp \
src/models/trip.cpp \
src/sailfishos.cpp
# Enable GCOV coverage reports (https://medium.com/@kelvin_sp/generating-code-coverage-with-qt-5-and-gcov-on-mac-os-4999857f4676)
# --coverage option is synonym for: -fprofile-arcs -ftest-coverage -lgcov
QMAKE_CXXFLAGS += --coverage
QMAKE_LFLAGS += --coverage
# QRail library build location
CONFIG(debug, debug|release) {
QRAIL_LOCATION = $$PWD/QRail/build/debug
}
else {
QRAIL_LOCATION = $$PWD/QRail/build/release
}
LIBS += $$QRAIL_LOCATION/libqrail.a
## Headers include path of the QRail library
INCLUDEPATH += $$PWD/QRail/src/include \
$$PWD/QRail/qtcsv/include
DISTFILES += qml/lcrail.qml \
qml/cover/CoverPage.qml \
qml/pages/FirstPage.qml \
rpm/lcrail.changes \
rpm/lcrail.spec \
rpm/lcrail.yaml \
translations/*.ts \
lcrail.desktop \
qml/universal-components/README.md \
qml/universal-components/controls/UC/ApplicationWindow.qml \
qml/universal-components/controls/UC/BackgroundRectangle.qml \
qml/universal-components/controls/UC/BusyIndicator.qml \
qml/universal-components/controls/UC/Button.qml \
qml/universal-components/controls/UC/ComboBox.qml \
qml/universal-components/controls/UC/Dialog.qml \
qml/universal-components/controls/UC/IconButton.qml \
qml/universal-components/controls/UC/Label.qml \
qml/universal-components/controls/UC/Menu.qml \
qml/universal-components/controls/UC/MenuItem.qml \
qml/universal-components/controls/UC/Page.qml \
qml/universal-components/controls/UC/PageHeader.qml \
qml/universal-components/controls/UC/PlatformFlickable.qml \
qml/universal-components/controls/UC/PlatformListView.qml \
qml/universal-components/controls/UC/Popup.qml \
qml/universal-components/controls/UC/ProgressBar.qml \
qml/universal-components/controls/UC/Screen.qml \
qml/universal-components/controls/UC/ScrollBar.qml \
qml/universal-components/controls/UC/SearchField.qml \
qml/universal-components/controls/UC/SectionHeader.qml \
qml/universal-components/controls/UC/Slider.qml \
qml/universal-components/controls/UC/Switch.qml \
qml/universal-components/controls/UC/TextArea.qml \
qml/universal-components/controls/UC/TextField.qml \
qml/universal-components/controls/UC/TextSwitch.qml \
qml/universal-components/controls/UC/TopMenu.qml \
qml/universal-components/controls/UC/VerticalScrollDecorator.qml \
qml/universal-components/silica/UC/ApplicationWindow.qml \
qml/universal-components/silica/UC/BackgroundRectangle.qml \
qml/universal-components/silica/UC/BusyIndicator.qml \
qml/universal-components/silica/UC/Button.qml \
qml/universal-components/silica/UC/ComboBox.qml \
qml/universal-components/silica/UC/Dialog.qml \
qml/universal-components/silica/UC/IconButton.qml \
qml/universal-components/silica/UC/Label.qml \
qml/universal-components/silica/UC/Menu.qml \
qml/universal-components/silica/UC/MenuItem.qml \
qml/universal-components/silica/UC/Page.qml \
qml/universal-components/silica/UC/PageHeader.qml \
qml/universal-components/silica/UC/PlatformFlickable.qml \
qml/universal-components/silica/UC/PlatformListView.qml \
qml/universal-components/silica/UC/Popup.qml \
qml/universal-components/silica/UC/ProgressBar.qml \
qml/universal-components/silica/UC/Screen.qml \
qml/universal-components/silica/UC/ScrollBar.qml \
qml/universal-components/silica/UC/SearchField.qml \
qml/universal-components/silica/UC/SectionHeader.qml \
qml/universal-components/silica/UC/Slider.qml \
qml/universal-components/silica/UC/Switch.qml \
qml/universal-components/silica/UC/TextArea.qml \
qml/universal-components/silica/UC/TextField.qml \
qml/universal-components/silica/UC/TextSwitch.qml \
qml/universal-components/silica/UC/TopMenu.qml \
qml/universal-components/silica/UC/VerticalScrollDecorator.qml \
qml/universal-components/tests/tst_button.qml \
qml/universal-components/ubuntu/UC/Button.qml \
qml/universal-components/ubuntu/UC/Label.qml \
qml/universal-components/ubuntu/UC/Page.qml \
qml/universal-components/ubuntu/UC/PlatformFlickable.qml \
qml/universal-components/ubuntu/UC/Slider.qml \
qml/universal-components/ubuntu/UC/Switch.qml \
qml/universal-components/ubuntu/UC/TextArea.qml \
qml/universal-components/ubuntu/UC/TextField.qml \
qml/universal-components/ubuntu/UC/VerticalScrollDecorator.qml \
qml/universal-components/tests/README.rst \
qml/components/Menu.qml \
qml/components/ConnectionSelector.qml \
qml/pages/LiveboardPage.qml \
qml/components/liveboard/LiveboardHeader.qml \
qml/components/liveboard/LiveboardDelegate.qml \
qml/js/utils.js \
qml/pages/StationSelectorPage.qml \
qml/components/station/StationSelectorHeader.qml \
qml/components/station/StationSelectorDelegate.qml \
qml/pages/RouterPage.qml \
qml/components/router/RouterDelegate.qml \
qml/components/router/RouterStationIndicator.qml \
qml/components/router/RouterTransferIndicator.qml
SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172
# to disable building translations every time, comment out the
# following CONFIG line
CONFIG += sailfishapp_i18n
# 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/lcrail-de.ts
HEADERS += \
src/models/liveboard.h \
src/models/stations.h \
src/models/router.h \
src/models/trip.h \
src/sailfishos.h