Bumped version to 0.4.0
[quandoparte] / application / application.pro
index 2e4ac46..0cebf84 100644 (file)
@@ -4,12 +4,13 @@
 #
 #-------------------------------------------------
 
+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}\"
 
@@ -21,7 +22,8 @@ SOURCES += main.cpp \
     app.cpp \
     stationlistview.cpp \
     keypressforwarder.cpp \
-    stationlistmodel.cpp
+    stationlistmodel.cpp \
+    stationlistproxymodel.cpp
 
 HEADERS += \
     settingsdialog.h \
@@ -29,15 +31,13 @@ HEADERS += \
     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 += 
@@ -46,12 +46,6 @@ symbian {
 }
 
 OTHER_FILES += \
-    debian/changelog \
-    debian/compat \
-    debian/control \
-    debian/copyright \
-    debian/README \
-    debian/rules \
     quandoparte.desktop \
     icons/quandoparte.png \
     resources/quandoparte.css \
@@ -62,12 +56,22 @@ OTHER_FILES += \
 
 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
 }
 
@@ -76,7 +80,7 @@ unix:!symbian {
     maemo5 {
         desktopfile.path = /usr/share/applications/hildon
     } else {
-        desktopfile.path = /usr/share/applications
+        desktopfile.path = $$DATADIR/applications
     }
     INSTALLS += desktopfile
 }
@@ -85,19 +89,17 @@ 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
-    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
@@ -105,8 +107,12 @@ unix:!symbian {
     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
 }