dedf49cf8faac6c02b638fa2a56a1a98a43ced14
[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 HEADERS += ui/mainwindow.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/ownlocationitem.h \
53     map/baselocationitem.h \
54     map/friendlocationitem.h \
55     ui/updatelocation/updatelocationdialog.h \
56     ui/updatelocation/texteditautoresizer.h \
57     situareservice/situareservice.h \
58     situareservice/situarecommon.h \
59     situareservice/imagefetcher.h \
60     facebookservice/facebookcredentials.h \
61     facebookservice/facebookauthentication.h \
62     facebookservice/facebookcommon.h \
63     ui/friendlistview.h \
64     ui/friendlistitem.h \
65     user/user.h \
66     ui/avatarimage.h \
67     engine/engine.h \
68     ui/settingsdialog.h \
69     ui/logindialog.h \
70     map/maptilerequest.h \
71     ui/imagebutton.h \
72     ui/friendlistpanel.h \
73     ui/userinfopanel.h \
74     ui/panelcommon.h \
75     ui/panelsidebar.h \
76     ui/panelsliderbar.h \
77     map/friendgroupitem.h \
78     map/frienditemshandler.h \
79     gps/gpsposition.h \
80     map/gpslocationitem.h \
81     gps/gpscommon.h \
82     ui/zoombuttonpanel.h \
83     common.h \
84     ui/userinfo.h \
85     ui/sidepanel.h
86 QT += network \
87     webkit
88 DEFINES += QT_NO_DEBUG_OUTPUT
89
90 maemo5 | simulator {
91     SOURCES += gps/gpspositionprivate.cpp
92     HEADERS += gps/gpspositionprivate.h
93     QT += maemo5
94     CONFIG += mobility
95     MOBILITY = location
96     message([QJson])
97     message(Make sure you have QJson development headers installed)
98     message(add: deb http://repository.maemo.org/extras-devel fremantle free non-free)
99     message(to Scratchbox's sources.list in /etc/apt)
100     message(run: apt-get update)
101     message(install headers with: apt-get install libqjson-dev)
102     message([QtMobility])
103     message(Make sure you have QtMobility development headers installed)
104     message(install headers with: apt-get install libqtm-dev)
105 }
106 else {
107     SOURCES += gps/gpspositionprivatestub.cpp
108     HEADERS += gps/gpspositionprivatestub.h
109     message(QJson built in)
110     message(Make sure you have QJson development headers installed)
111     message(install headers with: sudo apt-get install libqjson-dev)
112 }
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 }