Set application title
[situare] / src / src.pro
1 # -------------------------------------------------
2 # Project created by QtCreator 2010-03-26T07:57:35
3 # -------------------------------------------------
4 DEFINES += QML_UI
5
6 TARGET = ../situare
7 TEMPLATE = app
8 LIBS += -lqjson
9 RESOURCES += ../images.qrc \
10     ../languages.qrc \
11     qmlui/res.qrc
12 TRANSLATIONS += ../res/languages/situare_fi.ts
13 SOURCES += main.cpp \
14     application.cpp \
15     coordinates/geocoordinate.cpp \
16     coordinates/scenecoordinate.cpp \
17     engine/contactmanager.cpp \
18     engine/engine.cpp \
19     engine/mce.cpp \
20     facebookservice/facebookauthentication.cpp \
21     gps/gpsposition.cpp \
22     map/baselocationitem.cpp \
23     map/friendgroupitem.cpp \
24     map/frienditemshandler.cpp \
25     map/friendlocationitem.cpp \
26     map/gpslocationitem.cpp \
27     map/mapengine.cpp \
28     map/mapfetcher.cpp \
29     map/maprouteitem.cpp \
30     map/mapscene.cpp \
31     map/mapscroller.cpp \
32     map/maptile.cpp \
33     map/maptilerequest.cpp \
34     map/mapview.cpp \
35     map/ownlocationitem.cpp \
36     network/networkaccessmanager.cpp \
37     network/networkcookiejar.cpp \
38     network/networkhandler.cpp \
39     network/networkreply.cpp \
40     routing/geocodingservice.cpp \
41     routing/location.cpp \
42     routing/route.cpp \
43     routing/routesegment.cpp \
44     routing/routingservice.cpp \
45     situareservice/imagefetcher.cpp \
46     situareservice/situareservice.cpp \
47     ui/updatelocation/texteditautoresizer.cpp \
48     ui/updatelocation/updatelocationdialog.cpp \
49     ui/avatarimage.cpp \
50     ui/extendedlistitem.cpp \
51     ui/extendedlistitemdelegate.cpp \
52     ui/extendedlistitemstore.cpp \
53     ui/friendlistitem.cpp \
54     ui/friendlistitemdelegate.cpp \
55     ui/friendlistpanel.cpp \
56     ui/friendlistview.cpp \
57     ui/fullscreenbutton.cpp \
58     ui/imagebutton.cpp \
59     ui/indicatorbutton.cpp \
60     ui/listitem.cpp \
61     ui/listitemdelegate.cpp \
62     ui/listview.cpp \
63     ui/locationlistitem.cpp \
64     ui/locationlistview.cpp \
65     ui/indicatorbuttonpanel.cpp \
66     ui/locationsearchpanel.cpp \
67     ui/mainwindow.cpp \
68     ui/mapscale.cpp \
69     ui/panelbar.cpp \
70     ui/panelbase.cpp \
71     ui/panelcontentstack.cpp \
72     ui/panelcontextbuttonbar.cpp \
73     ui/paneltab.cpp \
74     ui/paneltabbar.cpp \
75     ui/routingpanel.cpp \
76     ui/routewaypointlistitem.cpp \
77     ui/routewaypointlistview.cpp \
78     ui/searchdialog.cpp \
79     ui/searchhistorylistitem.cpp \
80     ui/searchhistorylistview.cpp \
81     ui/settingsdialog.cpp \
82     ui/tabbedpanel.cpp \
83     ui/textmodifier.cpp \
84     ui/userinfo.cpp \
85     ui/userinfopanel.cpp \
86     ui/zoombutton.cpp \
87     ui/zoombuttonpanel.cpp \
88     user/user.cpp \
89     ui/listitemcontextbuttonbar.cpp \
90     qmlui/geomap.cpp \
91     qmlui/loginlogic.cpp \
92     routing/routemodel.cpp \
93     engine/updatelocation.cpp \
94     user/friendmodel.cpp \
95     user/profile.cpp \
96     qmlui/userimageprovider.cpp \
97     routing/searchhistorymodel.cpp \
98     routing/searchresultsmodel.cpp
99
100 HEADERS += application.h \
101     common.h \
102     coordinates/geocoordinate.h \
103     coordinates/scenecoordinate.h \
104     engine/contactmanager.h \
105     engine/engine.h \
106     engine/mce.h \
107     error.h \
108     facebookservice/facebookauthentication.h \
109     gps/gpscommon.h \
110     gps/gpsposition.h \
111     map/baselocationitem.h \
112     map/friendgroupitem.h \
113     map/frienditemshandler.h \
114     map/friendlocationitem.h \
115     map/gpslocationitem.h \
116     map/mapcommon.h \
117     map/mapengine.h \
118     map/mapfetcher.h \
119     map/maprouteitem.h \
120     map/mapscene.h \
121     map/mapscroller.h \
122     map/maptile.h \
123     map/maptilerequest.h \
124     map/mapview.h \
125     map/osm.h \
126     map/ownlocationitem.h \
127     network/networkaccessmanager.h \
128     network/networkcookiejar.h \
129     network/networkhandler.h \
130     network/networkreply.h \
131     routing/geocodingservice.h \
132     routing/location.h \
133     routing/route.h \
134     routing/routesegment.h \
135     routing/routingcommon.h \
136     routing/routingservice.h \
137     situareservice/imagefetcher.h \
138     situareservice/situarecommon.h \
139     situareservice/situareservice.h \
140     ui/updatelocation/texteditautoresizer.h \
141     ui/updatelocation/updatelocationdialog.h \
142     ui/avatarimage.h \
143     ui/extendedlistitem.h \
144     ui/extendedlistitemdelegate.h \
145     ui/extendedlistitemstore.h \
146     ui/friendlistitem.h \
147     ui/friendlistitemdelegate.h \
148     ui/friendlistpanel.h \
149     ui/friendlistview.h \
150     ui/fullscreenbutton.h \
151     ui/imagebutton.h \
152     ui/indicatorbutton.h \
153     ui/indicatorbuttonpanel.h \
154     ui/listcommon.h \
155     ui/listview.h \
156     ui/listitem.h \
157     ui/listitemdelegate.h \
158     ui/locationlistitem.h \
159     ui/locationlistview.h \
160     ui/locationsearchpanel.h \
161     ui/mainwindow.h \
162     ui/mapscale.h \
163     ui/panelbar.h \
164     ui/panelbase.h \
165     ui/panelcommon.h \
166     ui/panelcontentstack.h \
167     ui/panelcontextbuttonbar.h \
168     ui/paneltab.h \
169     ui/paneltabbar.h \
170     ui/routingpanel.h \
171     ui/routewaypointlistitem.h \
172     ui/routewaypointlistview.h \
173     ui/searchdialog.h \
174     ui/searchhistorylistitem.h \
175     ui/searchhistorylistview.h \
176     ui/settingsdialog.h \
177     ui/tabbedpanel.h \
178     ui/textmodifier.h \
179     ui/userinfo.h \
180     ui/userinfopanel.h \
181     ui/zoombutton.h \
182     ui/zoombuttonpanel.h \
183     user/user.h \
184     ui/listitemcontextbuttonbar.h \
185     qmlui/geomap.h \
186     qmlui/loginlogic.h \
187     routing/routemodel.h \
188     engine/updatelocation.h \
189     user/friendmodel.h \
190     user/profile.h \
191     qmlui/userimageprovider.h \
192     routing/searchhistorymodel.h \
193     routing/searchresultsmodel.h \
194     logger.h
195
196 OTHER_FILES += qmlui/Main.qml \
197     qmlui/Dialog.qml \
198     qmlui/LoginWidget.qml \
199     qmlui/Button.qml \
200     qmlui/Map.qml \
201     qmlui/ListBase.qml \
202     qmlui/RoutingView.qml \
203     qmlui/RoutingDelegate.qml \
204     qmlui/DelegateBase.qml \
205     qmlui/DetailRow.qml \
206     qmlui/Panel.qml \
207     qmlui/ProfileView.qml \
208     qmlui/FriendsView.qml \
209     qmlui/LocationsView.qml \
210     qmlui/DetailEditorRow.qml \
211     qmlui/PanelSelectorButton.qml \
212     qmlui/ExtendedTextEdit.qml \
213     qmlui/BusyIndicator.qml \
214     qmlui/LocationSearchDialog.qml
215
216 QT += network \
217     webkit  \
218     declarative
219
220 DEFINES += QT_NO_DEBUG_OUTPUT
221 CONFIG += mobility
222 MOBILITY += location sensors
223
224 simulator {
225     SOURCES += network/networkhandlerprivatestub.cpp \
226                gps/gpspositionprivate.cpp \
227                engine/contactmanagerprivatestub.cpp \
228                engine/mceprivatestub.cpp
229     HEADERS += network/networkhandlerprivatestub.h \
230                gps/gpspositionprivate.h \
231                engine/contactmanagerprivatestub.h \
232                engine/mceprivatestub.h
233 } else:maemo5 {
234     armel {
235         DEFINES += ARMEL
236         INCLUDEPATH += /usr/include/glib-2.0 /usr/lib/glib-2.0/include
237         SOURCES += network/networkhandlerprivate.cpp \
238                    engine/mceprivate.cpp
239         HEADERS += network/networkhandlerprivate.h \
240                    engine/mceprivate.h
241         QT += dbus xml
242         CONFIG += icd2 qdbus
243         SOURCES += gps/gpspositionprivateliblocation.cpp \
244                    gps/liblocationwrapper.cpp \
245                    gps/geopositioninfo.cpp
246         HEADERS += gps/gpspositionprivateliblocation.h \
247                    gps/liblocationwrapper.h \
248                    gps/geopositioninfo.h
249         CONFIG += link_pkgconfig
250         PKGCONFIG += glib-2.0 liblocation mce gtk+-2.0 libosso-abook-1.0
251         LIBS += -llocation
252         SOURCES += engine/contactmanagerprivate.cpp \
253                    ui/ossoabookdialog.cpp
254         HEADERS += engine/contactmanagerprivate.h \
255                    ui/ossoabookdialog.h
256     } else {
257         SOURCES += gps/gpspositionprivatestub.cpp \
258                    network/networkhandlerprivatestub.cpp \
259                    engine/mceprivatestub.cpp
260         HEADERS += gps/gpspositionprivatestub.h \
261                    network/networkhandlerprivatestub.h \
262                    engine/mceprivatestub.h
263         SOURCES += engine/contactmanagerprivatestub.cpp
264         HEADERS += engine/contactmanagerprivatestub.h
265     }
266
267     MOBILITY += contacts
268     QT += maemo5
269
270     message([QJson])
271     message(Make sure you have QJson development headers installed)
272     message(add: deb http://repository.maemo.org/extras-devel fremantle free non-free)
273     message(to Scratchbox's sources.list in /etc/apt)
274     message(run: apt-get update)
275     message(install headers with: apt-get install libqjson-dev)
276     message([QtMobility])
277     message(Make sure you have QtMobility development headers installed)
278     message(install headers with: apt-get install libqtm-dev)
279 } else {
280     SOURCES += gps/gpspositionprivatestub.cpp \
281                network/networkhandlerprivatestub.cpp \
282                engine/mceprivatestub.cpp
283     HEADERS += gps/gpspositionprivatestub.h \
284                network/networkhandlerprivatestub.h \
285                engine/mceprivatestub.h
286     SOURCES += engine/contactmanagerprivatestub.cpp
287     HEADERS += engine/contactmanagerprivatestub.h
288     message(QJson built in)
289     message(Make sure you have QJson development headers installed)
290     message(install headers with: sudo apt-get install libqjson-dev)
291 }
292
293 # -----------------------------------------------------------------
294 # Debian packetizing additions
295 # -----------------------------------------------------------------
296 unix {
297     # VARIABLES
298     isEmpty(PREFIX):PREFIX = /usr
299     BINDIR = $$PREFIX/bin
300     DATADIR = $$PREFIX/share
301     DEFINES += DATADIR=\\\"$$DATADIR\\\" \
302         PKGDATADIR=\\\"$$PKGDATADIR\\\"
303
304     # MAKE INSTALL
305     desktop.path = $$DATADIR/applications/hildon
306     desktop.files += situare.desktop
307     INSTALLS += desktop
308     icon48.path = $$DATADIR/icons/hicolor/48x48/apps
309     icon48.files += ../res/icon/48x48/situare.png
310     INSTALLS += icon48
311     icon64.path = $$DATADIR/icons/hicolor/64x64/apps
312     icon64.files += ../res/icon/64x64/situare.png
313     INSTALLS += icon64
314     target.path = $$BINDIR
315     INSTALLS += target
316 }