#
#-------------------------------------------------
-QT += webkit network xml maemo5
+QT += webkit network maemo5
+CONFIG += qt webkit mobility
+MOBILITY = location
TARGET = quandoparte
TEMPLATE = app
+VERSION = 0.4.1
+VERSION_STRING = '\\"$${VERSION}\\"'
+DEFINES += QP_VERSION=\"$${VERSION_STRING}\"
+
+TRANSLATIONS = resources/i18n/quandoparte_it.ts
SOURCES += main.cpp \
settingsdialog.cpp \
stationview.cpp \
app.cpp \
- stationlistview.cpp
+ stationlistview.cpp \
+ keypressforwarder.cpp \
+ stationlistmodel.cpp \
+ stationlistproxymodel.cpp
HEADERS += \
settingsdialog.h \
stationview.h \
app.h \
- stationlistview.h
+ stationlistview.h \
+ keypressforwarder.h \
+ stationlistmodel.h \
+ stationlistproxymodel.h
FORMS += \
settingsdialog.ui \
stationlistview.ui
-CONFIG += webkit mobility
-MOBILITY = location bearer
-
symbian {
TARGET.UID3 = 0xe30fb688
# TARGET.CAPABILITY +=
}
OTHER_FILES += \
- debian/changelog \
- debian/compat \
- debian/control \
- debian/copyright \
- debian/README \
- debian/rules \
quandoparte.desktop \
- icons/quandoparte.png
+ icons/quandoparte.png \
+ resources/quandoparte.css \
+ resources/arrivals.css \
+ resources/departures.css \
+ $$replace(TRANSLATIONS, .ts, .qm) \
+ resources/stations/stations.qpl \
+ resources/stations/generatelist.xq \
+ resources/stations/generateunclassifiedlist.xq
-unix:!symbian {
- maemo5 {
- target.path = /opt/usr/bin
- } else {
- target.path = /usr/local/bin
+unix {
+ isEmpty(PREFIX) {
+ maemo5 {
+ PREFIX=/opt/usr
+ } else {
+ PREFIX=/usr/local
+ }
}
+ BINDIR=$$PREFIX/bin
+ DATADIR=$$PREFIX/share/apps/$${TARGET}
+ DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
+}
+
+message(Installing to prefix $$PREFIX)
+
+unix:!symbian {
+ target.path = $$BINDIR
INSTALLS += target
}
maemo5 {
desktopfile.path = /usr/share/applications/hildon
} else {
- desktopfile.path = /usr/share/applications
+ desktopfile.path = $$DATADIR/applications
}
INSTALLS += desktopfile
}
unix:!symbian {
+ css.files = resources/$${TARGET}.css resources/arrivals.css resources/departures.css
+ i18n.files = $$replace(TRANSLATIONS, .ts, .qm)
+ stations.files = resources/stations/stations.qpl
+
+ i18n.path = $$DATADIR/i18n
+ css.path = $$DATADIR/css
+ stations.path = $$DATADIR/stations
+
icon48.files = icons/48x48/$${TARGET}.png
icon64.files = icons/64x64/$${TARGET}.png
+
icon48.path = /usr/share/icons/hicolor/48x48/apps
icon64.path = /usr/share/icons/hicolor/64x64/apps
+
INSTALLS += icon48
INSTALLS += icon64
+ INSTALLS += css
+ INSTALLS += i18n
+ INSTALLS += stations
+}
+
+unix {
+ desktopfile.files = $${TARGET}.desktop
+ maemo5 {
+ desktopfile.path = /usr/share/applications/hildon
+ } else {
+ desktopfile.path = $$DATADIR/applications
+ }
+ INSTALLS += desktopfile
}