homescreensrv_plat/sapi_homescreenplugin/inc/hsps_log_cfg.hrh
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2002-2008 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:  HSPS SAPI centralized logging enable / disable. Only to be included
       
    15 *                in mmp files.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __HSPS_LOG_CFG_HRH__
       
    21 #define __HSPS_LOG_CFG_HRH__
       
    22 
       
    23 // Comment this internal macro to disable logging.
       
    24 //#define ____HSPS_CFG_LOG_ON____
       
    25 
       
    26 // Following contains actual lines included into target mmp's by c preprocessor.
       
    27 // These should not be touched when enabling or disabling logging.
       
    28 #ifdef ____HSPS_CFG_LOG_ON____
       
    29     // HSPS_LOG_ACTIVE is visible to all c files in target project. This definition
       
    30     // Should be used to restrict logging code from production code.
       
    31     MACRO HSPS_LOG_ACTIVE
       
    32 
       
    33     // Link to hspsTools which contains all logging functionality hsps is using.
       
    34     LIBRARY hspstools.lib
       
    35 #endif // ____HSPS_CFG_LOG_ON____
       
    36 
       
    37 #endif	// __HSPS_LOG_CFG_HRH__