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