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