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