1 #-------------------------------------------------
3 # Project created by QtCreator 2010-11-13T19:51:39
5 #-------------------------------------------------
14 CONFIG += link_pkgconfig
16 lessThan(QT_MAJOR_VERSION, 5) {
18 CONFIG += webkit mobility
21 QT += qml quick concurrent location webkitwidgets webkit
24 contains(MEEGO_EDITION, harmattan) {
30 DEFINES += TARGET_PLATFORM_SAILFISH
32 packagesExist(qdeclarative-boostable) {
33 message("Building with qdeclarative-boostable support")
34 DEFINES += HAS_BOOSTER
35 PKGCONFIG += qdeclarative-boostable
37 warning("qdeclarative-boostable not available; startup times will be slower")
39 QMAKE_LFLAGS += -pie -rdynamic
40 PLATFORM_SOURCES = view.cpp
41 PLATFORM_HEADERS = view.h view_qt5.h
46 DEFINES += TARGET_PLATFORM_HARMATTAN
48 CONFIG += qdeclarative-boostable
49 QMAKE_CXXFLAGS += -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-psabi
50 QMAKE_LFLAGS += -pie -rdynamic
51 PLATFORM_SOURCES = view.cpp
52 PLATFORM_HEADERS = view.h view_qt4.h
57 DEFINES += TARGET_PLATFORM_FREMANTLE
74 !sailfish:!harmattan:!maemo5 {
76 DEFINES += TARGET_PLATFORM_DESKTOP
77 PLATFORM_SOURCES = view.cpp
80 message(Compiling For: $$PLATFORM)
81 message(Platform Sources: $$PLATFORM_SOURCES)
82 message(Qt Version: $$QT_MAJOR_VERSION"."$$QT_MINOR_VERSION)
83 message(Qt Modules Used: $$QT)
84 message(Building version: $$VERSION)
88 VERSION_STRING = '\\"$${VERSION}\\"'
89 DEFINES += QP_VERSION=\"$${VERSION_STRING}\"
91 contains(USE_RESOURCES, 1) {
92 DEFINES += USE_RESOURCES=1
97 DEFINES += QT_NO_DEBUG_OUTPUT
100 TRANSLATIONS = resources/i18n/quandoparte_it.ts
106 stationlistmodel.cpp \
107 stationlistproxymodel.cpp \
110 stationschedulemodel.cpp \
111 stationscheduleitem.cpp
117 stationlistproxymodel.h \
120 stationschedulemodel.h \
121 stationscheduleitem.h
124 resources/harmattan/qml/main.qml \
125 resources/harmattan/qml/StationListPage.qml \
126 resources/harmattan/qml/StationPage.qml \
127 resources/harmattan/qml/SearchBar.qml \
128 resources/harmattan/qml/PageHeader.qml \
129 resources/harmattan/qml/PageHeader.js \
130 resources/harmattan/qml/uiconstants.js \
131 resources/harmattan/qml/StationListPage.js \
132 resources/harmattan/qml/AboutPage.qml \
133 resources/harmattan/qml/InfoBar.qml \
134 resources/harmattan/qml/DroppedShadow.qml \
135 resources/harmattan/qml/DelayIndicator.qml \
136 resources/harmattan/qml/StationScheduleDelegate.qml \
137 resources/sailfish/qml/main.qml \
138 resources/sailfish/qml/pages/AboutPage.qml \
139 resources/sailfish/qml/pages/StationListPage.qml \
140 resources/sailfish/qml/pages/StationPage.qml \
141 resources/sailfish/qml/pages/components/DelayIndicator.qml \
142 resources/sailfish/qml/pages/components/StationScheduleDelegate.qml
145 resources/sailfish/applications/quandoparte.desktop \
146 resources/harmattan/applications/quandoparte.desktop \
147 resources/fremantle/applications/quandoparte.desktop \
148 icons/48x48/quandoparte.png \
149 icons/64x64/quandoparte.png \
150 icons/80x80/quandoparte.png \
151 icons/scalable/quandoparte.svg \
152 icons/sailfish/90x90/quandoparte.png \
153 icons/sailfish/scalable/quandoparte.svg \
154 icons/quandoparte.png \
155 resources/quandoparte.css \
156 resources/arrivals.css \
157 resources/departures.css \
158 $$replace(TRANSLATIONS, .ts, .qm) \
159 resources/stations/stations.qpl \
160 resources/stations/generatelist.xq \
161 resources/stations/generateunclassifiedlist.xq \
163 resources/sailfish/qml/StationListPage.qml
170 PREFIX=/opt/$${TARGET}
175 !maemo5:!harmattan:!sailfish {
180 DESKTOPDIR=/usr/share/applications/hildon
183 DESKTOPDIR=/usr/share/applications
186 DESKTOPDIR=$$PREFIX/share/applications
189 DESKTOPDIR=$$PREFIX/share/applications
192 contains(USE_RESOURCES, 1) {
195 DATADIR=$$PREFIX/share/apps/$${TARGET}
197 DEFINES += DATADIR=\\\"$${DATADIR}\\\" PKGDATADIR=\\\"$${PKGDATADIR}\\\"
199 message(Installing to prefix $$PREFIX)
200 message(Executable to $$BINDIR)
201 message(Desktop file to $$DESKTOPDIR)
202 message(Data to $$DATADIR)
203 message(Extra defines $$DEFINES)
205 target.path = $$BINDIR
209 desktopfile.files = resources/$$PLATFORM/applications/$${TARGET}.desktop
210 desktopfile.path = $$DESKTOPDIR
211 INSTALLS += desktopfile
213 i18n.files = $$replace(TRANSLATIONS, .ts, .qm)
214 stations.files = resources/stations/stations.qpl
216 i18n.path = $$DATADIR/i18n
217 stations.path = $$DATADIR/stations
224 desktopfile.files = resources/$$PLATFORM/applications/$${TARGET}.desktop
225 desktopfile.path = $$DESKTOPDIR
226 INSTALLS += desktopfile
228 i18n.files = $$replace(TRANSLATIONS, .ts, .qm)
229 stations.files = resources/stations/stations.qpl
231 i18n.path = $$DATADIR/i18n
232 stations.path = $$DATADIR/stations
239 icon48.files = icons/48x48/$${TARGET}.png
240 icon64.files = icons/64x64/$${TARGET}.png
241 iconscalable.files = icons/scalable/$${TARGET}.svg
243 icon48.path = /usr/share/icons/hicolor/48x48/apps
244 icon64.path = /usr/share/icons/hicolor/64x64/apps
245 iconscalable.path = /usr/share/icons/hicolor/scalable/apps
248 INSTALLS += iconscalable
252 css.files = resources/$${TARGET}.css resources/arrivals.css resources/departures.css
253 css.path = $$DATADIR/css
254 !contains(USE_RESOURCES, 1) {
260 QML_IMPORT_PATH = resources/sailfish/qml/
261 icon86.files = icons/sailfish/86x86/$${TARGET}.png
262 icon86.path = /usr/share/icons/hicolor/86x86/apps
267 desktopfile.files = resources/$$PLATFORM/applications/$${TARGET}.desktop
268 desktopfile.path = $$DESKTOPDIR
269 INSTALLS += desktopfile
271 icon48.files = icons/48x48/$${TARGET}.png
272 icon48.path = /usr/share/icons/hicolor/48x48/apps
275 icon64.files = icons/64x64/$${TARGET}.png
276 icon64.path = /usr/share/icons/hicolor/64x64/apps
279 iconscalable.files = icons/scalable/$${TARGET}.svg
280 iconscalable.path = /usr/share/icons/hicolor/scalable/apps
281 INSTALLS += iconscalable
285 icon80.files = icons/80x80/$${TARGET}.png
286 icon80.path = /usr/share/icons/hicolor/meegotouch/apps
289 i18n.files = $$replace(TRANSLATIONS, .ts, .qm)
290 i18n.path = $$DATADIR/i18n
293 stations.files = resources/stations/stations.qpl
294 stations.path = $$DATADIR/stations
298 !contains(USE_RESOURCES, 1) {
300 qml.files = resources/sailfish/qml/*.qml \
301 resources/sailfish/qml/*.js \
302 resources/sailfish/qml/pages \
303 resources/sailfish/qml/pages/components \
304 resources/sailfish/qml/cover
305 qml.path = $$DATADIR/qml
309 qml.files = resources/harmattan/qml/*.qml resources/harmattan/qml/*.js
310 qml.path = $$DATADIR/qml
315 contains(USE_RESOURCES, 1) {
320 hack_to_fix_translations {
321 SOURCES += $$QMLSOURCES