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