21 # ########################################################## |
21 # ########################################################## |
22 |
22 |
23 # Use of some debugging controls that are not part of official UI spec |
23 # Use of some debugging controls that are not part of official UI spec |
24 # RADIOFLAGS += USE_DEBUGGING_CONTROLS |
24 # RADIOFLAGS += USE_DEBUGGING_CONTROLS |
25 |
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 |
26 # Flag to use dummy radio data read from XML file |
30 # RADIOFLAGS += USE_DUMMY_RADIO_DATA |
27 # RADIOFLAGS += USE_DUMMY_RADIO_DATA |
31 |
28 |
32 # Functional testing |
29 # Functional testing |
33 # RADIOFLAGS += SHOW_CALLSIGN_IN_ANY_REGION |
30 # 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 |
31 |
38 # Build flag to add EXPORTUNFROZEN to the pro file |
32 # Build flag to add EXPORTUNFROZEN to the pro file |
39 # RADIOFLAGS += USE_UNFROZEN_EXPORTS |
33 # RADIOFLAGS += USE_UNFROZEN_EXPORTS |
40 |
34 |
41 # Enables the assert macros |
35 # Enables the assert macros |
45 # Start of Logging flag definitions |
39 # Start of Logging flag definitions |
46 # ########################################################## |
40 # ########################################################## |
47 |
41 |
48 # Full logging flag that enables the full logging including also timestamps |
42 # Full logging flag that enables the full logging including also timestamps |
49 # Enabled by default in debug builds |
43 # Enabled by default in debug builds |
50 CONFIG(debug, debug|release) : LOGGING_FLAGS += LOGGING_ENABLED |
44 # CONFIG(debug, debug|release) : LOGGING_FLAGS += LOGGING_ENABLED |
51 |
45 |
52 # Uncomment to enable full logging in release builds |
46 # Uncomment to enable full logging in release builds |
53 # LOGGING_FLAGS *= LOGGING_ENABLED |
47 LOGGING_FLAGS *= LOGGING_ENABLED |
54 |
48 |
55 # Timestamp logging flag that enables only timestamp logging |
49 # Timestamp logging flag that enables only timestamp logging |
56 # LOGGING_FLAGS += TIMESTAMP_LOGGING_ENABLED |
50 # LOGGING_FLAGS += TIMESTAMP_LOGGING_ENABLED |
57 |
51 |
58 # Combines Ui and Engine logs by feeding UI traces to the engine logger |
52 # Combines Ui and Engine logs by feeding UI traces to the engine logger |
59 LOGGING_FLAGS += COMBINE_WITH_ENGINE_LOGGER |
53 LOGGING_FLAGS += COMBINE_WITH_ENGINE_LOGGER |
|
54 |
|
55 # Logging level |
|
56 # 1 - Normal level |
|
57 # 2 - More verbose level |
|
58 # 3 - Most verbose level |
|
59 LOGGING_FLAGS += LOGGING_LEVEL=1 |
|
60 |
|
61 # Select which radio component is being logged |
|
62 # 1 - Radio application |
|
63 # 2 - Radio homescreen widget |
|
64 LOGGING_FLAGS += LOGGED_COMPONENT=1 |
60 |
65 |
61 contains(LOGGING_FLAGS, TIMESTAMP_LOGGING_ENABLED)|contains(LOGGING_FLAGS, LOGGING_ENABLED) { |
66 contains(LOGGING_FLAGS, TIMESTAMP_LOGGING_ENABLED)|contains(LOGGING_FLAGS, LOGGING_ENABLED) { |
62 |
67 |
63 # Writes debug prints to file if enabled |
68 # Writes debug prints to file if enabled |
64 #LOGGING_FLAGS += TRACE_TO_FILE |
69 #LOGGING_FLAGS += TRACE_TO_FILE |
73 # Method for testing signal-slot connections |
78 # Method for testing signal-slot connections |
74 # 1 - Log failed connection |
79 # 1 - Log failed connection |
75 # 2 - Log failed connection and halt debugger |
80 # 2 - Log failed connection and halt debugger |
76 LOGGING_FLAGS += CONNECT_TEST_MODE=2 |
81 LOGGING_FLAGS += CONNECT_TEST_MODE=2 |
77 |
82 |
|
83 win32: { |
|
84 LOGGING_FLAGS *= LOGGING_ENABLED # Logging is always enabled in Win32 environment |
|
85 RADIOFLAGS += VID_DEFAULT=0 |
|
86 } |
|
87 |
78 DEFINES += $$LOGGING_FLAGS |
88 DEFINES += $$LOGGING_FLAGS |
79 |
89 |
80 # ########################################################## |
90 # ########################################################## |
81 # End of Flag definitions |
91 # End of Flag definitions |
82 # ########################################################## |
92 # ########################################################## |
85 DEFINES += $$RADIOFLAGS |
95 DEFINES += $$RADIOFLAGS |
86 CONFIG += $$RADIOFLAGS |
96 CONFIG += $$RADIOFLAGS |
87 CONFIG += $$LOGGING_FLAGS |
97 CONFIG += $$LOGGING_FLAGS |
88 |
98 |
89 symbian: { |
99 symbian: { |
90 DEFINES += SYMBIAN |
100 DEFINES += SYMBIAN |
91 TARGET.EPOCALLOWDLLDATA = 1 |
101 TARGET.EPOCALLOWDLLDATA = 1 |
92 TARGET.VID = VID_DEFAULT |
102 TARGET.VID = VID_DEFAULT |
93 TARGET.CAPABILITY = CAP_GENERAL_DLL |
103 TARGET.CAPABILITY = CAP_GENERAL_DLL |
|
104 INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE |
|
105 SYMBIAN_PLATFORMS = WINSCW ARMV5 |
|
106 MMP_RULES += SMPSAFE |
94 } |
107 } |
|
108 |
|
109 # QT 4.7 changes the def file location so force them to stay where they are |
|
110 defFilePath = .. |
95 |
111 |
96 win32: { |
112 win32: { |
97 DEFINES += BUILD_WIN32 |
113 DEFINES += BUILD_WIN32 |
98 DESTDIR = ../bin |
114 DESTDIR = ../bin |
99 LIBS += -L../bin |
115 LIBS += -L../bin |
100 INCLUDEPATH += ../radioenginewrapper/inc |
116 INCLUDEPATH += ../radioenginewrapper/inc |
|
117 INCLUDEPATH += ../../internal/win32_stubs |
|
118 HEADERS += ../../internal/win32_stubs/qsysteminfo.h |
|
119 HEADERS += ../../internal/win32_stubs/xqserviceutil.h |
|
120 HEADERS += ../../internal/win32_stubs/xqserviceprovider.h |
|
121 SOURCES += ../../internal/win32_stubs/win32_stubs.cpp |
101 } |
122 } |
102 |
123 |
103 USE_UNFROZEN_EXPORTS { |
124 USE_UNFROZEN_EXPORTS { |
104 symbian:MMP_RULES += "exportunfrozen" |
125 symbian:MMP_RULES += "exportunfrozen" |
105 symbian:DEF_FILE = not_used.def |
126 symbian:DEF_FILE = not_used.def |
106 } |
127 } |
107 |
128 |
108 # $$_PRO_FILE_PWD_ points to the directory of the pro file |
129 # Place generated files away from the source folder |
109 MOC_DIR = $$_PRO_FILE_PWD_/tmp |
130 MOC_DIR = /epoc32/build/radioapp/$$TMP_DIR_NAME |
110 RCC_DIR = $$_PRO_FILE_PWD_/tmp |
131 RCC_DIR = /epoc32/build/radioapp/$$TMP_DIR_NAME |
111 OBJECTS_DIR = $$_PRO_FILE_PWD_/tmp |
132 OBJECTS_DIR = /epoc32/build/radioapp/$$TMP_DIR_NAME |
112 UI_DIR = $$_PRO_FILE_PWD_/tmp |
|
113 UI_HEADERS_DIR = $$_PRO_FILE_PWD_/tmp |
|
114 UI_SOURCES_DIR = $$_PRO_FILE_PWD_/tmp |
|