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