Added preliminary harmattan rules, new icons
[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.3.4
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     debian/changelog \
50     debian/compat \
51     debian/control \
52     debian/copyright \
53     debian/README \
54     debian/rules \
55     quandoparte.desktop \
56     icons/quandoparte.png \
57     resources/quandoparte.css \
58     resources/arrivals.css \
59     resources/departures.css \
60     $$replace(TRANSLATIONS, .ts, .qm) \
61     resources/stations/stations.qpl
62
63 message($${OTHER_FILES})
64
65 unix:!symbian {
66     maemo5 {
67         target.path = /opt/usr/bin
68     } else {
69         target.path = /usr/local/bin
70     }
71     INSTALLS += target
72 }
73
74 unix:!symbian {
75     desktopfile.files = $${TARGET}.desktop
76     maemo5 {
77         desktopfile.path = /usr/share/applications/hildon
78     } else {
79         desktopfile.path = /usr/share/applications
80     }
81     INSTALLS += desktopfile
82 }
83
84 unix:!symbian {
85     css.files = resources/$${TARGET}.css resources/arrivals.css resources/departures.css
86     i18n.files = $$replace(TRANSLATIONS, .ts, .qm)
87     stations.files = resources/stations/stations.qpl
88     maemo5 {
89         i18n.path = /opt/usr/share/apps/$${TARGET}/i18n
90         css.path = /opt/usr/share/apps/$${TARGET}/css
91         stations.path = /opt/usr/share/apps/$${TARGET}/stations
92     } else {
93         i18n.path = /usr/share/apps/$${TARGET}/i18n
94         css.path = /usr/share/apps/$${TARGET}/css
95         stations.path = /usr/share/apps/$${TARGET}/stations
96     }
97     icon48.files = icons/48x48/$${TARGET}.png
98     icon64.files = icons/64x64/$${TARGET}.png
99     icon48.path = /usr/share/icons/hicolor/48x48/apps
100     icon64.path = /usr/share/icons/hicolor/64x64/apps
101     INSTALLS += icon48
102     INSTALLS += icon64
103     INSTALLS += css
104     INSTALLS += i18n
105     INSTALLS += stations
106 }
107
108 maemo5 {
109     desktopfile.files = $${TARGET}.desktop
110     desktopfile.path = /usr/share/applications/hildon
111     INSTALLS += desktopfile
112 }