radioapp/buildflags.pri
changeset 23 a2b50a479edf
parent 19 afea38384506
child 24 6df133bd92e1
equal deleted inserted replaced
19:afea38384506 23:a2b50a479edf
     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 enable usage of the new preset utility
       
    36 RADIOFLAGS += COMPILE_WITH_NEW_PRESET_UTILITY
       
    37 
       
    38 # Build flag to add EXPORTUNFROZEN to the pro file
       
    39 # RADIOFLAGS += USE_UNFROZEN_EXPORTS
       
    40 
       
    41 # Enables the assert macros
       
    42 # RADIOFLAGS += ENABLE_ASSERTS
       
    43 
       
    44 # ##########################################################
       
    45 # Start of Logging flag definitions
       
    46 # ##########################################################
       
    47 
       
    48 # Full logging flag that enables the full logging including also timestamps
       
    49 # Enabled by default in debug builds
       
    50  CONFIG(debug, debug|release) : LOGGING_FLAGS += LOGGING_ENABLED
       
    51 
       
    52 # Uncomment to enable full logging in release builds
       
    53 # LOGGING_FLAGS *= LOGGING_ENABLED
       
    54 
       
    55 # Timestamp logging flag that enables only timestamp logging
       
    56 # LOGGING_FLAGS += TIMESTAMP_LOGGING_ENABLED
       
    57 
       
    58 # Combines Ui and Engine logs by feeding UI traces to the engine logger
       
    59 LOGGING_FLAGS += COMBINE_WITH_ENGINE_LOGGER
       
    60 
       
    61 contains(LOGGING_FLAGS, TIMESTAMP_LOGGING_ENABLED)|contains(LOGGING_FLAGS, LOGGING_ENABLED) {
       
    62 
       
    63     # Writes debug prints to file if enabled
       
    64     #LOGGING_FLAGS += TRACE_TO_FILE
       
    65 
       
    66     # Settings for the log file name
       
    67     symbian:contains(LOGGING_FLAGS, TRACE_TO_FILE) {
       
    68         LOGGING_FLAGS += \"TRACE_OUTPUT_FILE=\\\"c:/logs/radio/fmradioui.txt\\\"\"
       
    69         LOGGING_FLAGS += FILTER_BY_LOGMARKER=true
       
    70     }
       
    71 }
       
    72 
       
    73 # Method for testing signal-slot connections
       
    74 # 1 - Log failed connection
       
    75 # 2 - Log failed connection and halt debugger
       
    76 LOGGING_FLAGS += CONNECT_TEST_MODE=2
       
    77 
       
    78 DEFINES += $$LOGGING_FLAGS
       
    79 
       
    80 # ##########################################################
       
    81 # End of Flag definitions
       
    82 # ##########################################################
       
    83 
       
    84 # Copy all radio flags to defines to define them as preprocessor macros
       
    85 DEFINES += $$RADIOFLAGS
       
    86 CONFIG += $$RADIOFLAGS
       
    87 CONFIG += $$LOGGING_FLAGS
       
    88 
       
    89 symbian: {
       
    90     DEFINES += SYMBIAN
       
    91     TARGET.EPOCALLOWDLLDATA = 1
       
    92     TARGET.VID              = VID_DEFAULT
       
    93     TARGET.CAPABILITY       = CAP_GENERAL_DLL
       
    94 }
       
    95 
       
    96 win32: {
       
    97     DEFINES     += BUILD_WIN32
       
    98     DESTDIR     = ../bin
       
    99     LIBS        += -L../bin
       
   100     INCLUDEPATH += ../radioenginewrapper/inc
       
   101 }
       
   102 
       
   103 USE_UNFROZEN_EXPORTS {
       
   104     symbian:MMP_RULES   +=  "exportunfrozen"
       
   105     symbian:DEF_FILE    = not_used.def
       
   106 }
       
   107 
       
   108 # $$_PRO_FILE_PWD_ points to the directory of the pro file
       
   109 MOC_DIR         = $$_PRO_FILE_PWD_/tmp
       
   110 RCC_DIR         = $$_PRO_FILE_PWD_/tmp
       
   111 OBJECTS_DIR     = $$_PRO_FILE_PWD_/tmp
       
   112 UI_DIR          = $$_PRO_FILE_PWD_/tmp
       
   113 UI_HEADERS_DIR  = $$_PRO_FILE_PWD_/tmp
       
   114 UI_SOURCES_DIR  = $$_PRO_FILE_PWD_/tmp