#
#-------------------------------------------------
+CONFIG += qt webkit mobility
QT += webkit network maemo5
+MOBILITY = location
TARGET = quandoparte
TEMPLATE = app
-VERSION = 0.1.90
-
+VERSION = 0.4.0
VERSION_STRING = '\\"$${VERSION}\\"'
DEFINES += QP_VERSION=\"$${VERSION_STRING}\"
app.cpp \
stationlistview.cpp \
keypressforwarder.cpp \
- stationlistmodel.cpp
+ stationlistmodel.cpp \
+ stationlistproxymodel.cpp
HEADERS += \
settingsdialog.h \
app.h \
stationlistview.h \
keypressforwarder.h \
- stationlistmodel.h
+ stationlistmodel.h \
+ stationlistproxymodel.h
FORMS += \
settingsdialog.ui \
stationlistview.ui
-CONFIG += webkit mobility
-MOBILITY = location
-
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 \
resources/quandoparte.css \
message($${OTHER_FILES})
-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\\\"
+}
+
+
+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
}
css.files = resources/$${TARGET}.css resources/arrivals.css resources/departures.css
i18n.files = $$replace(TRANSLATIONS, .ts, .qm)
stations.files = resources/stations/stations.qpl
- maemo5 {
- i18n.path = /opt/usr/share/apps/$${TARGET}/i18n
- css.path = /opt/usr/share/apps/$${TARGET}/css
- stations.path = /opt/usr/share/apps/$${TARGET}/stations
- } else {
- i18n.path = /usr/share/apps/$${TARGET}/i18n
- css.path = /usr/share/apps/$${TARGET}/css
- stations.path = /usr/share/apps/$${TARGET}/stations
- }
+
+ 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 += stations
}
-maemo5 {
+unix {
desktopfile.files = $${TARGET}.desktop
- desktopfile.path = /usr/share/applications/hildon
+ maemo5 {
+ desktopfile.path = /usr/share/applications/hildon
+ } else {
+ desktopfile.path = $$DATADIR/applications
+ }
INSTALLS += desktopfile
}