TEMPLATE = app
+CONFIG += debug
+
QT += script \
declarative \
- sql
+ sql \
+ network
TARGET = marketstoday
HEADERS += \
cpp/marketstodayqmlview.h \
cpp/configqmlview.h \
- cpp/logutility.h
+ cpp/logutility.h \
+ cpp/connectionutility.h
+
SOURCES += cpp/main.cpp \
cpp/marketstodayqmlview.cpp \
cpp/configqmlview.cpp
MOC_DIR = cpp/.mocs
OBJECTS_DIR = cpp/.objs
-OTHER_FILES += qml/MarketsToday.qml \
+OTHER_FILES += \
qml/Config.qml \
qml/ConfigOptionsComponent.qml \
qml/ConfigParametersComponent.qml \
qml/ConfigTickersComponent.qml \
- qml/StockQuoteDelegate.qml \
qml/StockQuotesComponent.qml \
qml/Library/TitleBar.qml \
qml/Library/ToolBar.qml \
qml/Library/js/DBUtility.js \
qml/Library/js/ISODate.js \
- qml/Library/js/Common.js
+ qml/Library/js/Common.js \
+ qml/Library/js/XMLParser.js \
+ qml/Library/js/CoreLogic.js \
+ qml/MarketsTodayWidget.qml \
+ qml/MarketsTodayApp.qml \
+ qml/Library/MenuBar.qml \
+ qml/Library/Button.qml
RESOURCES += \
resources.qrc
-INSTALLDIR = /../debian/marketstoday
-
symbian {
TARGET.UID3 = 0xE6159209
# Allow network access on Symbian
- TARGET.CAPABILITY += NetworkServices
+ TARGET.CAPABILITY += NetworkServices ReadUserData
}
+else:unix {
+ INSTALLDIR = /../debian/marketstoday
+ INSTALLS += target app icon26 icon32 icon48 icon64 scalable
-unix {
- INSTALLS += target desktop icon48
+ # Maemo 5 specific paths (The exists function is used to make sure the widget is deployed to FREMANTLE_X86 target in Scratchbox
+ # Scratchbox is not identified as maemo or maemo5 platform
+ maemo5 | exists(/usr/bin/hildon-home) {
+ message("Deploying widget")
+
+ INSTALLS += widget
+ widget.path = /usr/share/applications/hildon-home
+ widget.files += data/marketstoday-widget.desktop
+ app.path = /usr/share/applications/hildon
+ }
+ else{
+ app.path = /usr/share/applications
+ }
+ app.files += data/marketstoday-app.desktop
target.path = $$INTSALLDIR/opt/marketstoday/
- desktop.path = /usr/share/applications/hildon-home
- desktop.files += data/marketstoday.desktop
+
+ icon26.path = /usr/share/icons/hicolor/26x26/apps
+ icon26.files += data/icons/26x26/marketstoday.png
+
+ icon32.path = /usr/share/icons/hicolor/32x32/apps
+ icon32.files += data/icons/32x32/marketstoday.png
+
icon48.path = /usr/share/icons/hicolor/48x48/apps
- icon48.files += data/icons/marketstoday.png
+ icon48.files += data/icons/48x48/marketstoday.png
+
+ icon64.path = /usr/share/icons/hicolor/64x64/apps
+ icon64.files += data/icons/64x64/marketstoday.png
+
+ scalable.path = /usr/share/icons/hicolor/scalable/apps
+ scalable.files += data/icons/marketstoday_scalable_icon.png
}
# Include Qt Maemo 5 Home screen widget adaptor