X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=e2sim%2Fsrc%2FSCTP%2FCMakeLists.txt;fp=e2sim%2Fsrc%2FX2AP%2Fx2ap_asn_codec.hpp;h=b069924dcf1ff2bedf5f733eaf1bd6d502eb734e;hb=a9733dbcc47e93a3b2843056f1d587196296c324;hp=a07f441fa7b873e8fd35a3cb2b8e04df6d40329e;hpb=3ebf932d23dcbec9ed19f4a51f9d00a0a54f5124;p=sim%2Fe2-interface.git diff --git a/e2sim/src/X2AP/x2ap_asn_codec.hpp b/e2sim/src/SCTP/CMakeLists.txt similarity index 61% rename from e2sim/src/X2AP/x2ap_asn_codec.hpp rename to e2sim/src/SCTP/CMakeLists.txt index a07f441..b069924 100644 --- a/e2sim/src/X2AP/x2ap_asn_codec.hpp +++ b/e2sim/src/SCTP/CMakeLists.txt @@ -1,7 +1,6 @@ -/***************************************************************************** +#/***************************************************************************** # * -# Copyright 2019 AT&T Intellectual Property * -# Copyright 2019 Nokia * +# Copyright 2020 AT&T Intellectual Property * # * # Licensed under the Apache License, Version 2.0 (the "License"); * # you may not use this file except in compliance with the License. * @@ -15,20 +14,24 @@ # See the License for the specific language governing permissions and * # limitations under the License. * # * -******************************************************************************/ -#ifndef X2AP_ASN_CODEC_HPP -#define X2AP_ASN_CODEC_HPP +#******************************************************************************/ -#include "e2sim_defs.h" -#include "asn_x2ap.hpp" -#define X2AP_ERROR_MESSAGE_BUFFER 1024 -#define X2AP_PDU_PRINT_BUFFER 4096 +# For clarity: this generates object, not a lib as the CM command implies. +# +add_library( sctp_objects OBJECT e2sim_sctp.cpp e2sim_sctp.c) -void x2ap_encode_pdu(x2ap_pdu_t* pdu, unsigned char* buf, int buf_size, int &encoded_size); +target_include_directories (sctp_objects PUBLIC + $ + $ + PRIVATE src) -void x2ap_decode_pdu(x2ap_pdu_t* pdu, unsigned char* buf, int &encoded_size); -void x2ap_print_pdu(x2ap_pdu_t* pdu); - -#endif +if( DEV_PKG ) + install( FILES + e2sim_sctp.hpp + e2sim_sctp.h + DESTINATION ${install_inc} + ) +endif() +# ---------------------------------------------------------------------------