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