Replaced YQL data source with CSV
[marketstoday] / src / src.pro
1 TEMPLATE = app
2
3 CONFIG += debug
4
5 exists($$QMAKE_INCDIR_QT"/../qmsystem2/qmkeys.h"){
6    DEFINES += Q_WS_MAEMO_6
7 }
8
9 QT += script \
10     declarative \
11     sql \
12     network
13
14 TARGET = marketstoday
15 HEADERS += \
16     cpp/marketstodayqmlview.h \
17     cpp/configqmlview.h \
18     cpp/logutility.h \
19     cpp/connectionutility.h \
20     cpp/sharedcontext.h
21
22 SOURCES += cpp/main.cpp \
23     cpp/marketstodayqmlview.cpp \
24     cpp/configqmlview.cpp
25 VPATH += cpp
26
27 MOC_DIR = cpp/.mocs
28 OBJECTS_DIR = cpp/.objs
29
30 OTHER_FILES += \
31     qml/Config.qml \
32     qml/ConfigOptionsComponent.qml \
33     qml/ConfigParametersComponent.qml \
34     qml/ConfigTickersComponent.qml \
35     qml/Library/TitleBar.qml \
36     qml/Library/ToolBar.qml \
37     qml/Library/js/DBUtility.js \
38     qml/Library/js/ISODate.js \
39     qml/Library/js/Common.js \
40     qml/Library/js/CoreLogic.js \
41     qml/MarketsTodayWidget.qml \
42     qml/MarketsTodayApp.qml \
43     qml/Library/MenuBar.qml \
44     qml/Library/Button.qml \
45     qml/StockDetailsComponent.qml \
46     qml/StockDetailsRow.qml \
47     qml/Library/Loading.qml \
48     qml/MarketsTodayLegacyApp.qml \
49     qml/Library/CustomGestureArea.qml \
50     qml/Library/js/CSVUtility.js
51
52 RESOURCES += \
53     resources.qrc
54
55 symbian {
56
57     TARGET.UID3 = 0xE6159209
58     # Allow network access on Symbian
59     TARGET.CAPABILITY += NetworkServices ReadUserData
60 }
61 else:unix {   
62    INSTALLDIR = /../debian/marketstoday
63    INSTALLS += target app icon26 icon32 icon48 icon64 appicon
64
65    # Maemo 5 specific paths (The exists function is used to make sure the widget is deployed to FREMANTLE_X86 target in Scratchbox
66    # Scratchbox is not identified as maemo or maemo5 platform
67    maemo5 | exists(/usr/bin/hildon-home) {
68     message("Deploying widget")
69
70     INSTALLS += widget
71     widget.path = /usr/share/applications/hildon-home
72     widget.files += data/marketstoday-widget.desktop
73     app.path = /usr/share/applications/hildon
74     app.files += data/marketstoday-app.desktop
75    }
76    else{
77     app.path = /usr/share/applications
78     app.files += data/marketstoday-app-meego.desktop   
79    }
80
81    target.path = $$INTSALLDIR/opt/marketstoday/
82
83    icon26.path = /usr/share/icons/hicolor/26x26/apps
84    icon26.files += data/icons/26x26/marketstoday.png
85
86    icon32.path = /usr/share/icons/hicolor/32x32/apps
87    icon32.files += data/icons/32x32/marketstoday.png
88
89    icon48.path = /usr/share/icons/hicolor/48x48/apps
90    icon48.files += data/icons/48x48/marketstoday.png
91
92    icon64.path = /usr/share/icons/hicolor/64x64/apps
93    icon64.files += data/icons/64x64/marketstoday.png
94
95    appicon.path = /usr/share/icons/hicolor/80x80/apps
96    appicon.files += data/icons/marketstoday_icon.png
97 }
98
99 # Include Qt Maemo 5 Home screen widget adaptor
100 include(qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.pri)
101
102
103
104
105
106
107
108
109