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