From 3e5e2444400fc0582a3500b3d9f41ed9ec886f43 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Mon, 9 Oct 2017 12:22:17 +0100 Subject: [PATCH] Changing CMakeLists to compile EPC --- CMakeLists.txt | 11 +++++++++-- srsepc/CMakeLists.txt | 2 +- srsepc/hdr/mme/mme.h | 40 ++++++++++++++++++++++++++++++++++++++++ srsepc/src/mme/mme.cc | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 srsepc/hdr/mme/mme.h create mode 100644 srsepc/src/mme/mme.cc diff --git a/CMakeLists.txt b/CMakeLists.txt index d72bb5fef..4bbd96c1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,7 @@ set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "") ######################################################################## option(ENABLE_SRSUE "Build srsUE application" ON) option(ENABLE_SRSENB "Build srsENB application" ON) +option(ENABLE_SRSEPC "Build srsEPC application" ON) option(ENABLE_VOLK "Enable use of VOLK SIMD library" ON) option(ENABLE_GUI "Enable GUI (using srsGUI)" ON) @@ -155,7 +156,7 @@ else(BLADERF_FOUND OR UHD_FOUND OR SOAPYSDR_FOUND) endif(BLADERF_FOUND OR UHD_FOUND OR SOAPYSDR_FOUND) # Boost -if(ENABLE_SRSUE OR ENABLE_SRSENB) +if(ENABLE_SRSUE OR ENABLE_SRSENB OR ENABLE_SRSEPC) if(BUILD_STATIC) set(Boost_USE_STATIC_LIBS ON) endif(BUILD_STATIC) @@ -177,7 +178,7 @@ if(ENABLE_SRSUE OR ENABLE_SRSENB) "1.65.0" "1.65" "1.66.0" "1.66" "1.67.0" "1.67" "1.68.0" "1.68" "1.69.0" "1.69" ) find_package(Boost "1.35" COMPONENTS ${BOOST_REQUIRED_COMPONENTS}) -endif(ENABLE_SRSUE OR ENABLE_SRSENB) +endif(ENABLE_SRSUE OR ENABLE_SRSENB OR ENABLE_SRSEPC) # srsGUI if(ENABLE_GUI) @@ -371,3 +372,9 @@ if(RF_FOUND) else(RF_FOUND) message(STATUS "srsUE and srsENB builds disabled due to missing RF driver") endif(RF_FOUND) +if(ENABLE_SRSENB) + message(STATUS "Building with srsEPC") + add_subdirectory(srsepc) +else(ENABLE_SRSEPC) + message(STATUS "srsEPC build disabled") +endif(ENABLE_SRSUE) diff --git a/srsepc/CMakeLists.txt b/srsepc/CMakeLists.txt index 38ad5cd5e..0006e5191 100644 --- a/srsepc/CMakeLists.txt +++ b/srsepc/CMakeLists.txt @@ -47,4 +47,4 @@ link_directories( # Add subdirectories ######################################################################## add_subdirectory(src) -add_subdirectory(test) +#add_subdirectory(test) diff --git a/srsepc/hdr/mme/mme.h b/srsepc/hdr/mme/mme.h new file mode 100644 index 000000000..14f7c686c --- /dev/null +++ b/srsepc/hdr/mme/mme.h @@ -0,0 +1,40 @@ +/** + * + * \section COPYRIGHT + * + * Copyright 2013-2017 Software Radio Systems Limited + * + * \section LICENSE + * + * This file is part of srsLTE. + * + * srsLTE is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * srsLTE is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * A copy of the GNU Affero General Public License can be found in + * the LICENSE file in the top-level directory of this distribution + * and at http://www.gnu.org/licenses/. + * + */ + +#include "srslte/common/log.h" + +#ifndef MME_H +#define MME_H + +namespace srsepc{ + +class mme +{ + +}; + +} // namespace srsepc +#endif // MME_H diff --git a/srsepc/src/mme/mme.cc b/srsepc/src/mme/mme.cc new file mode 100644 index 000000000..44a81569f --- /dev/null +++ b/srsepc/src/mme/mme.cc @@ -0,0 +1,33 @@ +/** + * + * \section COPYRIGHT + * + * Copyright 2013-2017 Software Radio Systems Limited + * + * \section LICENSE + * + * This file is part of srsLTE. + * + * srsLTE is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * srsLTE is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * A copy of the GNU Affero General Public License can be found in + * the LICENSE file in the top-level directory of this distribution + * and at http://www.gnu.org/licenses/. + * + */ + + +#include "mme.h" + +class srsmme +{ + int tst; +};