Fixed a mysterious login error that occured on some machines
[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     ui/mapviewscreen.cpp \
12     situareservice/situareservice.cpp \
13     situareservice/imagefetcher.cpp \
14     facebookservice/facebookcredentials.cpp \
15     facebookservice/facebookauthentication.cpp \
16     map/mapengine.cpp \
17     map/mapview.cpp \
18     map/mapscene.cpp \
19     map/maptile.cpp \
20     map/mapfetcher.cpp \
21     map/mapzoompanel.cpp \
22     map/mapbutton.cpp \
23     map/ownlocationitem.cpp \
24     map/baselocationitem.cpp \
25     map/friendlocationitem.cpp \
26     ui/updatelocation/updatelocationdialog.cpp \
27     ui/updatelocation/texteditautoresizer.cpp \
28     ui/friendlistview.cpp \
29     ui/friendlistitem.cpp \
30     user/user.cpp \
31     ui/avatarimage.cpp \
32     engine/engine.cpp \
33     ui/settingsdialog.cpp \
34     ui/logindialog.cpp \
35     map/maptilerequest.cpp \
36     ui/imagebutton.cpp \
37     ui/friendlistpanel.cpp \
38     ui/userpanel.cpp \
39     ui/panelsidebar.cpp \
40     ui/panelsliderbar.cpp \
41     map/friendgroupitem.cpp \
42     map/frienditemshandler.cpp \
43     gps/gpspositioninterface.cpp
44 HEADERS += ui/mainwindow.h \
45     ui/mapviewscreen.h \
46     map/mapengine.h \
47     map/mapview.h \
48     map/mapscene.h \
49     map/maptile.h \
50     map/mapfetcher.h \
51     map/mapcommon.h \
52     map/mapzoompanel.h \
53     map/mapbutton.h \
54     map/ownlocationitem.h \
55     map/baselocationitem.h \
56     map/friendlocationitem.h \
57     ui/updatelocation/updatelocationdialog.h \
58     ui/updatelocation/texteditautoresizer.h \
59     situareservice/situareservice.h \
60     situareservice/situarecommon.h \
61     situareservice/imagefetcher.h \
62     facebookservice/facebookcredentials.h \
63     facebookservice/facebookauthentication.h \
64     facebookservice/facebookcommon.h \
65     ui/friendlistview.h \
66     ui/friendlistitem.h \
67     user/user.h \
68     ui/avatarimage.h \
69     engine/engine.h \
70     ui/settingsdialog.h \
71     ui/logindialog.h \
72     map/maptilerequest.h \
73     ui/imagebutton.h \
74     ui/friendlistpanel.h \
75     ui/userpanel.h \
76     ui/panelcommon.h \
77     ui/panelsidebar.h \
78     ui/panelsliderbar.h \
79     map/friendgroupitem.h \
80     map/frienditemshandler.h \
81     gps/gpspositioninterface.h
82 QT += network \
83     webkit
84 DEFINES += QT_NO_DEBUG_OUTPUT
85
86 !maemo5 {
87     SOURCES += gps/gpspositionmockup.cpp
88     HEADERS += gps/gpspositionmockup.h
89     message(QJson built in)
90     message(Make sure you have QJson development headers installed)
91     message(install headers with: sudo apt-get install libqjson-dev)
92 }
93 maemo5 {
94     SOURCES += gps/gpsposition.cpp
95     HEADERS += gps/gpsposition.h
96     QT += maemo5
97     CONFIG += mobility
98     MOBILITY = location
99     message(QJson built in)
100     message(Make sure you have QJson development headers installed)
101     message(add: deb http://repository.maemo.org/extras-devel fremantle free non-free)
102     message(to scratchbox's sources.list in /etc/apt)
103     message(run: apt-get update)
104     message(install headers with: apt-get install libqjson-dev)
105     message(QtMobility)
106     message(Make sure you have QtMobility development headers installed)
107     message(install headers with: apt-get install libqtm-dev)
108 }
109
110 # -----------------------------------------------------------------
111 # Debian packetizing additions
112 # -----------------------------------------------------------------
113 unix {
114     # VARIABLES
115     isEmpty(PREFIX):PREFIX = /usr
116     BINDIR = $$PREFIX/bin
117     DATADIR = $$PREFIX/share
118     DEFINES += DATADIR=\\\"$$DATADIR\\\" \
119         PKGDATADIR=\\\"$$PKGDATADIR\\\"
120     
121     # MAKE INSTALL
122     desktop.path = $$DATADIR/applications/hildon
123     desktop.files += situare.desktop
124     INSTALLS += desktop
125     icon48.path = $$DATADIR/icons/hicolor/48x48/apps
126     icon48.files += ../res/icon/48x48/situare.png
127     INSTALLS += icon48
128     icon64.path = $$DATADIR/icons/hicolor/64x64/apps
129     icon64.files += ../res/icon/64x64/situare.png
130     INSTALLS += icon64
131     target.path = $$BINDIR
132     INSTALLS += target
133 }