-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathweatherforecast.pro
129 lines (99 loc) · 3.38 KB
/
weatherforecast.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# Copyright (c) 2011-2014 Microsoft Mobile.
QT += network declarative xml
CONFIG += qt-components
TARGET = weatherforecast
VERSION = 1.1
HEADERS += \
src/analyticsstub.h \
src/appsettings.h \
src/translate.h \
src/wwosupport.h
SOURCES += \
src/main.cpp \
src/appsettings.cpp \
src/translate.cpp \
src/wwosupport.cpp
OTHER_FILES += \
qml/common/* \
loc/*.ts
RESOURCES += rsc/common.qrc
TRANSLATIONS += \
loc/base_en.ts \
loc/base_fi.ts \
loc/base_ge.ts \
loc/base_pl.ts
# The files containing the strings to be translated need to be defined under
# sources. Otherwise lupdate tool will not work properly.
for_lupdate {
SOURCES += \
qml/common/Constants.js \
qml/common/*.qml \
qml/harmattan/*.qml \
qml/symbian/*.qml
}
# In test mode the application reads the weather data from a static file
# instead of using the network.
# Remove or comment out the following line to disable the test mode.
#DEFINES += TEST_MODE
# The implementation supports branding which uses custom list headings.
# To build the version without the customization, enable the following
# definition. Disabling branding is not supported on Harmattan.
#DEFINES += NO_BRANDING
# Enables In-App Analytics
# IAA is used to log used cities and languages in the application
#DEFINES += IAA
symbian {
TARGET = WeatherForecast
TARGET.UID3 = 0xE183855B
# In-App Analytics enabled in the code
contains(DEFINES, IAA) {
message(In-App Analytics enabled in the code)
TARGET.CAPABILITY = NetworkServices LocalServices ReadUserData \
WriteUserData UserEnvironment ReadDeviceData
}
# In-App Analytics disabled in the code
!contains(DEFINES, IAA) {
message(In-App Analytics disabled in the code)
TARGET.CAPABILITY = NetworkServices
}
# Define In-App Analytics dependency
analytics_deploy.pkg_prerules = "(0x20031574), 3, 0, 7, {\"In-App Analytics\"}"
DEPLOYMENT += analytics_deploy
HEADERS += src/componentloader.h
SOURCES += src/componentloader.cpp
RESOURCES += rsc/symbian.qrc
# Publish the app version to source code.
DEFINES += APP_VERSION=\"$$VERSION\"
LIBS += -lcone -leikcore -lavkon
ICON = icons/weatherforecast.svg
OTHER_FILES += qml/symbian/*
# Smart Installer package's UID
# This UID is from the protected range and therefore the package will
# fail to install if self-signed. By default qmake uses the unprotected
# range value if unprotected UID is defined for the application and
# 0x2002CCCF value if protected UID is given to the application
#DEPLOYMENT.installer_header = 0x2002CCCF
}
contains(MEEGO_EDITION, harmattan) {
DEFINES += Q_WS_HARMATTAN
RESOURCES += rsc/harmattan.qrc
OTHER_FILES += qml/harmattan/*
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
target.path = /opt/$${TARGET}/bin
desktopfile.files = $${TARGET}.desktop
desktopfile.path = /usr/share/applications
icon64.files += icons/$${TARGET}.png
icon64.path = /usr/share/icons/hicolor/64x64/apps
INSTALLS += \
target \
desktopfile \
icon64
}
simulator {
HEADERS += src/componentloader.h
SOURCES += src/componentloader.cpp
RESOURCES += rsc/symbian.qrc
OTHER_FILES += qml/symbian/*
# Publish the app version to source code.
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
}