backup
[situare] / src / src.pro
1 # -------------------------------------------------
2 # Project created by QtCreator 2010-03-26T07:57:35
3 # -------------------------------------------------
4 TARGET = ../situare
5 TEMPLATE = app
6 INCLUDEPATH += /usr/include/qjson
7 LIBS += -lqjson
8 RESOURCES += ../images.qrc \
9     ../languages.qrc
10 TRANSLATIONS += ../res/languages/situare_fi.ts
11 SOURCES += main.cpp \
12     ui/mainwindow.cpp \
13     situareservice/situareservice.cpp \
14     situareservice/imagefetcher.cpp \
15     facebookservice/facebookcredentials.cpp \
16     facebookservice/facebookauthentication.cpp \
17     map/mapengine.cpp \
18     map/mapview.cpp \
19     map/mapscene.cpp \
20     map/maptile.cpp \
21     map/mapfetcher.cpp \
22     map/ownlocationitem.cpp \
23     map/baselocationitem.cpp \
24     map/friendlocationitem.cpp \
25     ui/updatelocation/updatelocationdialog.cpp \
26     ui/updatelocation/texteditautoresizer.cpp \
27     ui/friendlistview.cpp \
28     ui/friendlistitem.cpp \
29     user/user.cpp \
30     ui/avatarimage.cpp \
31     engine/engine.cpp \
32     ui/settingsdialog.cpp \
33     ui/logindialog.cpp \
34     map/maptilerequest.cpp \
35     ui/imagebutton.cpp \
36     ui/friendlistpanel.cpp \
37     ui/userinfopanel.cpp \
38     ui/panelsidebar.cpp \
39     ui/panelsliderbar.cpp \
40     map/friendgroupitem.cpp \
41     map/frienditemshandler.cpp \
42     gps/gpsposition.cpp \
43     map/gpslocationitem.cpp \
44     ui/zoombuttonpanel.cpp \
45     ui/userinfo.cpp \
46     ui/sidepanel.cpp \
47     ui/zoombutton.cpp \
48     network/networkaccessmanager.cpp \
49     network/networkhandler.cpp \
50     network/networkcookiejar.cpp \
51     network/networkreply.cpp \
52     ui/mapscale.cpp
53 HEADERS += ui/mainwindow.h \
54     map/mapengine.h \
55     map/mapview.h \
56     map/mapscene.h \
57     map/maptile.h \
58     map/mapfetcher.h \
59     map/mapcommon.h \
60     map/ownlocationitem.h \
61     map/baselocationitem.h \
62     map/friendlocationitem.h \
63     ui/updatelocation/updatelocationdialog.h \
64     ui/updatelocation/texteditautoresizer.h \
65     situareservice/situareservice.h \
66     situareservice/situarecommon.h \
67     situareservice/imagefetcher.h \
68     facebookservice/facebookcredentials.h \
69     facebookservice/facebookauthentication.h \
70     facebookservice/facebookcommon.h \
71     ui/friendlistview.h \
72     ui/friendlistitem.h \
73     user/user.h \
74     ui/avatarimage.h \
75     engine/engine.h \
76     ui/settingsdialog.h \
77     ui/logindialog.h \
78     map/maptilerequest.h \
79     ui/imagebutton.h \
80     ui/friendlistpanel.h \
81     ui/userinfopanel.h \
82     ui/panelcommon.h \
83     ui/panelsidebar.h \
84     ui/panelsliderbar.h \
85     map/friendgroupitem.h \
86     map/frienditemshandler.h \
87     gps/gpsposition.h \
88     map/gpslocationitem.h \
89     gps/gpscommon.h \
90     ui/zoombuttonpanel.h \
91     common.h \
92     ui/userinfo.h \
93     ui/sidepanel.h \
94     ui/zoombutton.h \
95     network/networkaccessmanager.h \
96     network/networkhandler.h \
97     network/networkcookiejar.h \
98     network/networkreply.h \
99     ui/mapscale.h
100 QT += network \
101     webkit
102
103 #DEFINES += QT_NO_DEBUG_OUTPUT
104
105 simulator {
106     SOURCES += network/networkhandlerprivatestub.cpp \
107                gps/gpspositionprivate.cpp
108     HEADERS += network/networkhandlerprivatestub.h \
109                gps/gpspositionprivate.h
110     QT += maemo5
111     CONFIG += mobility
112     MOBILITY += location
113 } else:maemo5 {
114     armel {
115         DEFINES += ARMEL
116         INCLUDEPATH += /usr/include/glib-2.0 /usr/lib/glib-2.0/include
117         SOURCES += network/networkhandlerprivate.cpp
118         HEADERS += network/networkhandlerprivate.h
119         QT += dbus
120         CONFIG += icd2
121         SOURCES += gps/gpspositionprivateliblocation.cpp \
122                    gps/liblocationwrapper.cpp \
123                    gps/geopositioninfo.cpp \
124                    gps/geocoordinate.cpp
125         HEADERS += gps/gpspositionprivateliblocation.h \
126                    gps/liblocationwrapper.h \
127                    gps/geopositioninfo.h \
128                    gps/geocoordinate.h
129         CONFIG += link_pkgconfig
130         PKGCONFIG += glib-2.0 liblocation
131     } else {
132         SOURCES += gps/gpspositionprivatestub.cpp \
133                    network/networkhandlerprivatestub.cpp
134         HEADERS += gps/gpspositionprivatestub.h \
135                    network/networkhandlerprivatestub.h
136     }
137
138     QT += maemo5
139
140     message([QJson])
141     message(Make sure you have QJson development headers installed)
142     message(add: deb http://repository.maemo.org/extras-devel fremantle free non-free)
143     message(to Scratchbox's sources.list in /etc/apt)
144     message(run: apt-get update)
145     message(install headers with: apt-get install libqjson-dev)
146     message([QtMobility])
147     message(Make sure you have QtMobility development headers installed)
148     message(install headers with: apt-get install libqtm-dev)
149 } else {
150     SOURCES += gps/gpspositionprivatestub.cpp \
151                network/networkhandlerprivatestub.cpp
152     HEADERS += gps/gpspositionprivatestub.h \
153                network/networkhandlerprivatestub.h
154     message(QJson built in)
155     message(Make sure you have QJson development headers installed)
156     message(install headers with: sudo apt-get install libqjson-dev)
157 }
158
159 # -----------------------------------------------------------------
160 # Debian packetizing additions
161 # -----------------------------------------------------------------
162 unix {
163     # VARIABLES
164     isEmpty(PREFIX):PREFIX = /usr
165     BINDIR = $$PREFIX/bin
166     DATADIR = $$PREFIX/share
167     DEFINES += DATADIR=\\\"$$DATADIR\\\" \
168         PKGDATADIR=\\\"$$PKGDATADIR\\\"
169
170     # MAKE INSTALL
171     desktop.path = $$DATADIR/applications/hildon
172     desktop.files += situare.desktop
173     INSTALLS += desktop
174     icon48.path = $$DATADIR/icons/hicolor/48x48/apps
175     icon48.files += ../res/icon/48x48/situare.png
176     INSTALLS += icon48
177     icon64.path = $$DATADIR/icons/hicolor/64x64/apps
178     icon64.files += ../res/icon/64x64/situare.png
179     INSTALLS += icon64
180     target.path = $$BINDIR
181     INSTALLS += target
182 }