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/cover/CoverPage.qml \
139 resources/sailfish/qml/pages/AboutPage.qml \
140 resources/sailfish/qml/pages/StationListPage.qml \
141 resources/sailfish/qml/pages/StationPage.qml \
142 resources/sailfish/qml/pages/components/DelayIndicator.qml \
143 resources/sailfish/qml/pages/components/StationScheduleDelegate.qml
146 resources/sailfish/applications/quandoparte.desktop \
147 resources/harmattan/applications/quandoparte.desktop \
148 resources/fremantle/applications/quandoparte.desktop \
149 icons/48x48/quandoparte.png \
150 icons/64x64/quandoparte.png \
151 icons/80x80/quandoparte.png \
152 icons/scalable/quandoparte.svg \
153 icons/sailfish/86x86/quandoparte.png \
154 icons/sailfish/scalable/quandoparte.svg \
155 icons/quandoparte.png \
156 resources/quandoparte.css \
157 resources/arrivals.css \
158 resources/departures.css \
159 $$replace(TRANSLATIONS, .ts, .qm) \
160 resources/stations/stations.qpl \
161 resources/stations/generatelist.xq \
162 resources/stations/generateunclassifiedlist.xq \
164 resources/sailfish/qml/StationListPage.qml
171 PREFIX=/opt/$${TARGET}
176 !maemo5:!harmattan:!sailfish {
181 DESKTOPDIR=/usr/share/applications/hildon
184 DESKTOPDIR=/usr/share/applications
187 DESKTOPDIR=$$PREFIX/share/applications
190 DESKTOPDIR=$$PREFIX/share/applications
193 contains(USE_RESOURCES, 1) {
196 DATADIR=$$PREFIX/share/apps/$${TARGET}
198 DEFINES += DATADIR=\\\"$${DATADIR}\\\" PKGDATADIR=\\\"$${PKGDATADIR}\\\"
200 message(Installing to prefix $$PREFIX)
201 message(Executable to $$BINDIR)
202 message(Desktop file to $$DESKTOPDIR)
203 message(Data to $$DATADIR)
204 message(Extra defines $$DEFINES)
206 target.path = $$BINDIR
210 desktopfile.files = resources/$$PLATFORM/applications/$${TARGET}.desktop
211 desktopfile.path = $$DESKTOPDIR
212 INSTALLS += desktopfile
214 i18n.files = $$replace(TRANSLATIONS, .ts, .qm)
215 stations.files = resources/stations/stations.qpl
217 i18n.path = $$DATADIR/i18n
218 stations.path = $$DATADIR/stations
225 desktopfile.files = resources/$$PLATFORM/applications/$${TARGET}.desktop
226 desktopfile.path = $$DESKTOPDIR
227 INSTALLS += desktopfile
229 i18n.files = $$replace(TRANSLATIONS, .ts, .qm)
230 stations.files = resources/stations/stations.qpl
232 i18n.path = $$DATADIR/i18n
233 stations.path = $$DATADIR/stations
240 icon48.files = icons/48x48/$${TARGET}.png
241 icon64.files = icons/64x64/$${TARGET}.png
242 iconscalable.files = icons/scalable/$${TARGET}.svg
244 icon48.path = /usr/share/icons/hicolor/48x48/apps
245 icon64.path = /usr/share/icons/hicolor/64x64/apps
246 iconscalable.path = /usr/share/icons/hicolor/scalable/apps
249 INSTALLS += iconscalable
253 css.files = resources/$${TARGET}.css resources/arrivals.css resources/departures.css
254 css.path = $$DATADIR/css
255 !contains(USE_RESOURCES, 1) {
261 QML_IMPORT_PATH = resources/sailfish/qml/
262 icon86.files = icons/sailfish/86x86/$${TARGET}.png
263 icon86.path = /usr/share/icons/hicolor/86x86/apps
268 desktopfile.files = resources/$$PLATFORM/applications/$${TARGET}.desktop
269 desktopfile.path = $$DESKTOPDIR
270 INSTALLS += desktopfile
272 icon48.files = icons/48x48/$${TARGET}.png
273 icon48.path = /usr/share/icons/hicolor/48x48/apps
276 icon64.files = icons/64x64/$${TARGET}.png
277 icon64.path = /usr/share/icons/hicolor/64x64/apps
280 iconscalable.files = icons/scalable/$${TARGET}.svg
281 iconscalable.path = /usr/share/icons/hicolor/scalable/apps
282 INSTALLS += iconscalable
286 icon80.files = icons/80x80/$${TARGET}.png
287 icon80.path = /usr/share/icons/hicolor/meegotouch/apps
290 i18n.files = $$replace(TRANSLATIONS, .ts, .qm)
291 i18n.path = $$DATADIR/i18n
294 stations.files = resources/stations/stations.qpl
295 stations.path = $$DATADIR/stations
299 !contains(USE_RESOURCES, 1) {
301 qml.files = resources/sailfish/qml/*.qml \
302 resources/sailfish/qml/*.js \
303 resources/sailfish/qml/pages \
304 resources/sailfish/qml/pages/components \
305 resources/sailfish/qml/cover
306 qml.path = $$DATADIR/qml
310 qml.files = resources/harmattan/qml/*.qml resources/harmattan/qml/*.js
311 qml.path = $$DATADIR/qml
316 contains(USE_RESOURCES, 1) {
321 hack_to_fix_translations {
322 SOURCES += $$QMLSOURCES