Merge branch 'engine' 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     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     ui/friendlistview.cpp \
27     ui/friendlistitemdelegate.cpp \
28     ui/friendlistitem.cpp \
29     engine/engine.cpp \
30     user/user.cpp
31 HEADERS += ui/mainwindow.h \
32     ui/mapviewscreen.h \
33     ui/listviewscreen.h \
34     map/mapengine.h \
35     map/mapview.h \
36     map/mapscene.h \
37     map/maptile.h \
38     map/mapfetcher.h \
39     map/mapcommon.h \
40     ui/pixmap.h \
41     ui/infotab.h \
42     ui/updatelocation/updatelocationdialog.h \
43     ui/updatelocation/texteditautoresizer.h \
44     situareservice/situareservice.h \
45     situareservice/situarecommon.h \
46     cookiehandler/cookiehandler.h \
47     facebookservice/facebookcredentials.h \
48     facebookservice/facebookauthentication.h \
49     facebookservice/facebookcommon.h \
50     ui/friendlistview.h \
51     ui/friendlistitemdelegate.h \
52     ui/friendlistitem.h \
53     engine/engine.h \
54     user/user.h
55
56 QT += network \
57     webkit
58
59 # use don't use OpenGL when building in scratchbox
60 !maemo5 { 
61     QT += opengl
62     message(OpenGL built in)
63     message(Make sure you have OpenGL development headers installed)
64     message(install headers with: sudo apt-get install libgl-dev libglu-dev)
65
66     message(QJson built in)
67     message(Make sure you have QJson development headers installed)
68     message(install headers with: sudo apt-get install libqjson-dev)
69 }
70
71 maemo5 {
72     message(QJson built in)
73     message(Make sure you have QJson development headers installed)
74     message(add: deb http://repository.maemo.org/extras-devel fremantle free non-free)
75     message(and deb-src 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 +=