Commit 7465cea4 authored by Robert Schmidt's avatar Robert Schmidt Committed by Sakthivel Velumani

Add E1AP Grammar and build ASN.1 lib at build time

parent cde22f83
......@@ -3194,3 +3194,5 @@ ADD_CUSTOM_TARGET(oarf
include (${OPENAIR_DIR}/common/utils/telnetsrv/telnetsrv_CMakeLists.txt)
include(${OPENAIR1_DIR}/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/CMakeLists.txt)
add_subdirectory(openair2)
add_subdirectory(E1AP)
add_subdirectory(MESSAGES)
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
set(E1AP_VERSION 16 78 0)
make_version(E1AP_cc ${E1AP_VERSION})
#add_definitions(-DE1AP_VERSION=${E1AP_cc})
# TODO from E1AP_VERSION
set(E1AP_RELEASE "16.78.0")
if(E1AP_RELEASE VERSION_EQUAL "16.78.0")
include(ASN.1/38463-g80.R16.78.0.cmake)
else()
message(FATAL_ERROR "unknown E1AP_RELEASE ${E1AP_RELEASE}")
endif()
message(STATUS "E1AP_VERSION ${E1AP_VERSION}")
message(STATUS "E1AP_cc ${E1AP_cc}")
message(STATUS "E1AP_RELEASE ${E1AP_RELEASE}")
message(STATUS "E1AP_GRAMMAR ${E1AP_GRAMMAR}")
add_custom_command(OUTPUT ${e1ap_source} ${e1ap_headers}
COMMAND ASN1C_PREFIX=E1AP_ asn1c -gen-PER -no-gen-OER -fcompound-names -no-gen-example -findirect-choice -fno-include-deps -D ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${E1AP_GRAMMAR}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${E1AP_GRAMMAR}
COMMENT "Generating E1AP source files from ${CMAKE_CURRENT_SOURCE_DIR}/${E1AP_GRAMMAR}"
)
add_library(ASN1_E1AP_LIB ${e1ap_source})
target_include_directories(ASN1_E1AP_LIB PUBLIC "${CMAKE_CURRENT_BINARY_DIR}")
target_compile_options(ASN1_E1AP_LIB PRIVATE -DASN_DISABLE_OER_SUPPORT -w)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment