Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
1
Merge Requests
1
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
OpenXG
OpenXG-RAN
Commits
30de011f
Commit
30de011f
authored
Jan 23, 2025
by
Bartosz Podrygajlo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add build_oai option for imscope_record
parent
c520a4e2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
44 deletions
+49
-44
CMakeLists.txt
CMakeLists.txt
+1
-0
cmake_targets/build_oai
cmake_targets/build_oai
+1
-1
openair1/PHY/TOOLS/CMakeLists.txt
openair1/PHY/TOOLS/CMakeLists.txt
+1
-1
openair1/PHY/TOOLS/imscope/CMakeLists.txt
openair1/PHY/TOOLS/imscope/CMakeLists.txt
+46
-42
No files found.
CMakeLists.txt
View file @
30de011f
...
...
@@ -298,6 +298,7 @@ message(STATUS "Selected KPM Version: ${KPM_VERSION}")
add_boolean_option
(
ENABLE_IMSCOPE OFF
"Enable phy scope based on imgui"
OFF
)
add_boolean_option
(
ENABLE_IMSCOPE_RECORD OFF
"Enable recording IQ data for imscope"
OFF
)
##################################################
# ASN.1 grammar C code generation & dependencies #
...
...
cmake_targets/build_oai
View file @
30de011f
...
...
@@ -46,7 +46,7 @@ BUILD_DOXYGEN=0
DISABLE_HARDWARE_DEPENDENCY
=
"False"
CMAKE_BUILD_TYPE
=
"RelWithDebInfo"
CMAKE_CMD
=
"
$CMAKE
"
OPTIONAL_LIBRARIES
=
"telnetsrv enbscope uescope nrscope ldpc_cuda ldpc_t2 ldpc_xdma websrv oai_iqplayer imscope"
OPTIONAL_LIBRARIES
=
"telnetsrv enbscope uescope nrscope ldpc_cuda ldpc_t2 ldpc_xdma websrv oai_iqplayer imscope
imscope_record
"
TARGET_LIST
=
""
BUILD_TOOL_OPT
=
"-j
$(
nproc
)
"
...
...
openair1/PHY/TOOLS/CMakeLists.txt
View file @
30de011f
...
...
@@ -64,6 +64,6 @@ if (ENABLE_TESTS)
add_subdirectory
(
tests
)
endif
()
if
(
ENABLE_IMSCOPE
)
if
(
ENABLE_IMSCOPE
OR ENABLE_IMSCOPE_RECORD
)
add_subdirectory
(
imscope
)
endif
()
openair1/PHY/TOOLS/imscope/CMakeLists.txt
View file @
30de011f
if
(
ENABLE_IMSCOPE
)
CPMAddPackage
(
"gh:ocornut/imgui#v1.91.3-docking"
)
add_library
(
imgui
${
imgui_SOURCE_DIR
}
/imgui_draw.cpp
${
imgui_SOURCE_DIR
}
/imgui.cpp
${
imgui_SOURCE_DIR
}
/imgui_widgets.cpp
${
imgui_SOURCE_DIR
}
/imgui_tables.cpp
${
imgui_SOURCE_DIR
}
/imgui_demo.cpp
)
target_include_directories
(
imgui PUBLIC
${
imgui_SOURCE_DIR
}
)
add_library
(
imgui_opengl_renderer
${
imgui_SOURCE_DIR
}
/backends/imgui_impl_opengl3.cpp
)
target_include_directories
(
imgui_opengl_renderer PUBLIC
${
imgui_SOURCE_DIR
}
/backends/
)
target_link_libraries
(
imgui_opengl_renderer PUBLIC imgui
)
add_library
(
imgui_glfw_backend
${
imgui_SOURCE_DIR
}
/backends/imgui_impl_glfw.cpp
)
target_include_directories
(
imgui_glfw_backend PUBLIC
${
imgui_SOURCE_DIR
}
/backends/
)
target_link_libraries
(
imgui_glfw_backend PUBLIC imgui
)
find_package
(
OpenGL REQUIRED
)
find_package
(
glfw3 3.3 REQUIRED
)
CPMAddPackage
(
"gh:epezent/implot#v0.16"
)
add_library
(
implot
${
implot_SOURCE_DIR
}
/implot.cpp
${
implot_SOURCE_DIR
}
/implot_demo.cpp
${
implot_SOURCE_DIR
}
/implot_items.cpp
)
target_link_libraries
(
implot PUBLIC imgui
)
target_include_directories
(
implot PUBLIC
${
implot_SOURCE_DIR
}
)
add_library
(
imscope MODULE imscope.cpp ../phy_scope_interface.c imscope_common.cpp imscope_init.cpp
)
target_link_libraries
(
imscope PUBLIC imgui_glfw_backend glfw imgui_opengl_renderer OpenGL::OpenGL implot UTIL
)
set_target_properties
(
imscope PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
configure_file
(
imgui.ini
${
CMAKE_BINARY_DIR
}
/imscope-init.ini COPYONLY
)
add_executable
(
imscope_iq_file_viewer imscope.cpp imscope_iq_file_viewer.cpp ../phy_scope_interface.c imscope_common.cpp
)
target_link_libraries
(
imscope_iq_file_viewer PRIVATE imgui_glfw_backend glfw imgui_opengl_renderer OpenGL::OpenGL implot UTIL minimal_lib shlib_loader
)
set_target_properties
(
imscope_iq_file_viewer PROPERTIES RUNTIME_OUTPUT_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
"
)
endif
()
if
(
ENABLE_IMSCOPE_RECORD
)
add_library
(
imscope_record MODULE ../phy_scope_interface.c imscope_common.cpp imscope_record.cpp
)
target_link_libraries
(
imscope_record PRIVATE UTIL atomic
)
set_target_properties
(
imscope_record PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
endif
()
CPMAddPackage
(
"gh:ocornut/imgui#v1.91.3-docking"
)
add_library
(
imgui
${
imgui_SOURCE_DIR
}
/imgui_draw.cpp
${
imgui_SOURCE_DIR
}
/imgui.cpp
${
imgui_SOURCE_DIR
}
/imgui_widgets.cpp
${
imgui_SOURCE_DIR
}
/imgui_tables.cpp
${
imgui_SOURCE_DIR
}
/imgui_demo.cpp
)
target_include_directories
(
imgui PUBLIC
${
imgui_SOURCE_DIR
}
)
add_library
(
imgui_opengl_renderer
${
imgui_SOURCE_DIR
}
/backends/imgui_impl_opengl3.cpp
)
target_include_directories
(
imgui_opengl_renderer PUBLIC
${
imgui_SOURCE_DIR
}
/backends/
)
target_link_libraries
(
imgui_opengl_renderer PUBLIC imgui
)
add_library
(
imgui_glfw_backend
${
imgui_SOURCE_DIR
}
/backends/imgui_impl_glfw.cpp
)
target_include_directories
(
imgui_glfw_backend PUBLIC
${
imgui_SOURCE_DIR
}
/backends/
)
target_link_libraries
(
imgui_glfw_backend PUBLIC imgui
)
find_package
(
OpenGL REQUIRED
)
find_package
(
glfw3 3.3 REQUIRED
)
CPMAddPackage
(
"gh:epezent/implot#v0.16"
)
add_library
(
implot
${
implot_SOURCE_DIR
}
/implot.cpp
${
implot_SOURCE_DIR
}
/implot_demo.cpp
${
implot_SOURCE_DIR
}
/implot_items.cpp
)
target_link_libraries
(
implot PUBLIC imgui
)
target_include_directories
(
implot PUBLIC
${
implot_SOURCE_DIR
}
)
add_library
(
imscope MODULE imscope.cpp ../phy_scope_interface.c imscope_common.cpp imscope_init.cpp
)
target_link_libraries
(
imscope PUBLIC imgui_glfw_backend glfw imgui_opengl_renderer OpenGL::OpenGL implot UTIL
)
set_target_properties
(
imscope PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
configure_file
(
imgui.ini
${
CMAKE_BINARY_DIR
}
/imscope-init.ini COPYONLY
)
add_library
(
imscope_record MODULE ../phy_scope_interface.c imscope_common.cpp imscope_record.cpp
)
target_link_libraries
(
imscope_record PRIVATE UTIL atomic
)
set_target_properties
(
imscope_record PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
add_executable
(
imscope_iq_file_viewer imscope.cpp imscope_iq_file_viewer.cpp ../phy_scope_interface.c imscope_common.cpp
)
target_link_libraries
(
imscope_iq_file_viewer PRIVATE imgui_glfw_backend glfw imgui_opengl_renderer OpenGL::OpenGL implot UTIL minimal_lib shlib_loader
)
set_target_properties
(
imscope_iq_file_viewer PROPERTIES RUNTIME_OUTPUT_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
"
)
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