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