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