1 #-------------------------------------------------
3 # Project created by QtCreator 2010-11-13T19:51:39
5 #-------------------------------------------------
12 CONFIG += link_pkgconfig
14 greaterThan(QT_MAJOR_VERSION, 5) {
15 QT += qml quick concurrent location widgets webkitwidgets webkit
16 CONFIG += qml quick concurrent location
17 #PKGCONFIG += Qt5WebKitWidgets Qt5Location Qt5Quick
19 lessThan(QT_MAJOR_VERSION, 5) {
21 CONFIG += webkit mobility
25 contains(MEEGO_EDITION, harmattan) {
31 DEFINES += TARGET_PLATFORM_SAILFISH
33 packagesExist(qdeclarative-boostable) {
34 message("Building with qdeclarative-boostable support")
35 DEFINES += HAS_BOOSTER
36 PKGCONFIG += qdeclarative-boostable
38 warning("qdeclarative-boostable not available; startup times will be slower")
40 QMAKE_LFLAGS += -pie -rdynamic
41 PLATFORM_SOURCES = view.cpp
42 PLATFORM_HEADERS = view.h
47 DEFINES += TARGET_PLATFORM_HARMATTAN
49 CONFIG += qdeclarative-boostable
50 QMAKE_CXXFLAGS += -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-psabi
51 QMAKE_LFLAGS += -pie -rdynamic
52 PLATFORM_SOURCES = view.cpp
53 PLATFORM_HEADERS = view.h
58 DEFINES += TARGET_PLATFORM_FREMANTLE
74 DEFINES += TARGET_PLATFORM_SYMBIAN
76 PLATFORM_SOURCES = view.cpp
77 PLATFORM_HEADERS = view.h
79 !sailfish:!harmattan:!maemo5:!symbian {
81 DEFINES += TARGET_PLATFORM_DESKTOP
82 PLATFORM_SOURCES = view.cpp
85 message(Compiling For: $$PLATFORM)
86 message(Platform Sources: $$PLATFORM_SOURCES)
87 message(Qt Version: $$QT_MAJOR_VERSION $$QT_MINOR_VERSION)
88 message(Qt Modules Used: $$QT)
89 message(Building version: $$VERSION)
93 VERSION_STRING = '\\"$${VERSION}\\"'
94 DEFINES += QP_VERSION=\"$${VERSION_STRING}\"
96 contains(USE_RESOURCES,1) {
97 DEFINES += USE_RESOURCES=1
101 DEFINES += QT_NO_DEBUG_OUTPUT
104 TRANSLATIONS = resources/i18n/quandoparte_it.ts
109 stationlistmodel.cpp \
110 stationlistproxymodel.cpp \
113 stationschedulemodel.cpp \
114 stationscheduleitem.cpp
119 stationlistproxymodel.h \
122 stationschedulemodel.h \
123 stationscheduleitem.h
130 TARGET.UID3 = 0xe30fb688
131 # TARGET.CAPABILITY +=
132 TARGET.EPOCSTACKSIZE = 0x14000
133 TARGET.EPOCHEAPSIZE = 0x020000 0x800000
137 resources/harmattan/qml/main.qml \
138 resources/harmattan/qml/StationListPage.qml \
139 resources/harmattan/qml/StationPage.qml \
140 resources/harmattan/qml/SearchBar.qml \
141 resources/harmattan/qml/PageHeader.qml \
142 resources/harmattan/qml/PageHeader.js \
143 resources/harmattan/qml/uiconstants.js \
144 resources/harmattan/qml/StationListPage.js \
145 resources/harmattan/qml/AboutPage.qml \
146 resources/harmattan/qml/InfoBar.qml \
147 resources/harmattan/qml/DroppedShadow.qml \
148 resources/harmattan/qml/DelayIndicator.qml \
149 resources/harmattan/qml/StationScheduleDelegate.qml
152 resources/harmattan/applications/quandoparte.desktop \
153 resources/fremantle/applications/quandoparte.desktop \
154 icons/48x48/quandoparte.png \
155 icons/64x64/quandoparte.png \
156 icons/80x80/quandoparte.png \
157 icons/scalable/quandoparte.svg \
158 icons/sailfish/90x90/quandoparte.svg \
159 icons/sailfish/scalable/quandoparte.svg \
160 icons/quandoparte.png \
161 resources/quandoparte.css \
162 resources/arrivals.css \
163 resources/departures.css \
164 $$replace(TRANSLATIONS, .ts, .qm) \
165 resources/stations/stations.qpl \
166 resources/stations/generatelist.xq \
167 resources/stations/generateunclassifiedlist.xq \
176 PREFIX=/opt/$${TARGET}
183 DESKTOPDIR=/usr/share/applications/hildon
186 DESKTOPDIR=/usr/share/applications
189 DESKTOPDIR=$$PREFIX/share/applications
192 DESKTOPDIR=$$PREFIX/share/applications
196 contains(USE_RESOURCES,1) {
199 DATADIR=$$PREFIX/share/apps/$${TARGET}
201 DEFINES += DATADIR=\\\"$${DATADIR}\\\" PKGDATADIR=\\\"$${PKGDATADIR}\\\"
204 message(Installing to prefix $$PREFIX)
207 target.path = $$BINDIR
212 desktopfile.files = resources/$$PLATFORM/applications/$${TARGET}.desktop
213 desktopfile.path = $$DESKTOPDIR
214 INSTALLS += desktopfile
218 i18n.files = $$replace(TRANSLATIONS, .ts, .qm)
219 stations.files = resources/stations/stations.qpl
221 i18n.path = $$DATADIR/i18n
222 stations.path = $$DATADIR/stations
224 icon48.files = icons/48x48/$${TARGET}.png
225 icon64.files = icons/64x64/$${TARGET}.png
226 iconscalable.files = icons/scalable/$${TARGET}.svg
228 icon48.path = /usr/share/icons/hicolor/48x48/apps
229 icon64.path = /usr/share/icons/hicolor/64x64/apps
230 iconscalable.path = /usr/share/icons/hicolor/scalable/apps
233 INSTALLS += iconscalable
234 !contains(USE_RESOURCES,1) {
241 css.files = resources/$${TARGET}.css resources/arrivals.css resources/departures.css
242 css.path = $$DATADIR/css
243 !contains(USE_RESOURCES,1) {
249 icon90.files = icons/sailfish/90x90/$${TARGET}.png
250 icon90.path = /usr/share/icons/hicolor/meegotouch/apps
254 icon80.files = icons/80x80/$${TARGET}.png
255 icon80.path = /usr/share/icons/hicolor/meegotouch/apps
259 !contains(USE_RESOURCES,1) {
261 qml.files = resources/harmattan/qml/*.qml resources/harmattan/qml/*.js
262 qml.path = $$DATADIR/qml
267 contains(USE_RESOURCES,1) {
272 hack_to_fix_translations {
273 SOURCES += $$QMLSOURCES