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