#------------------------------------------------- # # Project created by QtCreator 2010-11-13T19:51:39 # #------------------------------------------------- VERSION = 0.4.80 QT += webkit network harmattan { QT += declarative PLATFORM = harmattan DEFINES += TARGET_PLATFORM_HARMATTAN # enable booster CONFIG += qdeclarative-boostable QMAKE_CXXFLAGS += -fPIC -fvisibility=hidden -fvisibility-inlines-hidden QMAKE_LFLAGS += -pie -rdynamic PLATFORM_SOURCES = view.cpp PLATFORM_HEADERS = view.h } maemo5 { QT += maemo5 PLATFORM = fremantle DEFINES += TARGET_PLATFORM_FREMANTLE PLATFORM_SOURCES = \ app.cpp \ stationlistview.cpp \ stationview.cpp \ settingsdialog.cpp \ keypressforwarder.cpp PLATFORM_HEADERS= \ app.h \ stationlistview.h \ keypressforwarder.h \ settingsdialog.h \ stationview.h } symbian { QT += declarative DEFINES += TARGET_PLATFORM_SYMBIAN PLATFORM = symbian PLATFORM_SOURCES = view.cpp PLATFORM_HEADERS = view.h } !harmattan:!maemo5:!symbian { PLATFORM = desktop DEFINES += TARGET_PLATFORM_DESKTOP PLATFORM_SOURCES = view.cpp } message(Compiling For: $$PLATFORM) message(Platform Sources: $$PLATFORM_SOURCES) message(Qt Modules Used: $$QT) message(Building version: $$VERSION) CONFIG += qt webkit mobility MOBILITY = location TARGET = quandoparte TEMPLATE = app VERSION_STRING = '\\"$${VERSION}\\"' DEFINES += QP_VERSION=\"$${VERSION_STRING}\" !debug { # DEFINES += QT_NO_DEBUG_OUTPUT } TRANSLATIONS = resources/i18n/quandoparte_it.ts SOURCES += \ $$PLATFORM_SOURCES \ main.cpp \ stationlistmodel.cpp \ stationlistproxymodel.cpp \ settings.cpp HEADERS += \ $$PLATFORM_HEADERS \ stationlistmodel.h \ stationlistproxymodel.h \ settings.h FORMS += \ settingsdialog.ui \ stationlistview.ui symbian { TARGET.UID3 = 0xe30fb688 # TARGET.CAPABILITY += TARGET.EPOCSTACKSIZE = 0x14000 TARGET.EPOCHEAPSIZE = 0x020000 0x800000 } OTHER_FILES += \ resources/harmattan/applications/quandoparte.desktop \ resources/fremantle/applications/quandoparte.desktop \ icons/48x48/quandoparte.png \ icons/64x64/quandoparte.png \ icons/scalable/quandoparte.svg \ 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 \ 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 unix { isEmpty(PREFIX) { maemo5 { PREFIX=/opt/usr } else { PREFIX=/usr/local } } maemo5 { DESKTOPDIR=/usr/share/applications/hildon } else { DESKTOPDIR=$$PREFIX/share/applications } 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 } unix:!symbian { desktopfile.files = resources/$$PLATFORM/applications/$${TARGET}.desktop desktopfile.path = $$DESKTOPDIR 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 iconscalable.files = icons/scalable/$${TARGET}.svg icon48.path = /usr/share/icons/hicolor/48x48/apps icon64.path = /usr/share/icons/hicolor/64x64/apps iconscalable.path = /usr/share/icons/hicolor/scalable/apps INSTALLS += icon48 INSTALLS += icon64 INSTALLS += iconscalable INSTALLS += css INSTALLS += i18n INSTALLS += stations } harmattan { qml.files = resources/harmattan/qml/*.qml resources/harmattan/qml/*.js qml.path = $$DATADIR/qml INSTALLS += qml }