author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Fri, 11 Jun 2010 13:38:32 +0300 | |
changeset 28 | 075425b8d9a4 |
parent 24 | 6df133bd92e1 |
child 32 | 189d20c34778 |
child 34 | bc10a61bd7d3 |
permissions | -rw-r--r-- |
24 | 1 |
# |
2 |
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
# All rights reserved. |
|
4 |
# This component and the accompanying materials are made available |
|
5 |
# under the terms of "Eclipse Public License v1.0" |
|
6 |
# which accompanies this distribution, and is available |
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
# |
|
9 |
# Initial Contributors: |
|
10 |
# Nokia Corporation - initial contribution. |
|
11 |
# |
|
12 |
# Contributors: |
|
13 |
# |
|
14 |
# Description: |
|
15 |
# |
|
16 |
||
17 |
||
18 |
# ########################################################## |
|
19 |
# Start of Flag definitions |
|
20 |
# Add or remove comments to disable or enable the features |
|
21 |
# ########################################################## |
|
22 |
||
23 |
# Use of some debugging controls that are not part of official UI spec |
|
24 |
# RADIOFLAGS += USE_DEBUGGING_CONTROLS |
|
25 |
||
26 |
# Reads the layout docml files and images from e:/radiotest/ folder |
|
27 |
# RADIOFLAGS += USE_LAYOUT_FROM_E_DRIVE |
|
28 |
||
29 |
# Flag to use dummy radio data read from XML file |
|
30 |
# RADIOFLAGS += USE_DUMMY_RADIO_DATA |
|
31 |
||
32 |
# Functional testing |
|
33 |
# RADIOFLAGS += SHOW_CALLSIGN_IN_ANY_REGION |
|
34 |
||
35 |
# Build flag to add EXPORTUNFROZEN to the pro file |
|
36 |
# RADIOFLAGS += USE_UNFROZEN_EXPORTS |
|
37 |
||
38 |
# Enables the assert macros |
|
39 |
# RADIOFLAGS += ENABLE_ASSERTS |
|
40 |
||
41 |
# ########################################################## |
|
42 |
# Start of Logging flag definitions |
|
43 |
# ########################################################## |
|
44 |
||
45 |
# Full logging flag that enables the full logging including also timestamps |
|
46 |
# Enabled by default in debug builds |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
47 |
# CONFIG(debug, debug|release) : LOGGING_FLAGS += LOGGING_ENABLED |
24 | 48 |
|
49 |
# Uncomment to enable full logging in release builds |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
50 |
LOGGING_FLAGS *= LOGGING_ENABLED |
24 | 51 |
|
52 |
# Timestamp logging flag that enables only timestamp logging |
|
53 |
# LOGGING_FLAGS += TIMESTAMP_LOGGING_ENABLED |
|
54 |
||
55 |
# Combines Ui and Engine logs by feeding UI traces to the engine logger |
|
56 |
LOGGING_FLAGS += COMBINE_WITH_ENGINE_LOGGER |
|
57 |
||
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
58 |
# Logging level |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
59 |
# 1 - Normal level |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
60 |
# 2 - More verbose level |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
61 |
# 3 - Most verbose level |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
62 |
LOGGING_FLAGS += LOGGING_LEVEL=1 |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
63 |
|
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
64 |
# Select which radio component is being logged |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
65 |
# 1 - Radio application |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
66 |
# 2 - Radio homescreen widget |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
67 |
LOGGING_FLAGS += LOGGED_COMPONENT=1 |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
68 |
|
24 | 69 |
contains(LOGGING_FLAGS, TIMESTAMP_LOGGING_ENABLED)|contains(LOGGING_FLAGS, LOGGING_ENABLED) { |
70 |
||
71 |
# Writes debug prints to file if enabled |
|
72 |
#LOGGING_FLAGS += TRACE_TO_FILE |
|
73 |
||
74 |
# Settings for the log file name |
|
75 |
symbian:contains(LOGGING_FLAGS, TRACE_TO_FILE) { |
|
76 |
LOGGING_FLAGS += \"TRACE_OUTPUT_FILE=\\\"c:/logs/radio/fmradioui.txt\\\"\" |
|
77 |
LOGGING_FLAGS += FILTER_BY_LOGMARKER=true |
|
78 |
} |
|
79 |
} |
|
80 |
||
81 |
# Method for testing signal-slot connections |
|
82 |
# 1 - Log failed connection |
|
83 |
# 2 - Log failed connection and halt debugger |
|
84 |
LOGGING_FLAGS += CONNECT_TEST_MODE=2 |
|
85 |
||
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
86 |
win32: { |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
87 |
LOGGING_FLAGS *= LOGGING_ENABLED # Logging is always enabled in Win32 environment |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
88 |
RADIOFLAGS += VID_DEFAULT=0 |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
89 |
} |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
90 |
|
24 | 91 |
DEFINES += $$LOGGING_FLAGS |
92 |
||
93 |
# ########################################################## |
|
94 |
# End of Flag definitions |
|
95 |
# ########################################################## |
|
96 |
||
97 |
# Copy all radio flags to defines to define them as preprocessor macros |
|
98 |
DEFINES += $$RADIOFLAGS |
|
99 |
CONFIG += $$RADIOFLAGS |
|
100 |
CONFIG += $$LOGGING_FLAGS |
|
101 |
||
102 |
symbian: { |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
103 |
DEFINES += SYMBIAN |
24 | 104 |
TARGET.EPOCALLOWDLLDATA = 1 |
105 |
TARGET.VID = VID_DEFAULT |
|
106 |
TARGET.CAPABILITY = CAP_GENERAL_DLL |
|
107 |
} |
|
108 |
||
109 |
win32: { |
|
110 |
DEFINES += BUILD_WIN32 |
|
111 |
DESTDIR = ../bin |
|
112 |
LIBS += -L../bin |
|
113 |
INCLUDEPATH += ../radioenginewrapper/inc |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
114 |
INCLUDEPATH += ../../internal/win32_stubs |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
115 |
HEADERS += ../../internal/win32_stubs/qsysteminfo.h |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
116 |
HEADERS += ../../internal/win32_stubs/xqserviceutil.h |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
117 |
HEADERS += ../../internal/win32_stubs/xqserviceprovider.h |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
118 |
SOURCES += ../../internal/win32_stubs/win32_stubs.cpp |
24 | 119 |
} |
120 |
||
121 |
USE_UNFROZEN_EXPORTS { |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
122 |
symbian:MMP_RULES += "exportunfrozen" |
24 | 123 |
symbian:DEF_FILE = not_used.def |
124 |
} |
|
125 |
||
126 |
# $$_PRO_FILE_PWD_ points to the directory of the pro file |
|
127 |
MOC_DIR = $$_PRO_FILE_PWD_/tmp |
|
128 |
RCC_DIR = $$_PRO_FILE_PWD_/tmp |
|
129 |
OBJECTS_DIR = $$_PRO_FILE_PWD_/tmp |
|
130 |
UI_DIR = $$_PRO_FILE_PWD_/tmp |
|
131 |
UI_HEADERS_DIR = $$_PRO_FILE_PWD_/tmp |
|
132 |
UI_SOURCES_DIR = $$_PRO_FILE_PWD_/tmp |