radioapp/buildflags.pri
changeset 13 46974bebc798
child 16 f54ebcfc1b80
equal deleted inserted replaced
0:f3d95d9c00ab 13:46974bebc798
       
     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 # Usage of the Mobile Extensions APIs
       
    30 # RADIOFLAGS += USE_MOBILE_EXTENSIONS_API
       
    31 
       
    32 # Usage of stubbed radio engine
       
    33 # RADIOFLAGS += USE_STUBBED_RADIOENGINE
       
    34 
       
    35 # Flag to use dummy radio data read from XML file
       
    36 # RADIOFLAGS += USE_DUMMY_RADIO_DATA
       
    37 
       
    38 # Functional testing
       
    39 # RADIOFLAGS += SHOW_CALLSIGN_IN_ANY_REGION
       
    40 
       
    41 # Build flag to enable usage of the new preset utility
       
    42 # RADIOFLAGS += COMPILE_WITH_NEW_PRESET_UTILITY
       
    43 
       
    44 # Build flag to add EXPORTUNFROZEN to the pro file
       
    45 # RADIOFLAGS += USE_UNFROZEN_EXPORTS
       
    46 
       
    47 # Enables the assert macros
       
    48 # RADIOFLAGS += ENABLE_ASSERTS
       
    49 
       
    50 # ##########################################################
       
    51 # Start of Logging flag definitions
       
    52 # ##########################################################
       
    53 
       
    54 # Full logging flag that enables the full logging including also timestamps
       
    55 # Enabled by default in debug builds
       
    56 # CONFIG(debug, debug|release) : LOGGING_FLAGS += LOGGING_ENABLED
       
    57 
       
    58 # Uncomment to enable full logging in release builds
       
    59 # LOGGING_FLAGS *= LOGGING_ENABLED
       
    60 
       
    61 # Timestamp logging flag that enables only timestamp logging
       
    62 # LOGGING_FLAGS += TIMESTAMP_LOGGING_ENABLED
       
    63 
       
    64 # Marker that is printed in the beginning of each log line
       
    65 ## LOGGING_FLAGS += LOGMARKER=\\\"FMRadio:\\\"
       
    66 
       
    67 # Combines Ui and Engine logs by feeding UI traces to the engine logger
       
    68 LOGGING_FLAGS += COMBINE_WITH_ENGINE_LOGGER
       
    69 
       
    70 contains(LOGGING_FLAGS, TIMESTAMP_LOGGING_ENABLED)|contains(LOGGING_FLAGS, LOGGING_ENABLED) {
       
    71 
       
    72     # Writes debug prints to file if enabled
       
    73     #LOGGING_FLAGS += TRACE_TO_FILE
       
    74 
       
    75     # Settings for the log file name
       
    76     symbian:contains(LOGGING_FLAGS, TRACE_TO_FILE) {
       
    77         LOGGING_FLAGS += \"TRACE_OUTPUT_FILE=\\\"c:/logs/radio/fmradioui.txt\\\"\"
       
    78         LOGGING_FLAGS += FILTER_BY_LOGMARKER=true
       
    79     }
       
    80 }
       
    81 
       
    82 # Method for testing signal-slot connections
       
    83 # 1 - Log failed connection
       
    84 # 2 - Log failed connection and halt debugger
       
    85 LOGGING_FLAGS += CONNECT_TEST_MODE=2
       
    86 
       
    87 DEFINES += $$LOGGING_FLAGS
       
    88 
       
    89 # ##########################################################
       
    90 # End of Flag definitions
       
    91 # ##########################################################
       
    92 
       
    93 # Copy all radio flags to defines to define them as preprocessor macros
       
    94 DEFINES += $$RADIOFLAGS
       
    95 CONFIG += $$RADIOFLAGS
       
    96 CONFIG += $$LOGGING_FLAGS
       
    97 
       
    98 win32:DEFINES += BUILD_WIN32
       
    99 
       
   100 # Mobile extension headers are in a special path
       
   101 MOBILE_EXTENSIONS_PATH = /mobile_extensions/include
       
   102 !exists($$MOBILE_EXTENSIONS_PATH) {
       
   103     CONFIG -= USE_MOBILE_EXTENSIONS_API
       
   104     DEFINES -= USE_MOBILE_EXTENSIONS_API
       
   105 }
       
   106 USE_MOBILE_EXTENSIONS_API {
       
   107     INCLUDEPATH += $$MOBILE_EXTENSIONS_PATH
       
   108 }
       
   109 
       
   110 USE_STUBBED_RADIOENGINE {
       
   111     INCLUDEPATH += /epoc32/include/radioengine_stub
       
   112 }
       
   113 
       
   114 USE_UNFROZEN_EXPORTS {
       
   115     symbian:MMP_RULES +=  "exportunfrozen"
       
   116 }
       
   117 
       
   118 # $$_PRO_FILE_PWD_ points to the directory of the pro file
       
   119 MOC_DIR         = $$_PRO_FILE_PWD_/tmp
       
   120 RCC_DIR         = $$_PRO_FILE_PWD_/tmp
       
   121 OBJECTS_DIR     = $$_PRO_FILE_PWD_/tmp
       
   122 UI_DIR          = $$_PRO_FILE_PWD_/tmp
       
   123 UI_HEADERS_DIR  = $$_PRO_FILE_PWD_/tmp
       
   124 UI_SOURCES_DIR  = $$_PRO_FILE_PWD_/tmp