tweaked application.pro, rules files
[quandoparte] / application / application.pro
1 #-------------------------------------------------
2 #
3 # Project created by QtCreator 2010-11-13T19:51:39
4 #
5 #-------------------------------------------------
6
7 QT += webkit network maemo5
8 CONFIG += qt webkit mobility
9 MOBILITY = location
10
11 TARGET = quandoparte
12 TEMPLATE = app
13 VERSION = 0.4.0
14 VERSION_STRING = '\\"$${VERSION}\\"'
15 DEFINES += QP_VERSION=\"$${VERSION_STRING}\"
16
17 TRANSLATIONS = resources/i18n/quandoparte_it.ts
18
19 SOURCES += main.cpp \
20     settingsdialog.cpp \
21     stationview.cpp \
22     app.cpp \
23     stationlistview.cpp \
24     keypressforwarder.cpp \
25     stationlistmodel.cpp \
26     stationlistproxymodel.cpp
27
28 HEADERS += \
29     settingsdialog.h \
30     stationview.h \
31     app.h \
32     stationlistview.h \
33     keypressforwarder.h \
34     stationlistmodel.h \
35     stationlistproxymodel.h
36
37 FORMS += \
38     settingsdialog.ui \
39     stationlistview.ui
40
41 symbian {
42     TARGET.UID3 = 0xe30fb688
43     # TARGET.CAPABILITY += 
44     TARGET.EPOCSTACKSIZE = 0x14000
45     TARGET.EPOCHEAPSIZE = 0x020000 0x800000
46 }
47
48 OTHER_FILES += \
49     quandoparte.desktop \
50     icons/quandoparte.png \
51     resources/quandoparte.css \
52     resources/arrivals.css \
53     resources/departures.css \
54     $$replace(TRANSLATIONS, .ts, .qm) \
55     resources/stations/stations.qpl
56
57 unix {
58     isEmpty(PREFIX) {
59         maemo5 {
60             PREFIX=/opt/usr
61         } else {
62             PREFIX=/usr/local
63         }
64     }
65     BINDIR=$$PREFIX/bin
66     DATADIR=$$PREFIX/share/apps/$${TARGET}
67     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
68 }
69
70 message(Installing to prefix $$PREFIX)
71
72 unix:!symbian {
73     target.path = $$BINDIR
74     INSTALLS += target
75 }
76
77 unix:!symbian {
78     desktopfile.files = $${TARGET}.desktop
79     maemo5 {
80         desktopfile.path = /usr/share/applications/hildon
81     } else {
82         desktopfile.path = $$DATADIR/applications
83     }
84     INSTALLS += desktopfile
85 }
86
87 unix:!symbian {
88     css.files = resources/$${TARGET}.css resources/arrivals.css resources/departures.css
89     i18n.files = $$replace(TRANSLATIONS, .ts, .qm)
90     stations.files = resources/stations/stations.qpl
91
92     i18n.path = $$DATADIR/i18n
93     css.path = $$DATADIR/css
94     stations.path = $$DATADIR/stations
95
96     icon48.files = icons/48x48/$${TARGET}.png
97     icon64.files = icons/64x64/$${TARGET}.png
98
99     icon48.path = /usr/share/icons/hicolor/48x48/apps
100     icon64.path = /usr/share/icons/hicolor/64x64/apps
101
102     INSTALLS += icon48
103     INSTALLS += icon64
104     INSTALLS += css
105     INSTALLS += i18n
106     INSTALLS += stations
107 }
108
109 unix {
110     desktopfile.files = $${TARGET}.desktop
111     maemo5 {
112         desktopfile.path = /usr/share/applications/hildon
113     } else {
114         desktopfile.path = $$DATADIR/applications
115     }
116     INSTALLS += desktopfile
117 }