Fixed application icon sizes and re-organized resource files to another location
[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     message(QJson built in)
58     message(Make sure you have QJson development headers installed)
59     message(install headers with: sudo apt-get install libqjson-dev)
60 }
61
62 maemo5 {
63     message(QJson built in)
64     message(Make sure you have QJson development headers installed)
65     message(add: deb http://repository.maemo.org/extras-devel fremantle free non-free)
66     message(and deb-src http://repository.maemo.org/extras-devel fremantle free non-free)
67     message(to scratchbox's sources.list in /etc/apt)
68     message(run: apt-get update)
69     message(install headers with: apt-get install libqjson-dev)
70 }
71
72 # -----------------------------------------------------------------
73 # Debian packetizing additions
74 # -----------------------------------------------------------------
75 unix { 
76     # VARIABLES
77     isEmpty(PREFIX):PREFIX = /usr
78     BINDIR = $$PREFIX/bin
79     DATADIR = $$PREFIX/share
80     DEFINES += DATADIR=\\\"$$DATADIR\\\" \
81         PKGDATADIR=\\\"$$PKGDATADIR\\\"
82     
83     # MAKE INSTALL
84     desktop.path = $$DATADIR/applications/hildon
85     desktop.files += situare.desktop
86     INSTALLS += desktop
87     icon48.path = $$DATADIR/icons/hicolor/48x48/apps
88     icon48.files += ../res/icon/48x48/situare.png
89     INSTALLS += icon48
90     icon64.path = $$DATADIR/icons/hicolor/64x64/apps
91     icon64.files += ../res/icon/64x64/situare.png
92     INSTALLS += icon64
93     target.path = $$BINDIR
94     INSTALLS += target
95 }
96 RESOURCES +=