view extensions/app_redirect/CMakeLists.txt @ 1532:64d0a145b041

Remove AVPs deprecated by 3GPP Remove 3GPP AVPs that were in freeDiameter 1.4.0 and earlier, marked with "Change-1.4.0:": - ADC-Revalidation-Time (2801) Time removed in 3GPP TS 29.212 V12.1.0 (2013-06). - PDG-Address (895) Address removed in 3GPP TS 32.299 V12.6.0 (2014-09). - PDG-Charging-Id (896) Unsigned32 removed in 3GPP TS 32.299 V12.6.0 (2014-09). - WAG-Address (890) Address removed in 3GPP TS 32.299 V12.6.0 (2014-09). - WAG-PLMN-Id (891) OctetString removed in 3GPP TS 32.299 V12.6.0 (2014-09). - WLAN-Information (875) Grouped removed in 3GPP TS 32.299 V12.6.0 (2014-09). - WLAN-Radio-Container (892) Grouped removed in 3GPP TS 32.299 V12.6.0 (2014-09). - WLAN-Session-Id (1246) UTF8String removed in 3GPP TS 32.299 V12.6.0 (2014-09). - WLAN-Technology (893) Unsigned32 removed in 3GPP TS 32.299 V12.6.0 (2014-09). - WLAN-UE-Local-IPAddress (894) Address removed in 3GPP TS 32.299 V12.6.0 (2014-09). Remove 3GPP AVPs only added recently (and not in a release): - HeNB-BBF-FQDN (2803) UTF8String removed in 3GPP TS 29.212 V11.8.0 (2013-03). - User-Data-Request-Type (627) removed in 3GPP TS 29.229 V6.5.0 (2005-06). Remove WLAN-Information rule from Service-Information (873). Consistency tweaks in "Change-1.4.0:" comments.
author Luke Mewburn <luke@mewburn.net>
date Sat, 18 Apr 2020 17:31:05 +1000
parents 2bf587a8f6bc
children
line wrap: on
line source

# The app_redirect extension
PROJECT("Configurable Redirects server extension" C)

# Check if REG_STARTEND is provided on the host
SET(CHECK_REG_STARTEND_SOURCE_CODE "
	#include <unistd.h>
	#include <regex.h>
	int main() {
	   return regexec(NULL, NULL, 0, NULL, REG_STARTEND);
	}
	")
CHECK_C_SOURCE_COMPILES("${CHECK_REG_STARTEND_SOURCE_CODE}" HAVE_REG_STARTEND)
# Generate the host.h file
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/ard-host.h.in ${CMAKE_CURRENT_BINARY_DIR}/ard-host.h)

# Parser files
BISON_FILE(ard_conf.y)
FLEX_FILE(ard_conf.l)
SET_SOURCE_FILES_PROPERTIES(lex.ard_conf.c ard_conf.tab.c PROPERTIES COMPILE_FLAGS "-I ${CMAKE_CURRENT_SOURCE_DIR}")

# List of source files
SET( APP_REDIR_SRC
	app_redir.c
	app_redir.h
	lex.ard_conf.c
	ard_conf.tab.c
	ard_conf.tab.h
	ard_rules.c
)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})

# Compile these files as a freeDiameter extension
FD_ADD_EXTENSION(app_redirect ${APP_REDIR_SRC})


####
## INSTALL section ##

INSTALL(TARGETS app_redirect
	LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX}
	COMPONENT freeDiameter-app_redirect)
"Welcome to our mercurial repository"