mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
A new phy scope based on ImGui and ImPlot. This scope uses a different concurrency model than previous scopes. The PHY thread writing the data first checks if the data is ready to be written. If its not, nothing is copied. The GUI thread reads data if available and marks it ready to write. This makes sure that the PHY threads are not busy copying data that would never be displayed. Some of the scopes also have a freeze functionality that further limit the amount of data that needs to be copied from PHY threads. If a scope is "frozen" it still allows the user to explore the data using plots zoom/pan functions but doesn't cause PHY threads to perform extra writes on the displayed data. A compile option was added to enable/disable the scope. Use cmake -DENABLE_IMSCOPE=ON to enable the scope. Update CXX standard to 17; it is required by some libraries (e.g., dear imgui). The oldest gcc version in use by a distribution supported is Ubuntu 20, which has gcc 9.4 with c++17 support.
70 lines
2.9 KiB
CMake
70 lines
2.9 KiB
CMake
#/*
|
|
# * 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
|
|
# */
|
|
#! \file openair1/PHY/TOOLS/CMakelists.txt
|
|
#* \brief: build rules and checks for softscope shared libraries
|
|
#* \author Francois TABURET
|
|
#* \date 2023
|
|
#* \version 1.0
|
|
#* \company NOKIA BellLabs France
|
|
#* \email: francois.taburet@nokia-bell-labs.com
|
|
#* \note
|
|
#* \warning
|
|
#*/
|
|
|
|
add_boolean_option(ENABLE_UESCOPE OFF "Whether to build the lte uescope" OFF)
|
|
add_boolean_option(ENABLE_ENBSCOPE OFF "Whether to build the lte enbcope" OFF)
|
|
add_boolean_option(ENABLE_NRSCOPE OFF "Whether to build the 5G scope" OFF)
|
|
if(ENABLE_UESCOPE OR ENABLE_ENBSCOPE OR ENABLE_NRSCOPE)
|
|
find_library(forms NAMES forms)
|
|
if(NOT forms)
|
|
message(FATAL_ERROR "required library forms not found for building scopes")
|
|
else()
|
|
message(STATUS "libforms library, required for scopes, found at ${forms}")
|
|
endif()
|
|
|
|
include_directories ("/usr/include/X11")
|
|
add_library(xforms_common OBJECT
|
|
lte_phy_scope.c
|
|
../../../executables/stats.c)
|
|
target_link_libraries(xforms_common PRIVATE asn1_nr_rrc_hdrs asn1_lte_rrc_hdrs)
|
|
|
|
add_library(enbscope MODULE lte_enb_scope.c $<TARGET_OBJECTS:xforms_common>)
|
|
target_link_libraries(enbscope PUBLIC forms PRIVATE asn1_nr_rrc_hdrs asn1_lte_rrc_hdrs)
|
|
|
|
add_library(uescope MODULE lte_ue_scope.c $<TARGET_OBJECTS:xforms_common>)
|
|
target_link_libraries(uescope PUBLIC forms PRIVATE asn1_nr_rrc_hdrs asn1_lte_rrc_hdrs)
|
|
|
|
add_library(nrscope MODULE nr_phy_scope.c)
|
|
target_link_libraries(nrscope PUBLIC forms PRIVATE asn1_nr_rrc_hdrs asn1_lte_rrc_hdrs)
|
|
|
|
# all libraries should be written to root build dir (default creates the same hierarchie under build as existing for sources)
|
|
set_target_properties(enbscope uescope nrscope
|
|
PROPERTIES LIBRARY_OUTPUT_DIRECTORY ../../..
|
|
)
|
|
endif()
|
|
if (ENABLE_TESTS)
|
|
add_subdirectory(tests)
|
|
endif()
|
|
|
|
if (ENABLE_IMSCOPE)
|
|
add_subdirectory(imscope)
|
|
endif()
|