Merge branch 'dev' into friendlist
[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     ui/listviewscreen.cpp \
13     situareservice/situareservice.cpp \
14     situareservice/imagefetcher.cpp \
15     cookiehandler/cookiehandler.cpp \
16     facebookservice/facebookcredentials.cpp \
17     facebookservice/facebookauthentication.cpp \
18     map/mapengine.cpp \
19     map/mapview.cpp \
20     map/mapscene.cpp \
21     map/maptile.cpp \
22     map/mapfetcher.cpp \
23     map/mapzoompanel.cpp \
24     map/mapbutton.cpp \
25     map/ownlocationitem.cpp \
26     ui/pixmap.cpp \
27     ui/infotab.cpp \
28     ui/updatelocation/updatelocationdialog.cpp \
29     ui/updatelocation/texteditautoresizer.cpp \
30     ui/friendlistview.cpp \
31     ui/friendlistitemdelegate.cpp \
32     ui/friendlistitem.cpp \
33     engine/engine.cpp \
34     user/user.cpp \
35     ui/buttonitem.cpp \
36     ui/situareuser.cpp \
37     ui/settingsdialog.cpp
38 HEADERS += ui/mainwindow.h \
39     ui/mapviewscreen.h \
40     ui/listviewscreen.h \
41     map/mapengine.h \
42     map/mapview.h \
43     map/mapscene.h \
44     map/maptile.h \
45     map/mapfetcher.h \
46     map/mapcommon.h \
47     map/mapzoompanel.h \
48     map/mapbutton.h \
49     map/ownlocationitem.h \
50     ui/pixmap.h \
51     ui/infotab.h \
52     ui/updatelocation/updatelocationdialog.h \
53     ui/updatelocation/texteditautoresizer.h \
54     situareservice/situareservice.h \
55     situareservice/situarecommon.h \
56     situareservice/imagefetcher.h \
57     cookiehandler/cookiehandler.h \
58     facebookservice/facebookcredentials.h \
59     facebookservice/facebookauthentication.h \
60     facebookservice/facebookcommon.h \
61     ui/friendlistview.h \
62     ui/friendlistitemdelegate.h \
63     ui/friendlistitem.h \
64     engine/engine.h \
65     user/user.h \
66     ui/buttonitem.h \
67     ui/situareuser.h \
68     ui/settingsdialog.h
69 QT += network \
70     webkit
71
72 # use don't use OpenGL when building in scratchbox
73 !maemo5 { 
74     message(QJson built in)
75     message(Make sure you have QJson development headers installed)
76     message(install headers with: sudo apt-get install libqjson-dev)
77 }
78
79 maemo5 {
80     message(QJson built in)
81     message(Make sure you have QJson development headers installed)
82     message(add: deb http://repository.maemo.org/extras-devel fremantle free non-free)
83     message(to scratchbox's sources.list in /etc/apt)
84     message(run: apt-get update)
85     message(install headers with: apt-get install libqjson-dev)
86 }
87
88 # -----------------------------------------------------------------
89 # Debian packetizing additions
90 # -----------------------------------------------------------------
91 unix { 
92     # VARIABLES
93     isEmpty(PREFIX):PREFIX = /usr
94     BINDIR = $$PREFIX/bin
95     DATADIR = $$PREFIX/share
96     DEFINES += DATADIR=\\\"$$DATADIR\\\" \
97         PKGDATADIR=\\\"$$PKGDATADIR\\\"
98     
99     # MAKE INSTALL
100     desktop.path = $$DATADIR/applications/hildon
101     desktop.files += situare.desktop
102     INSTALLS += desktop
103     icon48.path = $$DATADIR/icons/hicolor/48x48/apps
104     icon48.files += ../res/icon/48x48/situare.png
105     INSTALLS += icon48
106     icon64.path = $$DATADIR/icons/hicolor/64x64/apps
107     icon64.files += ../res/icon/64x64/situare.png
108     INSTALLS += icon64
109     target.path = $$BINDIR
110     INSTALLS += target
111 }
112 RESOURCES +=