Navigation


Changeset 170:4b62e4a92828 in freeDiameter


Ignore:
Timestamp:
Feb 2, 2010, 10:54:35 AM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added configurable trace level for extensions

Location:
extensions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/_sample/CMakeLists.txt

    r10 r170  
    22PROJECT("Sample extension" C)
    33
     4# Overwrite the debug level for the extension code if configured
     5OPTION(DEBUG_LEVEL__SAMPLE "Overwrite debug level for the extension _sample if defined" OFF)
     6IF (DEBUG_LEVEL__SAMPLE)
     7     ADD_DEFINITIONS(-DTRACE_LEVEL=${DEBUG_LEVEL__SAMPLE})
     8ENDIF (DEBUG_LEVEL__SAMPLE)
     9
    410# Compile as a module
    511FD_ADD_EXTENSION(dbg_sample sample.c fini.c)
  • extensions/acl_wl/CMakeLists.txt

    r162 r170  
    1717)
    1818
     19# Overwrite the debug level for the extension code if configured
     20OPTION(DEBUG_LEVEL_ACL_WL "Overwrite debug level for the extension acl_wl if defined" OFF)
     21IF (DEBUG_LEVEL_ACL_WL)
     22     ADD_DEFINITIONS(-DTRACE_LEVEL=${DEBUG_LEVEL_ACL_WL})
     23ENDIF (DEBUG_LEVEL_ACL_WL)
     24
    1925# Compile as a module
    2026FD_ADD_EXTENSION(acl_wl ${ACL_WL_SRC})
  • extensions/rt_default/CMakeLists.txt

    r168 r170  
    3131INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
    3232
     33# Overwrite the debug level for the extension code if configured, example: cmake -DDEBUG_LEVEL_RT_DEFAULT:STATIC=CALL ...
     34OPTION(DEBUG_LEVEL_RT_DEFAULT "Overwrite debug level for the extension rt_default if defined" OFF)
     35IF (DEBUG_LEVEL_RT_DEFAULT)
     36     ADD_DEFINITIONS(-DTRACE_LEVEL=${DEBUG_LEVEL_RT_DEFAULT})
     37ENDIF (DEBUG_LEVEL_RT_DEFAULT)
     38
    3339# Compile these files as a freeDiameter extension
    3440FD_ADD_EXTENSION(rt_default ${RT_DEFAULT_SRC})
Note: See TracChangeset for help on using the changeset viewer.