Mercurial > hg > freeDiameter
comparison extensions/app_radgw/CMakeLists.txt @ 255:cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Thu, 15 Apr 2010 11:56:32 +0900 |
parents | a857024cb48b |
children | 042af0000c0a |
comparison
equal
deleted
inserted
replaced
254:a857024cb48b | 255:cb4307a1cd29 |
---|---|
14 # See rgw_common.h for detail | 14 # See rgw_common.h for detail |
15 | 15 |
16 SET( RG_COMMON_SRC | 16 SET( RG_COMMON_SRC |
17 radius.c | 17 radius.c |
18 md5.c | 18 md5.c |
19 rgw_msg_codes.c | |
20 rgw_msg_attrtype.c | |
19 ) | 21 ) |
20 SET( RG_COMMON_HEADER | 22 SET( RG_COMMON_HEADER |
21 rgw_common.h | 23 rgw_common.h |
22 radius.h | 24 radius.h |
23 md5.h | 25 md5.h |
51 FD_ADD_EXTENSION(app_radgw ${RGW_DEFAULT_SRC} ${RG_COMMON_HEADER}) | 53 FD_ADD_EXTENSION(app_radgw ${RGW_DEFAULT_SRC} ${RG_COMMON_HEADER}) |
52 TARGET_LINK_LIBRARIES(app_radgw rgw_common) | 54 TARGET_LINK_LIBRARIES(app_radgw rgw_common) |
53 | 55 |
54 | 56 |
55 | 57 |
58 ########### RADIUS/Diameter translation agent plugins (support for RADIUS protocol) ############ | |
59 # Use the macro RGWX_ADD_PLUGIN(name files...) to create a plugin. | |
60 # It is equivalent to add_library with the appropriate parameters | |
61 # and naming conventions (.rgwx : Radius GateWay eXtension) | |
62 MACRO(RGWX_ADD_PLUGIN PLGNAME) | |
63 ADD_LIBRARY(${PLGNAME} MODULE ${ARGN}) | |
64 SET_TARGET_PROPERTIES(${PLGNAME} PROPERTIES PREFIX "" ) | |
65 SET_TARGET_PROPERTIES(${PLGNAME} PROPERTIES SUFFIX ".rgwx" ) | |
66 TARGET_LINK_LIBRARIES(${PLGNAME} rgw_common) | |
67 ENDMACRO(RGWX_ADD_PLUGIN) | |
68 | |
69 # Example of plugin: | |
70 OPTION(BUILD_RGWX_SAMPLE "Build sample plugin? (for developers only)" OFF) | |
71 IF (BUILD_RGWX_SAMPLE) | |
72 RGWX_ADD_PLUGIN(sample ${RG_COMMON_HEADER} rgwx_sample.c) | |
73 ENDIF (BUILD_RGWX_SAMPLE) | |
74 | |
75 # A plugin for debug: dumps RADIUS and Diameter messages state at the time the plugin is called. | |
76 OPTION(BUILD_RGWX_DEBUG "Build debug plugin? (display status of RADIUS and Diameter messages)" ON) | |
77 IF (BUILD_RGWX_DEBUG) | |
78 RGWX_ADD_PLUGIN(debug ${RG_COMMON_HEADER} rgwx_debug.c) | |
79 ENDIF (BUILD_RGWX_DEBUG) | |
56 | 80 |
57 | 81 |
58 | 82 |
59 | 83 |
60 | 84 |
61 | 85 |
62 | 86 |
63 | 87 |
64 | 88 |
65 ########### Sub extensions ############# | 89 |
66 # Example of support extension: | |
67 # OPTION(BUILD_RADIUS_GW_SAMPLE "Build sample sub-extension? (for debug only)" OFF) | |
68 # IF (BUILD_RADIUS_GW_SAMPLE) | |
69 # ADD_LIBRARY(sub_sample MODULE ${RG_COMMON_HEADER} sub_sample.c) | |
70 # TARGET_LINK_LIBRARIES(sub_sample rg_common) | |
71 # ENDIF (BUILD_RADIUS_GW_SAMPLE) | |
72 | |
73 # OPTION(BUILD_SUB_DEBUG "Build debug sub-extension? (display status of RADIUS and Diameter messages)" ON) | |
74 # IF (BUILD_SUB_DEBUG) | |
75 # ADD_LIBRARY(sub_debug MODULE ${RG_COMMON_HEADER} sub_debug.c) | |
76 # TARGET_LINK_LIBRARIES(sub_debug rg_common) | |
77 # ENDIF (BUILD_SUB_DEBUG) | |
78 # | 90 # |
79 # OPTION(BUILD_SUB_ECHO_DROP "Build 'echo/drop' sub-extension? (echo or drop specific RADIUS attributes, no Diameter translation)" ON) | 91 # OPTION(BUILD_SUB_ECHO_DROP "Build 'echo/drop' sub-extension? (echo or drop specific RADIUS attributes, no Diameter translation)" ON) |
80 # IF (BUILD_SUB_ECHO_DROP) | 92 # IF (BUILD_SUB_ECHO_DROP) |
81 # ADD_DEFINITIONS(-DSUB_ECHO_DROP_VERBO=2) | 93 # ADD_DEFINITIONS(-DSUB_ECHO_DROP_VERBO=2) |
82 # BISON_FILE(sub_echo_drop.y) | 94 # BISON_FILE(sub_echo_drop.y) |