Merge branch 'master' of https://vcs.maemo.org/git/situare
[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     engine/engine.cpp \
27     user/user.cpp \
28     ui/settingsdialog.cpp
29 HEADERS += ui/mainwindow.h \
30     ui/mapviewscreen.h \
31     ui/listviewscreen.h \
32     map/mapengine.h \
33     map/mapview.h \
34     map/mapscene.h \
35     map/maptile.h \
36     map/mapfetcher.h \
37     map/mapcommon.h \
38     ui/pixmap.h \
39     ui/infotab.h \
40     ui/updatelocation/updatelocationdialog.h \
41     ui/updatelocation/texteditautoresizer.h \
42     situareservice/situareservice.h \
43     situareservice/situarecommon.h \
44     cookiehandler/cookiehandler.h \
45     facebookservice/facebookcredentials.h \
46     facebookservice/facebookauthentication.h \
47     facebookservice/facebookcommon.h \
48     engine/engine.h \
49     user/user.h \
50     ui/settingsdialog.h
51 QT += network \
52     webkit
53
54 # use don't use OpenGL when building in scratchbox
55 !maemo5 { 
56     QT += opengl
57     message(OpenGL built in)
58     message(Make sure you have OpenGL development headers installed)
59     message(install headers with: sudo apt-get install libgl-dev libglu-dev)
60     message(QJson built in)
61     message(Make sure you have QJson development headers installed)
62     message(install headers with: sudo apt-get install libqjson-dev)
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     icon48.path = $$DATADIR/icons/hicolor/48x48/apps
90     icon48.files += ../res/icon/48x48/situare.png
91     INSTALLS += icon48
92     icon64.path = $$DATADIR/icons/hicolor/64x64/apps
93     icon64.files += ../res/icon/64x64/situare.png
94     INSTALLS += icon64
95     target.path = $$BINDIR
96     INSTALLS += target
97 }
98 RESOURCES +=