Replaced self made UI rotation with system's rotation, portrait panels need some...
[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
98 HEADERS += application.h \
99     common.h \
100     coordinates/geocoordinate.h \
101     coordinates/scenecoordinate.h \
102     engine/contactmanager.h \
103     engine/engine.h \
104     engine/mce.h \
105     error.h \
106     facebookservice/facebookauthentication.h \
107     gps/gpscommon.h \
108     gps/gpsposition.h \
109     map/baselocationitem.h \
110     map/friendgroupitem.h \
111     map/frienditemshandler.h \
112     map/friendlocationitem.h \
113     map/gpslocationitem.h \
114     map/mapcommon.h \
115     map/mapengine.h \
116     map/mapfetcher.h \
117     map/maprouteitem.h \
118     map/mapscene.h \
119     map/mapscroller.h \
120     map/maptile.h \
121     map/maptilerequest.h \
122     map/mapview.h \
123     map/osm.h \
124     map/ownlocationitem.h \
125     network/networkaccessmanager.h \
126     network/networkcookiejar.h \
127     network/networkhandler.h \
128     network/networkreply.h \
129     routing/geocodingservice.h \
130     routing/location.h \
131     routing/route.h \
132     routing/routesegment.h \
133     routing/routingcommon.h \
134     routing/routingservice.h \
135     situareservice/imagefetcher.h \
136     situareservice/situarecommon.h \
137     situareservice/situareservice.h \
138     ui/updatelocation/texteditautoresizer.h \
139     ui/updatelocation/updatelocationdialog.h \
140     ui/avatarimage.h \
141     ui/extendedlistitem.h \
142     ui/extendedlistitemdelegate.h \
143     ui/extendedlistitemstore.h \
144     ui/friendlistitem.h \
145     ui/friendlistitemdelegate.h \
146     ui/friendlistpanel.h \
147     ui/friendlistview.h \
148     ui/fullscreenbutton.h \
149     ui/imagebutton.h \
150     ui/indicatorbutton.h \
151     ui/indicatorbuttonpanel.h \
152     ui/listcommon.h \
153     ui/listview.h \
154     ui/listitem.h \
155     ui/listitemdelegate.h \
156     ui/locationlistitem.h \
157     ui/locationlistview.h \
158     ui/locationsearchpanel.h \
159     ui/mainwindow.h \
160     ui/mapscale.h \
161     ui/panelbar.h \
162     ui/panelbase.h \
163     ui/panelcommon.h \
164     ui/panelcontentstack.h \
165     ui/panelcontextbuttonbar.h \
166     ui/paneltab.h \
167     ui/paneltabbar.h \
168     ui/routingpanel.h \
169     ui/routewaypointlistitem.h \
170     ui/routewaypointlistview.h \
171     ui/searchdialog.h \
172     ui/searchhistorylistitem.h \
173     ui/searchhistorylistview.h \
174     ui/settingsdialog.h \
175     ui/tabbedpanel.h \
176     ui/textmodifier.h \
177     ui/userinfo.h \
178     ui/userinfopanel.h \
179     ui/zoombutton.h \
180     ui/zoombuttonpanel.h \
181     user/user.h \
182     ui/listitemcontextbuttonbar.h \
183     qmlui/geomap.h \
184     qmlui/loginlogic.h \
185     routing/routemodel.h \
186     engine/updatelocation.h \
187     user/friendmodel.h \
188     user/profile.h \
189     qmlui/userimageprovider.h
190
191 OTHER_FILES += qmlui/Main.qml \
192     qmlui/Dialog.qml \
193     qmlui/LoginWidget.qml \
194     qmlui/Button.qml \
195     qmlui/Map.qml \
196     qmlui/ListBase.qml \
197     qmlui/RoutingView.qml \
198     qmlui/RoutingDelegate.qml \
199     qmlui/DelegateBase.qml \
200     qmlui/DetailRow.qml \
201     qmlui/Panel.qml \
202     qmlui/ProfileView.qml \
203     qmlui/FriendsView.qml \
204     qmlui/LocationsView.qml \
205     qmlui/DetailEditorRow.qml \
206     qmlui/PanelSelectorButton.qml \
207     qmlui/ExtendedTextEdit.qml \
208     qmlui/BusyIndicator.qml
209
210 QT += network \
211     webkit  \
212     declarative
213
214 DEFINES += QT_NO_DEBUG_OUTPUT
215 CONFIG += mobility
216 MOBILITY += location sensors
217
218 simulator {
219     SOURCES += network/networkhandlerprivatestub.cpp \
220                gps/gpspositionprivate.cpp \
221                engine/contactmanagerprivatestub.cpp \
222                engine/mceprivatestub.cpp
223     HEADERS += network/networkhandlerprivatestub.h \
224                gps/gpspositionprivate.h \
225                engine/contactmanagerprivatestub.h \
226                engine/mceprivatestub.h
227 } else:maemo5 {
228     armel {
229         DEFINES += ARMEL
230         INCLUDEPATH += /usr/include/glib-2.0 /usr/lib/glib-2.0/include
231         SOURCES += network/networkhandlerprivate.cpp \
232                    engine/mceprivate.cpp
233         HEADERS += network/networkhandlerprivate.h \
234                    engine/mceprivate.h
235         QT += dbus xml
236         CONFIG += icd2 qdbus
237         SOURCES += gps/gpspositionprivateliblocation.cpp \
238                    gps/liblocationwrapper.cpp \
239                    gps/geopositioninfo.cpp
240         HEADERS += gps/gpspositionprivateliblocation.h \
241                    gps/liblocationwrapper.h \
242                    gps/geopositioninfo.h
243         CONFIG += link_pkgconfig
244         PKGCONFIG += glib-2.0 liblocation mce gtk+-2.0 libosso-abook-1.0
245         LIBS += -llocation
246         SOURCES += engine/contactmanagerprivate.cpp \
247                    ui/ossoabookdialog.cpp
248         HEADERS += engine/contactmanagerprivate.h \
249                    ui/ossoabookdialog.h
250     } else {
251         SOURCES += gps/gpspositionprivatestub.cpp \
252                    network/networkhandlerprivatestub.cpp \
253                    engine/mceprivatestub.cpp
254         HEADERS += gps/gpspositionprivatestub.h \
255                    network/networkhandlerprivatestub.h \
256                    engine/mceprivatestub.h
257         SOURCES += engine/contactmanagerprivatestub.cpp
258         HEADERS += engine/contactmanagerprivatestub.h
259     }
260
261     MOBILITY += contacts
262     QT += maemo5
263
264     message([QJson])
265     message(Make sure you have QJson development headers installed)
266     message(add: deb http://repository.maemo.org/extras-devel fremantle free non-free)
267     message(to Scratchbox's sources.list in /etc/apt)
268     message(run: apt-get update)
269     message(install headers with: apt-get install libqjson-dev)
270     message([QtMobility])
271     message(Make sure you have QtMobility development headers installed)
272     message(install headers with: apt-get install libqtm-dev)
273 } else {
274     SOURCES += gps/gpspositionprivatestub.cpp \
275                network/networkhandlerprivatestub.cpp \
276                engine/mceprivatestub.cpp
277     HEADERS += gps/gpspositionprivatestub.h \
278                network/networkhandlerprivatestub.h \
279                engine/mceprivatestub.h
280     SOURCES += engine/contactmanagerprivatestub.cpp
281     HEADERS += engine/contactmanagerprivatestub.h
282     message(QJson built in)
283     message(Make sure you have QJson development headers installed)
284     message(install headers with: sudo apt-get install libqjson-dev)
285 }
286
287 # -----------------------------------------------------------------
288 # Debian packetizing additions
289 # -----------------------------------------------------------------
290 unix {
291     # VARIABLES
292     isEmpty(PREFIX):PREFIX = /usr
293     BINDIR = $$PREFIX/bin
294     DATADIR = $$PREFIX/share
295     DEFINES += DATADIR=\\\"$$DATADIR\\\" \
296         PKGDATADIR=\\\"$$PKGDATADIR\\\"
297
298     # MAKE INSTALL
299     desktop.path = $$DATADIR/applications/hildon
300     desktop.files += situare.desktop
301     INSTALLS += desktop
302     icon48.path = $$DATADIR/icons/hicolor/48x48/apps
303     icon48.files += ../res/icon/48x48/situare.png
304     INSTALLS += icon48
305     icon64.path = $$DATADIR/icons/hicolor/64x64/apps
306     icon64.files += ../res/icon/64x64/situare.png
307     INSTALLS += icon64
308     target.path = $$BINDIR
309     INSTALLS += target
310 }