forked from iRail/harbour-berail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathharbour-berail.pro
167 lines (147 loc) · 5.44 KB
/
harbour-berail.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
161
162
163
164
165
166
167
#
# This file is part of BeRail.
#
# BeRail is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# BeRail is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with BeRail. If not, see <http://www.gnu.org/licenses/>.
#
# The name of your application
TARGET = harbour-berail
CONFIG += sailfishapp
QT += core \
network \
positioning \
concurrent \
sql
CONFIG += console \
c++11
# Add external module QtCSV to read CSV files
include(qtcsv/qtcsv.pri)
# OS module notification support
PKGCONFIG += nemonotifications-qt5
QT += dbus
# Disable debug and warning messages while releasing for security reasons
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT \
QT_NO_WARNING_OUTPUT
# APP_VERSION retrieved from .spec file
DEFINES += APP_VERSION=\"\\\"$${VERSION}\\\"\"
SAILFISHAPP_ICONS = 86x86 108x108 128x128 256x256
# Enable translations
CONFIG += sailfishapp_i18n \
sailfishapp_i18n_idbased
TRANSLATIONS += translations/harbour-berail.ts \
translations/harbour-berail-de.ts \
translations/harbour-berail-nl.ts
DISTFILES += \
qml/pages/AboutPage.qml \
qml/pages/TextLabel.qml \
qml/pages/GlassButton.qml \
qml/resources/icons/icon-translate.png \
qml/resources/icons/icon-paypal.png \
qml/resources/icons/icon-github.png \
qml/resources/icons/icon-fontawesome.png \
qml/resources/icons/icon-code.png \
qml/pages/components/TextLabel.qml \
qml/pages/components/GlassButton.qml \
qml/pages/js/station.js \
qml/pages/StationListPage.qml \
qml/pages/js/util.js \
qml/pages/DatePickerPage.qml \
qml/pages/components/TripItem.qml \
qml/pages/js/trip.js \
qml/pages/components/LiveBoardItem.qml \
qml/pages/components/CancelOverlay.qml \
qml/pages/js/liveboard.js \
qml/pages/components/LoadIndicator.qml \
qml/pages/LiveboardPage.qml \
rpm/harbour-berail.changes \
qml/pages/js/disturbances.js \
qml/pages/components/DisturbancesView.qml \
qml/pages/DisturbancesPage.qml \
qml/pages/SettingsPage.qml \
qml/components/GlassStationButton.qml \
qml/pages/TripDetailHeader.qml \
stations/stops.csv \
stations/stations.csv \
stations/facilities.csv
RESOURCES += \
qml/resources/resources.qrc
HEADERS += \
src/logger.h \
src/os.h \
src/linkedconnections/csa/csaplanner.h \
src/linkedconnections/csa/csastationstopprofile.h \
src/linkedconnections/csa/csatrainprofile.h \
src/linkedconnections/csa/csaroute.h \
src/linkedconnections/csa/csarouteleg.h \
src/linkedconnections/csa/csatransfer.h \
src/linkedconnections/csa/csamessage.h \
src/linkedconnections/csa/csaroutelegend.h \
src/linkedconnections/csa/csavehicle.h \
src/linkedconnections/csa/csastation.h \
src/linkedconnections/csa/csavehiclestop.h \
src/linkedconnections/csa/csastationfactory.h \
src/linkedconnections/fragments/fragmentsfactory.h \
src/linkedconnections/fragments/fragmentsfragment.h \
src/linkedconnections/fragments/fragmentspage.h \
src/linkedconnections/csa/csanullstation.h \
src/network/networkmanager.h \
src/database/databasemanager.h
SOURCES += src/harbour-berail.cpp \
src/logger.cpp \
src/os.cpp \
src/linkedconnections/csa/csaplanner.cpp \
src/linkedconnections/csa/csastationstopprofile.cpp \
src/linkedconnections/csa/csatrainprofile.cpp \
src/linkedconnections/csa/csaroute.cpp \
src/linkedconnections/csa/csarouteleg.cpp \
src/linkedconnections/csa/csatransfer.cpp \
src/linkedconnections/csa/csamessage.cpp \
src/linkedconnections/csa/csaroutelegend.cpp \
src/linkedconnections/csa/csavehicle.cpp \
src/linkedconnections/csa/csastation.cpp \
src/linkedconnections/csa/csavehiclestop.cpp \
src/linkedconnections/csa/csastationfactory.cpp \
src/linkedconnections/fragments/fragmentsfactory.cpp \
src/linkedconnections/fragments/fragmentsfragment.cpp \
src/linkedconnections/fragments/fragmentspage.cpp \
src/linkedconnections/csa/csanullstation.cpp \
src/network/networkmanager.cpp \
src/database/databasemanager.cpp
OTHER_FILES += qml/harbour-berail.qml \
qml/cover/CoverPage.qml \
qml/pages/FirstPage.qml \
rpm/harbour-berail.spec \
rpm/harbour-berail.yaml \
translations/*.ts \
harbour-berail.desktop
# Generate test builds if required
tests {
message(Unittest mode)
QT += testlib
SOURCES -= src/harbour-berail.cpp
HEADERS += tests/database/databasemanagertest.h \
tests/csa/csaplannertest.h \
tests/network/networkmanagertest.h \
tests/fragments/fragmentsfactorytest.h \
tests/fragments/fragmentsfragmenttest.h \
tests/fragments/fragmentspagetest.h
SOURCES += tests/database/databasemanagertest.cpp \
tests/csa/csaplannertest.cpp \
tests/network/networkmanagertest.cpp \
tests/fragments/fragmentsfactorytest.cpp \
tests/fragments/fragmentsfragmenttest.cpp \
tests/fragments/fragmentspagetest.cpp \
tests/harbour-berail-test.cpp
} else {
message(Normal mode)
}