Changeset 583:7d431a751d6c in freeDiameter for extensions/CMakeLists.txt
- Timestamp:
- Oct 28, 2010, 12:59:03 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CMakeLists.txt
r524 r583 13 13 ENDMACRO(FD_ADD_EXTENSION) 14 14 15 # Use the macro FD_EXTENSION_SUBDIR(extmacroname subdir descr default) to 16 # add a new extension subdirectory. 17 MACRO(FD_EXTENSION_SUBDIR EXTSUBDIR EXTDESCR EXTDEFAULT) 18 STRING(TOUPPER ${EXTSUBDIR} EXTMACRONAME) 19 IF (NOT ALL_EXTENSIONS) 20 OPTION(BUILD_${EXTMACRONAME} "Build ${EXTSUBDIR}.fdx? (${EXTDESCR})" ${EXTDEFAULT}) 21 ENDIF (NOT ALL_EXTENSIONS) 22 IF (BUILD_${EXTMACRONAME} OR ALL_EXTENSIONS) 23 SUBDIRS(${EXTSUBDIR}) 24 ENDIF (BUILD_${EXTMACRONAME} OR ALL_EXTENSIONS) 25 ENDMACRO(FD_EXTENSION_SUBDIR) 26 27 OPTION(ALL_EXTENSIONS "Build ALL available extensions? (disable to select individual components)" OFF) 28 15 29 # The extensions include the headers of freeDiameter that contains gnutls objects 16 30 FIND_PACKAGE(GnuTLS REQUIRED) … … 23 37 INCLUDE_DIRECTORIES(${GCRYPT_INCLUDE_DIR}) 24 38 39 25 40 ########################### 26 41 # Extensions section 27 42 28 43 #### 29 # Diameter applications dictionar y44 # Diameter applications dictionaries 30 45 31 OPTION(BUILD_DICT_NASREQ "Build NASREQ (RFC4005) Dictionary definitions?" ON) 32 IF (BUILD_DICT_NASREQ) 33 SUBDIRS(dict_nasreq) 34 ENDIF (BUILD_DICT_NASREQ) 35 36 OPTION(BUILD_DICT_EAP "Build Diameter EAP (RFC4072) Dictionary definitions?" ON) 37 IF (BUILD_DICT_EAP) 38 SUBDIRS(dict_eap) 39 ENDIF (BUILD_DICT_EAP) 40 41 OPTION(BUILD_DICT_SIP "Build Diameter SIP (RFC4740) Dictionary definitions?" ON) 42 IF (BUILD_DICT_SIP) 43 SUBDIRS(dict_sip) 44 ENDIF (BUILD_DICT_SIP) 45 46 FD_EXTENSION_SUBDIR(dict_nasreq "NASREQ (RFC4005) Dictionary definitions?" ON) 47 FD_EXTENSION_SUBDIR(dict_eap "Diameter EAP (RFC4072) Dictionary definitions?" ON) 48 FD_EXTENSION_SUBDIR(dict_sip "Diameter SIP (RFC4740) Dictionary definitions?" ON) 46 49 47 50 … … 49 52 # Diameter applications 50 53 51 OPTION(BUILD_APP_RADGW "Build app_radgw? (one-way RADIUS/Diameter gateway - RADIUS NAS <-> Diameter server)" OFF)52 IF (BUILD_APP_RADGW)53 SUBDIRS(app_radgw)54 ENDIF (BUILD_APP_RADGW)54 FD_EXTENSION_SUBDIR(app_acct "Simple accounting application that stores accounting records in flat database" OFF) 55 FD_EXTENSION_SUBDIR(app_diameap "Diameter EAP Application server (RFC 4072)" OFF) 56 FD_EXTENSION_SUBDIR(app_radgw "RADIUS/Diameter gateway translation - RADIUS client to Diameter server" OFF) 57 FD_EXTENSION_SUBDIR(app_sip "Diameter SIP Authentication and Authorization server (RFC 4740)" OFF) 55 58 56 OPTION(BUILD_APP_ACCT "Build app_acct? (simple accounting application that stores accounting records in flat database)" OFF)57 IF (BUILD_APP_ACCT)58 SUBDIRS(app_acct)59 ENDIF (BUILD_APP_ACCT)60 61 OPTION(BUILD_APP_SIP "Build app_sip? (Authentication and Authorization for Diameter SIP RFC4740)" OFF)62 IF (BUILD_APP_SIP)63 SUBDIRS(app_sip)64 ENDIF (BUILD_APP_SIP)65 66 OPTION(BUILD_APP_DIAMEAP "Build app_diameap? (Diameter EAP Application - RFC 4072 )" OFF)67 IF (BUILD_APP_DIAMEAP)68 SUBDIRS(app_diameap)69 ENDIF (BUILD_APP_DIAMEAP)70 59 71 60 #### 72 61 # Routing extensions 73 62 74 OPTION(BUILD_RT_DEFAULT "Build rt_default? (Configurable routing rules for freeDiameter)" ON) 75 IF (BUILD_RT_DEFAULT) 76 SUBDIRS(rt_default) 77 ENDIF (BUILD_RT_DEFAULT) 78 79 OPTION(BUILD_RT_EREG "Build rt_ereg? (Configurable routing based on regexp matching of AVP values)" OFF) 80 IF (BUILD_RT_EREG) 81 SUBDIRS(rt_ereg) 82 ENDIF (BUILD_RT_EREG) 63 FD_EXTENSION_SUBDIR(rt_default "Configurable routing rules for freeDiameter" ON) 64 FD_EXTENSION_SUBDIR(rt_ereg "Configurable routing based on regexp matching of AVP values" OFF) 83 65 84 66 … … 86 68 # Peers security extensions 87 69 88 OPTION(BUILD_ACL_WL "Build acl_wl? (White-list of remote connecting peers)" ON) 89 IF (BUILD_ACL_WL) 90 SUBDIRS(acl_wl) 91 ENDIF (BUILD_ACL_WL) 92 70 FD_EXTENSION_SUBDIR(acl_wl "White-list based authorization of incoming connections" ON) 93 71 94 72 … … 96 74 # Debug & test extensions 97 75 98 OPTION(BUILD_DBG_MONITOR "Build dbg_monitor.fdx? (display periodical debug information on the console)"OFF)99 IF (BUILD_DBG_MONITOR)100 SUBDIRS(dbg_monitor)101 ENDIF (BUILD_DBG_MONITOR)76 FD_EXTENSION_SUBDIR(dbg_monitor "Outputs periodical status information" OFF) 77 FD_EXTENSION_SUBDIR(dbg_rt "Routing extension for debugging the routing module" OFF) 78 FD_EXTENSION_SUBDIR(test_app "Testing application to send dummy message to another peer, like a Diameter 'ping'" OFF) 79 FD_EXTENSION_SUBDIR(test_sip "Testing application to simulate Diameter-SIP client (RFC4740)" OFF) 102 80 103 OPTION(BUILD_DBG_RT "Build dbg_rt.fdx? (Routing extension for debugging the routing module)" OFF)104 IF (BUILD_DBG_RT)105 SUBDIRS(dbg_rt)106 ENDIF (BUILD_DBG_RT)107 81 108 OPTION(BUILD_TEST_APP "Build test_app.fdx? (Testing application to send dummy message to another peer, for testing purpose only)" OFF)109 IF (BUILD_TEST_APP)110 SUBDIRS(test_app)111 ENDIF (BUILD_TEST_APP)112 113 OPTION(BUILD_TEST_SIP "Build test_sip.fdx? (Testing application to simulate Diameter-SIP client (RFC4740), for testing purpose only)" OFF)114 IF (BUILD_TEST_SIP)115 SUBDIRS(test_sip)116 ENDIF (BUILD_TEST_SIP)117 118 82 # The following extension have very little use except for specific tests, so we disable them except in Debug configurations. 119 83 IF (CMAKE_BUILD_TYPE MATCHES "Debug") 120 OPTION(BUILD_SAMPLE "Build sample.fdx? (Simple extension to demonstrate extension mechanism, for developpers only)" OFF) 121 IF (BUILD_SAMPLE) 122 SUBDIRS(_sample) 123 ENDIF (BUILD_SAMPLE) 124 125 OPTION(BUILD_TEST_ACCT "Build test_acct.fdx? (Receive Accounting-Requests and display the data, but no storage)" OFF) 126 IF (BUILD_TEST_ACCT) 127 SUBDIRS(test_acct) 128 ENDIF (BUILD_TEST_ACCT) 129 130 OPTION(BUILD_TEST_RT_ANY "Build test_rt_any.fdx? (Routing extension randomly sending message to any peer available, for testing purpose only)" OFF) 131 IF (BUILD_TEST_RT_ANY) 132 SUBDIRS(test_rt_any) 133 ENDIF (BUILD_TEST_RT_ANY) 84 FD_EXTENSION_SUBDIR(_sample "Simple extension to demonstrate extension mechanism, for developpers" OFF) 85 FD_EXTENSION_SUBDIR(test_acct "Receive Accounting-Requests and display the data, but no storage" OFF) 86 FD_EXTENSION_SUBDIR(test_rt_any "Routing extension randomly sending message to any peer available, for testing purpose" OFF) 134 87 ENDIF (CMAKE_BUILD_TYPE MATCHES "Debug") 135 88
Note: See TracChangeset
for help on using the changeset viewer.