#-------------------------------------------------
VERSION = 0.4.80
+USE_RESOURCES=0
QT += webkit network
CONFIG += qt webkit mobility
VERSION_STRING = '\\"$${VERSION}\\"'
DEFINES += QP_VERSION=\"$${VERSION_STRING}\"
+contains(USE_RESOURCES,1) {
+ DEFINES += USE_RESOURCES=1
+}
+
!debug {
# DEFINES += QT_NO_DEBUG_OUTPUT
}
TARGET.EPOCHEAPSIZE = 0x020000 0x800000
}
+QMLSOURCES = \
+ resources/harmattan/qml/main.qml \
+ resources/harmattan/qml/StationListPage.qml \
+ resources/harmattan/qml/StationPage.qml \
+ resources/harmattan/qml/SearchBar.qml \
+ resources/harmattan/qml/PageHeader.qml \
+ resources/harmattan/qml/uiconstants.js \
+ resources/harmattan/qml/StationListPage.js \
+ resources/harmattan/qml/AboutPage.qml \
+ resources/harmattan/qml/InfoBar.qml \
+ resources/harmattan/qml/DroppedShadow.qml \
+ resources/harmattan/qml/DelayIndicator.qml
+
OTHER_FILES += \
resources/harmattan/applications/quandoparte.desktop \
resources/fremantle/applications/quandoparte.desktop \
resources/stations/stations.qpl \
resources/stations/generatelist.xq \
resources/stations/generateunclassifiedlist.xq \
- resources/harmattan/qml/main.qml \
- resources/harmattan/qml/StationListPage.qml \
- resources/harmattan/qml/StationPage.qml \
- resources/harmattan/qml/SearchBar.qml \
- resources/harmattan/qml/PageHeader.qml \
- resources/harmattan/qml/uiconstants.js \
- resources/harmattan/qml/StationListPage.js \
- resources/harmattan/qml/AboutPage.qml \
- resources/harmattan/qml/InfoBar.qml \
- resources/harmattan/qml/DroppedShadow.qml
+ $$QMLSOURCES
unix {
isEmpty(PREFIX) {
BINDIR=$$PREFIX/bin
DESKTOPDIR=$$PREFIX/share/applications
- DATADIR=$$PREFIX/share/apps/$${TARGET}
+ contains(USE_RESOURCES,1) {
+ DATADIR=":"
+ } else {
+ DATADIR=$$PREFIX/share/apps/$${TARGET}
+ }
DEFINES += DATADIR=\\\"$${DATADIR}\\\" PKGDATADIR=\\\"$${PKGDATADIR}\\\"
}
INSTALLS += icon48
INSTALLS += icon64
INSTALLS += iconscalable
- INSTALLS += css
- INSTALLS += i18n
- INSTALLS += stations
+ !contains(USE_RESOURCES,1) {
+ INSTALLS += css
+ INSTALLS += i18n
+ INSTALLS += stations
+ }
}
-harmattan {
- qml.files = resources/harmattan/qml/*.qml resources/harmattan/qml/*.js
- qml.path = $$DATADIR/qml
- INSTALLS += qml
+!contains(USE_RESOURCES,1) {
+ harmattan {
+ qml.files = resources/harmattan/qml/*.qml resources/harmattan/qml/*.js
+ qml.path = $$DATADIR/qml
+ INSTALLS += qml
+ }
}
+contains(USE_RESOURCES,1) {
+ RESOURCES += \
+ quandoparte.qrc
+}
+
+hack_to_fix_translations {
+ SOURCES += $$QMLSOURCES
+}