radiohswidget/tsrc/buildflags.pri
author hgs
Thu, 08 Jul 2010 12:44:18 +0300
changeset 36 ba22309243a1
parent 34 bc10a61bd7d3
permissions -rw-r--r--
201027
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34
hgs
parents:
diff changeset
     1
#
hgs
parents:
diff changeset
     2
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
# All rights reserved.
hgs
parents:
diff changeset
     4
# This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
# under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
# which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
#
hgs
parents:
diff changeset
     9
# Initial Contributors:
hgs
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
#
hgs
parents:
diff changeset
    12
# Contributors:
hgs
parents:
diff changeset
    13
#
hgs
parents:
diff changeset
    14
# Description:
hgs
parents:
diff changeset
    15
#
hgs
parents:
diff changeset
    16
hgs
parents:
diff changeset
    17
# ##########################################################
hgs
parents:
diff changeset
    18
# Start of Flag definitions
hgs
parents:
diff changeset
    19
# Add or remove comments to disable or enable the features
hgs
parents:
diff changeset
    20
# ##########################################################
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
# ##########################################################
hgs
parents:
diff changeset
    23
# Start of Logging flag definitions
hgs
parents:
diff changeset
    24
# ##########################################################
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
# Full logging flag that enables the full logging including also timestamps
hgs
parents:
diff changeset
    27
# Enabled by default in debug builds
hgs
parents:
diff changeset
    28
# CONFIG(debug, debug|release) : LOGGING_FLAGS += LOGGING_ENABLED
hgs
parents:
diff changeset
    29
hgs
parents:
diff changeset
    30
# Uncomment to enable full logging in release builds
hgs
parents:
diff changeset
    31
# LOGGING_FLAGS *= LOGGING_ENABLED
hgs
parents:
diff changeset
    32
hgs
parents:
diff changeset
    33
# Timestamp logging flag that enables only timestamp logging
hgs
parents:
diff changeset
    34
# LOGGING_FLAGS += TIMESTAMP_LOGGING_ENABLED
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
# Combines Ui and Engine logs by feeding UI traces to the engine logger
hgs
parents:
diff changeset
    37
# LOGGING_FLAGS += COMBINE_WITH_ENGINE_LOGGER
hgs
parents:
diff changeset
    38
hgs
parents:
diff changeset
    39
# Logging level
hgs
parents:
diff changeset
    40
# 1 - Normal level
hgs
parents:
diff changeset
    41
# 2 - More verbose level
hgs
parents:
diff changeset
    42
# 3 - Most verbose level
hgs
parents:
diff changeset
    43
LOGGING_FLAGS += LOGGING_LEVEL=1
hgs
parents:
diff changeset
    44
hgs
parents:
diff changeset
    45
# Select which radio component is being logged
hgs
parents:
diff changeset
    46
# 1 - Radio application
hgs
parents:
diff changeset
    47
# 2 - Radio homescreen widget
hgs
parents:
diff changeset
    48
LOGGING_FLAGS += LOGGED_COMPONENT=2
hgs
parents:
diff changeset
    49
hgs
parents:
diff changeset
    50
contains(LOGGING_FLAGS, TIMESTAMP_LOGGING_ENABLED)|contains(LOGGING_FLAGS, LOGGING_ENABLED) {
hgs
parents:
diff changeset
    51
hgs
parents:
diff changeset
    52
    # Writes debug prints to file if enabled
hgs
parents:
diff changeset
    53
    #LOGGING_FLAGS += TRACE_TO_FILE
hgs
parents:
diff changeset
    54
hgs
parents:
diff changeset
    55
    # Settings for the log file name
hgs
parents:
diff changeset
    56
    symbian:contains(LOGGING_FLAGS, TRACE_TO_FILE) {
hgs
parents:
diff changeset
    57
        LOGGING_FLAGS += \"TRACE_OUTPUT_FILE=\\\"c:/logs/radio/radiohswidget.txt\\\"\"
hgs
parents:
diff changeset
    58
        LOGGING_FLAGS += FILTER_BY_LOGMARKER=true
hgs
parents:
diff changeset
    59
    }
hgs
parents:
diff changeset
    60
}
hgs
parents:
diff changeset
    61
hgs
parents:
diff changeset
    62
# Method for testing signal-slot connections
hgs
parents:
diff changeset
    63
# 1 - Log failed connection
hgs
parents:
diff changeset
    64
# 2 - Log failed connection and halt debugger
hgs
parents:
diff changeset
    65
LOGGING_FLAGS += CONNECT_TEST_MODE=2
hgs
parents:
diff changeset
    66
hgs
parents:
diff changeset
    67
# Logging is always enabled in Win32 environment
hgs
parents:
diff changeset
    68
win32:LOGGING_FLAGS *= LOGGING_ENABLED
hgs
parents:
diff changeset
    69
hgs
parents:
diff changeset
    70
DEFINES += $$LOGGING_FLAGS
hgs
parents:
diff changeset
    71
hgs
parents:
diff changeset
    72
# ##########################################################
hgs
parents:
diff changeset
    73
# End of Flag definitions
hgs
parents:
diff changeset
    74
# ##########################################################
hgs
parents:
diff changeset
    75
hgs
parents:
diff changeset
    76
# $$_PRO_FILE_PWD_ points to the directory of the pro file
hgs
parents:
diff changeset
    77
MOC_DIR         = $$_PRO_FILE_PWD_/tmp
hgs
parents:
diff changeset
    78
RCC_DIR         = $$_PRO_FILE_PWD_/tmp
hgs
parents:
diff changeset
    79
OBJECTS_DIR     = $$_PRO_FILE_PWD_/tmp
hgs
parents:
diff changeset
    80
UI_DIR          = $$_PRO_FILE_PWD_/tmp
hgs
parents:
diff changeset
    81
UI_HEADERS_DIR  = $$_PRO_FILE_PWD_/tmp
hgs
parents:
diff changeset
    82
UI_SOURCES_DIR  = $$_PRO_FILE_PWD_/tmp