Added delay class indicator
[quandoparte] / application / application.pro
1 #-------------------------------------------------
2 #
3 # Project created by QtCreator 2010-11-13T19:51:39
4 #
5 #-------------------------------------------------
6
7 VERSION = 0.4.80
8
9 QT += webkit network
10 CONFIG += qt webkit mobility
11 MOBILITY = location
12
13 contains(MEEGO_EDITION,harmattan) {
14     CONFIG += harmattan
15 }
16
17 harmattan {
18     QT += declarative
19     PLATFORM = harmattan
20     DEFINES += TARGET_PLATFORM_HARMATTAN
21     # enable booster
22     CONFIG += qdeclarative-boostable
23     QMAKE_CXXFLAGS += -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-psabi
24     QMAKE_LFLAGS += -pie -rdynamic
25     PLATFORM_SOURCES = view.cpp
26     PLATFORM_HEADERS = view.h
27 }
28 maemo5 {
29     QT += maemo5
30     PLATFORM = fremantle
31     DEFINES += TARGET_PLATFORM_FREMANTLE
32     PLATFORM_SOURCES = \
33         app.cpp \
34         stationlistview.cpp \
35         stationview.cpp \
36         settingsdialog.cpp \
37         keypressforwarder.cpp
38     PLATFORM_HEADERS= \
39         app.h \
40         stationlistview.h \
41         keypressforwarder.h \
42         settingsdialog.h \
43         stationview.h
44 }
45 symbian {
46     QT += declarative
47     DEFINES += TARGET_PLATFORM_SYMBIAN
48     PLATFORM = symbian
49     PLATFORM_SOURCES = view.cpp
50     PLATFORM_HEADERS = view.h
51 }
52 !harmattan:!maemo5:!symbian {
53     PLATFORM = desktop
54     DEFINES += TARGET_PLATFORM_DESKTOP
55     PLATFORM_SOURCES = view.cpp
56 }
57
58 message(Compiling For:    $$PLATFORM)
59 message(Platform Sources: $$PLATFORM_SOURCES)
60 message(Qt Modules Used:  $$QT)
61 message(Building version: $$VERSION)
62
63 TARGET = quandoparte
64 TEMPLATE = app
65 VERSION_STRING = '\\"$${VERSION}\\"'
66 DEFINES += QP_VERSION=\"$${VERSION_STRING}\"
67
68 !debug {
69 #    DEFINES += QT_NO_DEBUG_OUTPUT
70 }
71
72 TRANSLATIONS = resources/i18n/quandoparte_it.ts
73
74 SOURCES += \
75     $$PLATFORM_SOURCES \
76     main.cpp \
77     stationlistmodel.cpp \
78     stationlistproxymodel.cpp \
79     settings.cpp \
80     dataprovider.cpp \
81     stationschedulemodel.cpp \
82     stationscheduleitem.cpp
83
84 HEADERS += \
85     $$PLATFORM_HEADERS \
86     stationlistmodel.h \
87     stationlistproxymodel.h \
88     settings.h \
89     dataprovider.h \
90     stationschedulemodel.h \
91     stationscheduleitem.h
92
93 FORMS += \
94     settingsdialog.ui \
95     stationlistview.ui
96
97 symbian {
98     TARGET.UID3 = 0xe30fb688
99     # TARGET.CAPABILITY += 
100     TARGET.EPOCSTACKSIZE = 0x14000
101     TARGET.EPOCHEAPSIZE = 0x020000 0x800000
102 }
103
104 OTHER_FILES += \
105     resources/harmattan/applications/quandoparte.desktop \
106     resources/fremantle/applications/quandoparte.desktop \
107     icons/48x48/quandoparte.png \
108     icons/64x64/quandoparte.png \
109     icons/scalable/quandoparte.svg \
110     icons/quandoparte.png \
111     resources/quandoparte.css \
112     resources/arrivals.css \
113     resources/departures.css \
114     $$replace(TRANSLATIONS, .ts, .qm) \
115     resources/stations/stations.qpl \
116     resources/stations/generatelist.xq \
117     resources/stations/generateunclassifiedlist.xq \
118     resources/harmattan/qml/main.qml \
119     resources/harmattan/qml/StationListPage.qml \
120     resources/harmattan/qml/StationPage.qml \
121     resources/harmattan/qml/SearchBar.qml \
122     resources/harmattan/qml/PageHeader.qml \
123     resources/harmattan/qml/uiconstants.js \
124     resources/harmattan/qml/StationListPage.js \
125     resources/harmattan/qml/AboutPage.qml \
126     resources/harmattan/qml/InfoBar.qml \
127     resources/harmattan/qml/DroppedShadow.qml \
128     resources/harmattan/qml/DelayIndicator.qml
129
130 unix {
131     isEmpty(PREFIX) {
132         maemo5 {
133             PREFIX=/opt/usr
134         }
135         harmattan {
136             PREFIX=/opt/$${TARGET}
137         }
138         desktop {
139             PREFIX=/usr/local
140         }
141     }
142     maemo5 {
143         DESKTOPDIR=/usr/share/applications/hildon
144     }
145     harmattan {
146         DESKTOPDIR=/usr/share/applications
147     }
148     desktop {
149         DESKTOPDIR=$$PREFIX/share/applications
150     }
151
152     BINDIR=$$PREFIX/bin
153     DESKTOPDIR=$$PREFIX/share/applications
154     DATADIR=$$PREFIX/share/apps/$${TARGET}
155     DEFINES += DATADIR=\\\"$${DATADIR}\\\" PKGDATADIR=\\\"$${PKGDATADIR}\\\"
156 }
157
158 message(Installing to prefix $$PREFIX)
159
160 unix:!symbian {
161     target.path = $$BINDIR
162     INSTALLS += target
163 }
164
165 unix:!symbian {
166     desktopfile.files = resources/$$PLATFORM/applications/$${TARGET}.desktop
167     desktopfile.path = $$DESKTOPDIR
168     INSTALLS += desktopfile
169 }
170
171 unix:!symbian {
172     css.files = resources/$${TARGET}.css resources/arrivals.css resources/departures.css
173     i18n.files = $$replace(TRANSLATIONS, .ts, .qm)
174     stations.files = resources/stations/stations.qpl
175
176     i18n.path = $$DATADIR/i18n
177     css.path = $$DATADIR/css
178     stations.path = $$DATADIR/stations
179
180     icon48.files = icons/48x48/$${TARGET}.png
181     icon64.files = icons/64x64/$${TARGET}.png
182     iconscalable.files = icons/scalable/$${TARGET}.svg
183
184     icon48.path = /usr/share/icons/hicolor/48x48/apps
185     icon64.path = /usr/share/icons/hicolor/64x64/apps
186     iconscalable.path = /usr/share/icons/hicolor/scalable/apps
187
188     INSTALLS += icon48
189     INSTALLS += icon64
190     INSTALLS += iconscalable
191     INSTALLS += css
192     INSTALLS += i18n
193     INSTALLS += stations
194 }
195
196 harmattan {
197     qml.files = resources/harmattan/qml/*.qml resources/harmattan/qml/*.js
198     qml.path = $$DATADIR/qml
199     INSTALLS += qml
200 }
201
202