Bumped version to 0.4.0
[quandoparte] / application / application.pro
1 #-------------------------------------------------
2 #
3 # Project created by QtCreator 2010-11-13T19:51:39
4 #
5 #-------------------------------------------------
6
7 CONFIG += qt webkit mobility
8 QT += webkit network maemo5
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 message($${OTHER_FILES})
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
73 unix:!symbian {
74     target.path = $$BINDIR
75     INSTALLS += target
76 }
77
78 unix:!symbian {
79     desktopfile.files = $${TARGET}.desktop
80     maemo5 {
81         desktopfile.path = /usr/share/applications/hildon
82     } else {
83         desktopfile.path = $$DATADIR/applications
84     }
85     INSTALLS += desktopfile
86 }
87
88 unix:!symbian {
89     css.files = resources/$${TARGET}.css resources/arrivals.css resources/departures.css
90     i18n.files = $$replace(TRANSLATIONS, .ts, .qm)
91     stations.files = resources/stations/stations.qpl
92
93     i18n.path = $$DATADIR/i18n
94     css.path = $$DATADIR/css
95     stations.path = $$DATADIR/stations
96
97     icon48.files = icons/48x48/$${TARGET}.png
98     icon64.files = icons/64x64/$${TARGET}.png
99
100     icon48.path = /usr/share/icons/hicolor/48x48/apps
101     icon64.path = /usr/share/icons/hicolor/64x64/apps
102
103     INSTALLS += icon48
104     INSTALLS += icon64
105     INSTALLS += css
106     INSTALLS += i18n
107     INSTALLS += stations
108 }
109
110 unix {
111     desktopfile.files = $${TARGET}.desktop
112     maemo5 {
113         desktopfile.path = /usr/share/applications/hildon
114     } else {
115         desktopfile.path = $$DATADIR/applications
116     }
117     INSTALLS += desktopfile
118 }