radioapp/buildflags.pri
changeset 28 075425b8d9a4
parent 24 6df133bd92e1
child 32 189d20c34778
child 34 bc10a61bd7d3
equal deleted inserted replaced
24:6df133bd92e1 28:075425b8d9a4
    30 # RADIOFLAGS += USE_DUMMY_RADIO_DATA
    30 # RADIOFLAGS += USE_DUMMY_RADIO_DATA
    31 
    31 
    32 # Functional testing
    32 # Functional testing
    33 # RADIOFLAGS += SHOW_CALLSIGN_IN_ANY_REGION
    33 # RADIOFLAGS += SHOW_CALLSIGN_IN_ANY_REGION
    34 
    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
    35 # Build flag to add EXPORTUNFROZEN to the pro file
    39 # RADIOFLAGS += USE_UNFROZEN_EXPORTS
    36 # RADIOFLAGS += USE_UNFROZEN_EXPORTS
    40 
    37 
    41 # Enables the assert macros
    38 # Enables the assert macros
    42 # RADIOFLAGS += ENABLE_ASSERTS
    39 # RADIOFLAGS += ENABLE_ASSERTS
    45 # Start of Logging flag definitions
    42 # Start of Logging flag definitions
    46 # ##########################################################
    43 # ##########################################################
    47 
    44 
    48 # Full logging flag that enables the full logging including also timestamps
    45 # Full logging flag that enables the full logging including also timestamps
    49 # Enabled by default in debug builds
    46 # Enabled by default in debug builds
    50  CONFIG(debug, debug|release) : LOGGING_FLAGS += LOGGING_ENABLED
    47 # CONFIG(debug, debug|release) : LOGGING_FLAGS += LOGGING_ENABLED
    51 
    48 
    52 # Uncomment to enable full logging in release builds
    49 # Uncomment to enable full logging in release builds
    53 # LOGGING_FLAGS *= LOGGING_ENABLED
    50 LOGGING_FLAGS *= LOGGING_ENABLED
    54 
    51 
    55 # Timestamp logging flag that enables only timestamp logging
    52 # Timestamp logging flag that enables only timestamp logging
    56 # LOGGING_FLAGS += TIMESTAMP_LOGGING_ENABLED
    53 # LOGGING_FLAGS += TIMESTAMP_LOGGING_ENABLED
    57 
    54 
    58 # Combines Ui and Engine logs by feeding UI traces to the engine logger
    55 # Combines Ui and Engine logs by feeding UI traces to the engine logger
    59 LOGGING_FLAGS += COMBINE_WITH_ENGINE_LOGGER
    56 LOGGING_FLAGS += COMBINE_WITH_ENGINE_LOGGER
       
    57 
       
    58 # Logging level
       
    59 # 1 - Normal level
       
    60 # 2 - More verbose level
       
    61 # 3 - Most verbose level
       
    62 LOGGING_FLAGS += LOGGING_LEVEL=1
       
    63 
       
    64 # Select which radio component is being logged
       
    65 # 1 - Radio application
       
    66 # 2 - Radio homescreen widget
       
    67 LOGGING_FLAGS += LOGGED_COMPONENT=1
    60 
    68 
    61 contains(LOGGING_FLAGS, TIMESTAMP_LOGGING_ENABLED)|contains(LOGGING_FLAGS, LOGGING_ENABLED) {
    69 contains(LOGGING_FLAGS, TIMESTAMP_LOGGING_ENABLED)|contains(LOGGING_FLAGS, LOGGING_ENABLED) {
    62 
    70 
    63     # Writes debug prints to file if enabled
    71     # Writes debug prints to file if enabled
    64     #LOGGING_FLAGS += TRACE_TO_FILE
    72     #LOGGING_FLAGS += TRACE_TO_FILE
    73 # Method for testing signal-slot connections
    81 # Method for testing signal-slot connections
    74 # 1 - Log failed connection
    82 # 1 - Log failed connection
    75 # 2 - Log failed connection and halt debugger
    83 # 2 - Log failed connection and halt debugger
    76 LOGGING_FLAGS += CONNECT_TEST_MODE=2
    84 LOGGING_FLAGS += CONNECT_TEST_MODE=2
    77 
    85 
       
    86 win32: {
       
    87     LOGGING_FLAGS *= LOGGING_ENABLED    # Logging is always enabled in Win32 environment
       
    88     RADIOFLAGS += VID_DEFAULT=0
       
    89 }
       
    90 
    78 DEFINES += $$LOGGING_FLAGS
    91 DEFINES += $$LOGGING_FLAGS
    79 
    92 
    80 # ##########################################################
    93 # ##########################################################
    81 # End of Flag definitions
    94 # End of Flag definitions
    82 # ##########################################################
    95 # ##########################################################
    85 DEFINES += $$RADIOFLAGS
    98 DEFINES += $$RADIOFLAGS
    86 CONFIG += $$RADIOFLAGS
    99 CONFIG += $$RADIOFLAGS
    87 CONFIG += $$LOGGING_FLAGS
   100 CONFIG += $$LOGGING_FLAGS
    88 
   101 
    89 symbian: {
   102 symbian: {
    90     DEFINES += SYMBIAN
   103     DEFINES                 += SYMBIAN
    91     TARGET.EPOCALLOWDLLDATA = 1
   104     TARGET.EPOCALLOWDLLDATA = 1
    92     TARGET.VID              = VID_DEFAULT
   105     TARGET.VID              = VID_DEFAULT
    93     TARGET.CAPABILITY       = CAP_GENERAL_DLL
   106     TARGET.CAPABILITY       = CAP_GENERAL_DLL
    94 }
   107 }
    95 
   108 
    96 win32: {
   109 win32: {
    97     DEFINES     += BUILD_WIN32
   110     DEFINES     += BUILD_WIN32
    98     DESTDIR     = ../bin
   111     DESTDIR     = ../bin
    99     LIBS        += -L../bin
   112     LIBS        += -L../bin
   100     INCLUDEPATH += ../radioenginewrapper/inc
   113     INCLUDEPATH += ../radioenginewrapper/inc
       
   114     INCLUDEPATH += ../../internal/win32_stubs
       
   115     HEADERS     += ../../internal/win32_stubs/qsysteminfo.h
       
   116     HEADERS     += ../../internal/win32_stubs/xqserviceutil.h
       
   117     HEADERS     += ../../internal/win32_stubs/xqserviceprovider.h
       
   118     SOURCES     += ../../internal/win32_stubs/win32_stubs.cpp
   101 }
   119 }
   102 
   120 
   103 USE_UNFROZEN_EXPORTS {
   121 USE_UNFROZEN_EXPORTS {
   104     symbian:MMP_RULES   +=  "exportunfrozen"
   122     symbian:MMP_RULES   += "exportunfrozen"
   105     symbian:DEF_FILE    = not_used.def
   123     symbian:DEF_FILE    = not_used.def
   106 }
   124 }
   107 
   125 
   108 # $$_PRO_FILE_PWD_ points to the directory of the pro file
   126 # $$_PRO_FILE_PWD_ points to the directory of the pro file
   109 MOC_DIR         = $$_PRO_FILE_PWD_/tmp
   127 MOC_DIR         = $$_PRO_FILE_PWD_/tmp