Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF-Simple
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CommunityXG
OpenXG-SMF-Simple
Commits
3e410047
Commit
3e410047
authored
Jul 21, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup cmake files
parent
c9ab2b62
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
90 additions
and
108 deletions
+90
-108
src/api-server/CMakeLists.txt
src/api-server/CMakeLists.txt
+33
-0
src/common/3gpp_24.501.h
src/common/3gpp_24.501.h
+0
-0
src/common/CMakeLists.txt
src/common/CMakeLists.txt
+7
-3
src/nas/CMakeLists.txt
src/nas/CMakeLists.txt
+15
-32
src/oai_smf/CMakeLists.txt
src/oai_smf/CMakeLists.txt
+19
-73
src/smf_app/CMakeLists.txt
src/smf_app/CMakeLists.txt
+16
-0
No files found.
src/api-server/CMakeLists.txt
View file @
3e410047
set
(
SMF_API_SERVER_DIR
"
${
SRC_TOP_DIR
}
/api-server"
)
include_directories
(
${
SMF_API_SERVER_DIR
}
/api
)
include_directories
(
${
SMF_API_SERVER_DIR
}
/impl
)
include_directories
(
${
SMF_API_SERVER_DIR
}
/model
)
include_directories
(
${
SMF_API_SERVER_DIR
}
/
)
include_directories
(
${
SRC_TOP_DIR
}
/utils/bstr
)
include_directories
(
${
SRC_TOP_DIR
}
/smf_app
)
include_directories
(
${
SRC_TOP_DIR
}
/itti
)
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/common/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/common/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/common/nas
)
include_directories
(
${
SRC_TOP_DIR
}
/common/ngap
)
include_directories
(
${
SRC_TOP_DIR
}
/pfcp
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/ies
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/sm/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap/asn1c
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap/ies
)
include_directories
(
${
SRC_TOP_DIR
}
/udp
)
include_directories
(
${
SRC_TOP_DIR
}
/gtpv2c
)
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
file
(
GLOB SMF_API_SERVER_src_files
${
SMF_API_SERVER_DIR
}
/smf-http2-server.cpp
${
SMF_API_SERVER_DIR
}
/smf-api-server.cpp
${
SMF_API_SERVER_DIR
}
/model/*.cpp
${
SMF_API_SERVER_DIR
}
/api/*.cpp
${
SMF_API_SERVER_DIR
}
/impl/*.cpp
)
add_library
(
SMF_API STATIC
${
SMF_API_SERVER_src_files
}
)
\ No newline at end of file
src/
nas
/3gpp_24.501.h
→
src/
common
/3gpp_24.501.h
View file @
3e410047
File moved
src/common/CMakeLists.txt
View file @
3e410047
...
@@ -18,13 +18,17 @@
...
@@ -18,13 +18,17 @@
# For more information about the OpenAirInterface (OAI) Software Alliance:
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
# contact@openairinterface.org
################################################################################
################################################################################
set
(
ITTI_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/itti
)
#set(ITTI_DIR ${CMAKE_CURRENT_SOURCE_DIR}/itti)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/itti
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
)
#include_directories(${CMAKE_CURRENT_SOURCE_DIR}/itti)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/msg
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/msg
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/nas
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/nas
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/ngap
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/utils
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/..
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/..
)
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/..
)
add_library
(
3GPP_COMMON_TYPES STATIC
add_library
(
3GPP_COMMON_TYPES STATIC
${
CMAKE_CURRENT_SOURCE_DIR
}
/logger.cpp
${
CMAKE_CURRENT_SOURCE_DIR
}
/logger.cpp
...
...
src/nas/CMakeLists.txt
View file @
3e410047
################################################################################
set
(
NAS_DIR
"
${
SRC_TOP_DIR
}
/nas"
)
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
#for NAS
set
(
NAS_DIR
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
)
include_directories
(
${
NAS_DIR
}
)
include_directories
(
${
NAS_DIR
}
)
include_directories
(
${
NAS_DIR
}
/ies
)
include_directories
(
${
NAS_DIR
}
/ies
)
include_directories
(
${
NAS_DIR
}
/network
)
include_directories
(
${
NAS_DIR
}
/mm/msg
)
include_directories
(
${
NAS_DIR
}
/mm
)
include_directories
(
${
NAS_DIR
}
/mm
)
include_directories
(
${
NAS_DIR
}
/mm/msg
)
include_directories
(
${
NAS_DIR
}
/sm
)
include_directories
(
${
NAS_DIR
}
/sm
)
include_directories
(
${
NAS_DIR
}
/sm/msg
)
include_directories
(
${
NAS_DIR
}
/sm/msg
)
include_directories
(
${
NAS_DIR
}
/security
)
include_directories
(
${
SRC_TOP_DIR
}
/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/utils/bstr
)
include_directories
(
${
SRC_TOP_DIR
}
/utils/bstr
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/security
)
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/common/nas
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap/asn1c
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap/asn1c
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap/ies
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap/ies
)
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/common/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/common/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/common/nas
)
include_directories
(
${
SRC_TOP_DIR
}
/common/ngap
)
file
(
GLOB NAS_src_files
file
(
GLOB NAS_src_files
${
NAS_DIR
}
/*.c
${
NAS_DIR
}
/*.c
${
NAS_DIR
}
/ies/*.c
${
NAS_DIR
}
/ies/*.c
...
@@ -50,11 +30,14 @@ file(GLOB NAS_src_files
...
@@ -50,11 +30,14 @@ file(GLOB NAS_src_files
${
SRC_TOP_DIR
}
/utils/obj_hashtable.c
${
SRC_TOP_DIR
}
/utils/obj_hashtable.c
${
SRC_TOP_DIR
}
/utils/TLVDecoder.c
${
SRC_TOP_DIR
}
/utils/TLVDecoder.c
${
SRC_TOP_DIR
}
/utils/TLVEncoder.c
${
SRC_TOP_DIR
}
/utils/TLVEncoder.c
${
SRC_TOP_DIR
}
/utils/dynamic_memory_check.c
${
SRC_TOP_DIR
}
/utils/backtrace.c
${
SRC_TOP_DIR
}
/utils/bstr/*.c
${
SRC_TOP_DIR
}
/utils/bstr/*.c
${
SRC_TOP_DIR
}
/utils/multipartparser.c
${
SRC_TOP_DIR
}
/nas/security/*.c
${
SRC_TOP_DIR
}
/nas/security/*.c
${
SRC_TOP_DIR
}
/common/dynamic_memory_check.c
${
SRC_TOP_DIR
}
/common/backtrace.c
${
SRC_TOP_DIR
}
/common/*.c
${
SRC_TOP_DIR
}
/common/*.c
${
SRC_TOP_DIR
}
/ngap/asn1c/*.c
${
SRC_TOP_DIR
}
/ngap/ies/*.c
)
)
add_library
(
NAS
${
NAS_
DIR
}
/nas_message.c
${
NAS_
src_files
}
${
NETTLE_LIBRARIES
}
${
CRYPTO_LIBRARIES
}
)
add_library
(
NAS
${
NAS_src_files
}
${
NETTLE_LIBRARIES
}
${
CRYPTO_LIBRARIES
}
)
\ No newline at end of file
src/oai_smf/CMakeLists.txt
View file @
3e410047
...
@@ -270,97 +270,43 @@ ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../../src/gtpv2c ${CMAKE_CURRENT_BI
...
@@ -270,97 +270,43 @@ ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../../src/gtpv2c ${CMAKE_CURRENT_BI
ADD_SUBDIRECTORY
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../../src/pfcp
${
CMAKE_CURRENT_BINARY_DIR
}
/pfcp
)
ADD_SUBDIRECTORY
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../../src/pfcp
${
CMAKE_CURRENT_BINARY_DIR
}
/pfcp
)
ADD_SUBDIRECTORY
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../../src/udp
${
CMAKE_CURRENT_BINARY_DIR
}
/udp
)
ADD_SUBDIRECTORY
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../../src/udp
${
CMAKE_CURRENT_BINARY_DIR
}
/udp
)
ADD_SUBDIRECTORY
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../../src/api-server
${
CMAKE_CURRENT_BINARY_DIR
}
/api-server
)
ADD_SUBDIRECTORY
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../../src/api-server
${
CMAKE_CURRENT_BINARY_DIR
}
/api-server
)
ADD_SUBDIRECTORY
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../../src/nas
${
CMAKE_CURRENT_BINARY_DIR
}
/nas
)
#ENABLE_TESTING()
#ENABLE_TESTING()
#ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../../src/test ${CMAKE_CURRENT_BINARY_DIR}/test)
#ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../../src/test ${CMAKE_CURRENT_BINARY_DIR}/test)
################################################################################
################################################################################
# Specific part for oai_smf folder
# Specific part for oai_smf folder
#SMF_API
set
(
SMF_API_SERVER_DIR
"
${
SRC_TOP_DIR
}
/api-server"
)
file
(
GLOB SMF_API_SERVER_src_files
${
SMF_API_SERVER_DIR
}
/smf-http2-server.cpp
${
SMF_API_SERVER_DIR
}
/smf-api-server.cpp
${
SMF_API_SERVER_DIR
}
/model/*.cpp
${
SMF_API_SERVER_DIR
}
/api/*.cpp
${
SMF_API_SERVER_DIR
}
/impl/*.cpp
)
set
(
SMF_API_SERVER_include_files
${
SMF_API_SERVER_DIR
}
/api
${
SMF_API_SERVER_DIR
}
/impl
${
SMF_API_SERVER_DIR
}
/model
${
SMF_API_SERVER_DIR
}
)
add_library
(
SMF_API
${
SMF_API_SERVER_src_files
}
)
#for NAS
set
(
NAS_DIR
"
${
SRC_TOP_DIR
}
/nas"
)
file
(
GLOB NAS_src_files
${
NAS_DIR
}
/*.c
${
NAS_DIR
}
/ies/*.c
${
NAS_DIR
}
/network/*.c
${
NAS_DIR
}
/mm/msg/*.c
${
NAS_DIR
}
/mm/*.c
${
NAS_DIR
}
/sm/*.c
${
NAS_DIR
}
/sm/msg/*.c
${
SRC_TOP_DIR
}
/utils/conversions.c
${
SRC_TOP_DIR
}
/utils/pid_file.c
${
SRC_TOP_DIR
}
/utils/hashtable.c
${
SRC_TOP_DIR
}
/utils/obj_hashtable.c
${
SRC_TOP_DIR
}
/utils/TLVDecoder.c
${
SRC_TOP_DIR
}
/utils/TLVEncoder.c
${
SRC_TOP_DIR
}
/utils/dynamic_memory_check.c
${
SRC_TOP_DIR
}
/utils/backtrace.c
${
SRC_TOP_DIR
}
/utils/bstr/*.c
${
SRC_TOP_DIR
}
/utils/multipartparser.c
${
SRC_TOP_DIR
}
/nas/security/*.c
${
SRC_TOP_DIR
}
/common/*.c
${
SRC_TOP_DIR
}
/ngap/asn1c/*.c
${
SRC_TOP_DIR
}
/ngap/ies/*.c
)
set
(
NAS_include_files
${
NAS_DIR
}
/ies
${
NAS_DIR
}
/network
${
NAS_DIR
}
/mm
${
NAS_DIR
}
/mm/msg
${
NAS_DIR
}
/sm
${
NAS_DIR
}
/sm/msg
${
NAS_DIR
}
${
NAS_DIR
}
/security
${
SRC_TOP_DIR
}
/utils
${
SRC_TOP_DIR
}
/utils/bstr
${
SRC_TOP_DIR
}
/ngap/asn1c
${
SRC_TOP_DIR
}
/ngap/ies
${
SRC_TOP_DIR
}
/common
)
add_library
(
NAS
${
NAS_src_files
}
${
NETTLE_LIBRARIES
}
${
CRYPTO_LIBRARIES
}
)
set
(
NGAP_include_files
${
SRC_TOP_DIR
}
/ngap/asn1c
${
SRC_TOP_DIR
}
/ngap/ies
${
SRC_TOP_DIR
}
/common/ngap
)
add_definitions
(
"-DPACKAGE_NAME=
\"
SMF
\"
"
)
add_definitions
(
"-DPACKAGE_NAME=
\"
SMF
\"
"
)
include_directories
(
${
SRC_TOP_DIR
}
/smf_app
)
include_directories
(
${
SRC_TOP_DIR
}
/smf_app
)
include_directories
(
${
SRC_TOP_DIR
}
/oai_smf
)
include_directories
(
${
SRC_TOP_DIR
}
/oai_smf
)
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/itti
)
include_directories
(
${
SRC_TOP_DIR
}
/itti
)
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/common/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/common/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/common/nas
)
include_directories
(
${
SRC_TOP_DIR
}
/common/nas
)
include_directories
(
${
SRC_TOP_DIR
}
/common/ngap
)
include_directories
(
${
SRC_TOP_DIR
}
/common/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/common/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/gtpv2c
)
include_directories
(
${
SRC_TOP_DIR
}
/gtpv2c
)
include_directories
(
${
SRC_TOP_DIR
}
/pfcp
)
include_directories
(
${
SRC_TOP_DIR
}
/pfcp
)
include_directories
(
${
SRC_TOP_DIR
}
/udp
)
include_directories
(
${
SRC_TOP_DIR
}
/udp
)
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
SMF_API_SERVER_include_files
}
)
include_directories
(
${
SRC_TOP_DIR
}
/api-server
)
include_directories
(
${
NAS_include_files
}
)
include_directories
(
${
SRC_TOP_DIR
}
/api-server/api
)
include_directories
(
${
NGAP_include_files
}
)
include_directories
(
${
SRC_TOP_DIR
}
/api-server/impl
)
include_directories
(
${
SRC_TOP_DIR
}
/api-server/model
)
include_directories
(
${
SRC_TOP_DIR
}
/nas
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/ies
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/mm
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/mm/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/sm
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/sm/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/security
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap/asn1c
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap/ies
)
include_directories
(
${
SRC_TOP_DIR
}
/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/utils/bstr
)
add_executable
(
smf
add_executable
(
smf
${
SRC_TOP_DIR
}
/oai_smf/main.cpp
${
SRC_TOP_DIR
}
/oai_smf/main.cpp
...
...
src/smf_app/CMakeLists.txt
View file @
3e410047
...
@@ -22,13 +22,29 @@ include_directories(${SRC_TOP_DIR}/common)
...
@@ -22,13 +22,29 @@ include_directories(${SRC_TOP_DIR}/common)
include_directories
(
${
SRC_TOP_DIR
}
/common/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/common/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/common/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/common/utils
)
include_directories
(
${
SRC_TOP_DIR
}
/common/ngap
)
include_directories
(
${
SRC_TOP_DIR
}
/common/ngap
)
include_directories
(
${
SRC_TOP_DIR
}
/common/nas
)
include_directories
(
${
SRC_TOP_DIR
}
/itti
)
include_directories
(
${
SRC_TOP_DIR
}
/itti
)
include_directories
(
${
SRC_TOP_DIR
}
/gtpv2c
)
include_directories
(
${
SRC_TOP_DIR
}
/gtpv2c
)
include_directories
(
${
SRC_TOP_DIR
}
/pfcp
)
include_directories
(
${
SRC_TOP_DIR
}
/pfcp
)
include_directories
(
${
SRC_TOP_DIR
}
/smf
)
include_directories
(
${
SRC_TOP_DIR
}
/smf
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap/asn1c
)
include_directories
(
${
SRC_TOP_DIR
}
/ngap/ies
)
include_directories
(
${
SRC_TOP_DIR
}
/nas
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/ies
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/sm/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/mm
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/mm/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/sm
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/sm/msg
)
include_directories
(
${
SRC_TOP_DIR
}
/nas/security
)
include_directories
(
${
SRC_TOP_DIR
}
/udp
)
include_directories
(
${
SRC_TOP_DIR
}
/udp
)
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
SRC_TOP_DIR
}
/api-server/api
)
include_directories
(
${
SRC_TOP_DIR
}
/api-server/impl
)
include_directories
(
${
SRC_TOP_DIR
}
/api-server/model
)
include_directories
(
${
SRC_TOP_DIR
}
/api-server/
)
add_library
(
SMF STATIC
add_library
(
SMF STATIC
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment