}
harmattan {
- message(Compiling for the Harmattan platform)
+ PLATFORM = harmattan
}
maemo5 {
- message(Compiling for the Fremantle platform)
+ PLATFORM = fremantle
}
symbian {
- message(Compiling for the Symbian platform)
+ PLATFORM = symbian
}
!harmattan:!maemo5:!symbian {
- message(Compiling for the Desktop platform)
+ PLATFORM = desktop
}
+message(Compiling for the $$PLATFORM platform)
CONFIG += qt webkit mobility
MOBILITY = location
DEFINES += QP_VERSION=\"$${VERSION_STRING}\"
!debug {
- DEFINES += QT_NO_DEBUG_OUTPUT
+# DEFINES += QT_NO_DEBUG_OUTPUT
}
TRANSLATIONS = resources/i18n/quandoparte_it.ts
}
OTHER_FILES += \
- quandoparte.desktop \
+ resources/harmattan/applications/quandoparte.desktop \
+ resources/fremantle/applications/quandoparte.desktop \
icons/48x48/quandoparte.png \
icons/64x64/quandoparte.png \
icons/scalable/quandoparte.svg \
isEmpty(PREFIX) {
maemo5 {
PREFIX=/opt/usr
- DESKTOPDIR=/usr/share/applications/hildon
} else {
PREFIX=/usr/local
- DESKTOPDIR=$$PREFIX/share/applications
}
}
+ maemo5 {
+ DESKTOPDIR=/usr/share/applications/hildon
+ } else {
+ DESKTOPDIR=$$PREFIX/share/applications
+ }
+
BINDIR=$$PREFIX/bin
DESKTOPDIR=$$PREFIX/share/applications
DATADIR=$$PREFIX/share/apps/$${TARGET}
}
unix:!symbian {
- desktopfile.files = $${TARGET}.desktop
+ desktopfile.files = resources/$$PLATFORM/applications/$${TARGET}.desktop
desktopfile.path = $$DESKTOPDIR
INSTALLS += desktopfile
}
INSTALLS += i18n
INSTALLS += stations
}
-
-unix {
- desktopfile.files = $${TARGET}.desktop
- maemo5 {
- desktopfile.path = /usr/share/applications/hildon
- } else {
- desktopfile.path = $$DATADIR/applications
- }
- INSTALLS += desktopfile
-}