1 /* |
|
2 * Copyright (c) 2006 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: Project configure file. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef ___DEBUGCONFIG_H__ |
|
20 #define ___DEBUGCONFIG_H__ |
|
21 |
|
22 |
|
23 #ifdef _DEBUG |
|
24 #define PRJ_ENABLE_TRACE |
|
25 #endif |
|
26 |
|
27 |
|
28 //#define PRJ_FILE_TRACE |
|
29 |
|
30 /** |
|
31 * build the project for module test purpose if this is defined |
|
32 */ |
|
33 //#define PRJ_MODULETEST_BUILD |
|
34 |
|
35 /** |
|
36 * build the project using stubs to replace the dependencies if this is defined |
|
37 */ |
|
38 //#define PRJ_USE_STUB |
|
39 |
|
40 |
|
41 /** |
|
42 * Custom logging variations. |
|
43 */ |
|
44 #ifdef PRJ_FILE_TRACE |
|
45 _LIT(KLogFile,"lcstylustap.txt"); |
|
46 _LIT(KLogDir,"lcstylustap"); |
|
47 #endif |
|
48 |
|
49 #ifdef PRJ_ENABLE_TRACE |
|
50 _LIT(KTracePrefix16, "[lcstylustap] "); |
|
51 _LIT8(KTracePrefix8, "[lcstylustap] "); |
|
52 _LIT8(KFuncFormat8, "><%S"); |
|
53 _LIT8(KFuncThisFormat8, "><%S, [0x%08X]"); |
|
54 _LIT8(KFuncEntryFormat8, ">%S"); |
|
55 _LIT8(KFuncEntryThisFormat8, ">%S, [0x%08X]"); |
|
56 _LIT8(KFuncExitFormat8, "<%S"); |
|
57 |
|
58 _LIT(KPanicCategory, "LC lcstylustap"); |
|
59 _LIT8(KPanicPrefix8, "PANIC code "); |
|
60 _LIT8(KLeavePrefix8, "LEAVE code "); |
|
61 #endif |
|
62 |
|
63 const TInt KMaxLogLineLength = 512; |
|
64 |
|
65 #define KPRINTERROR 0x00000001 // Tracing level: error |
|
66 #define KPRINTINFO 0x00000002 // Tracing level: function trace |
|
67 #define KPRINTSTATE 0x00000004 // Tracing level: state machine info |
|
68 #define KPRINTWARNING 0x00000008 // Tracing level: warning |
|
69 |
|
70 const TInt KTraceMask = KPRINTERROR | KPRINTINFO | KPRINTSTATE | KPRINTWARNING; |
|
71 |
|
72 #endif // ___DEBUGCONFIG_H__ |
|