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