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