Bumped revision to 0.4.1
[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.1
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     resources/stations/generatelist.xq \
57     resources/stations/generateunclassifiedlist.xq
58
59 unix {
60     isEmpty(PREFIX) {
61         maemo5 {
62             PREFIX=/opt/usr
63         } else {
64             PREFIX=/usr/local
65         }
66     }
67     BINDIR=$$PREFIX/bin
68     DATADIR=$$PREFIX/share/apps/$${TARGET}
69     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
70 }
71
72 message(Installing to prefix $$PREFIX)
73
74 unix:!symbian {
75     target.path = $$BINDIR
76     INSTALLS += target
77 }
78
79 unix:!symbian {
80     desktopfile.files = $${TARGET}.desktop
81     maemo5 {
82         desktopfile.path = /usr/share/applications/hildon
83     } else {
84         desktopfile.path = $$DATADIR/applications
85     }
86     INSTALLS += desktopfile
87 }
88
89 unix:!symbian {
90     css.files = resources/$${TARGET}.css resources/arrivals.css resources/departures.css
91     i18n.files = $$replace(TRANSLATIONS, .ts, .qm)
92     stations.files = resources/stations/stations.qpl
93
94     i18n.path = $$DATADIR/i18n
95     css.path = $$DATADIR/css
96     stations.path = $$DATADIR/stations
97
98     icon48.files = icons/48x48/$${TARGET}.png
99     icon64.files = icons/64x64/$${TARGET}.png
100
101     icon48.path = /usr/share/icons/hicolor/48x48/apps
102     icon64.path = /usr/share/icons/hicolor/64x64/apps
103
104     INSTALLS += icon48
105     INSTALLS += icon64
106     INSTALLS += css
107     INSTALLS += i18n
108     INSTALLS += stations
109 }
110
111 unix {
112     desktopfile.files = $${TARGET}.desktop
113     maemo5 {
114         desktopfile.path = /usr/share/applications/hildon
115     } else {
116         desktopfile.path = $$DATADIR/applications
117     }
118     INSTALLS += desktopfile
119 }