devices pipelinecontext

This commit is contained in:
flower_linux
2026-03-31 11:02:36 +08:00
parent 1ab3523ea9
commit 3b7368a2ab
14 changed files with 537 additions and 76 deletions

View File

@@ -119,6 +119,8 @@ qt_add_executable(softbus_daemon
src/core/plugin_system/IProtocolPlugin.h
src/core/plugin_system/PluginManager.h
src/core/plugin_system/PluginManager.cpp
src/core/plugin_system/builtins/ModbusRtuProtocolPlugin.h
src/core/plugin_system/builtins/ModbusRtuProtocolPlugin.cpp
# message bus pipeline
src/message_bus/pipeline/PayloadRef.h
@@ -126,7 +128,12 @@ qt_add_executable(softbus_daemon
src/message_bus/pipeline/PipelineEngine.h
src/message_bus/pipeline/PipelineEngine.cpp
src/message_bus/pipeline/stages/1_framers/IFramer.h
src/message_bus/pipeline/stages/1_framers/DefaultFramer.cpp
src/message_bus/pipeline/stages/1_framers/ModbusRtuFraming.h
src/message_bus/pipeline/stages/1_framers/ModbusRtuFraming.cpp
src/message_bus/pipeline/stages/1_framers/ModbusRtuFramer.h
src/message_bus/pipeline/stages/1_framers/ModbusRtuFramer.cpp
src/message_bus/pipeline/stages/1_framers/PassthroughFramer.h
src/message_bus/pipeline/stages/1_framers/PassthroughFramer.cpp
src/message_bus/pipeline/stages/2_parsers/IParserStage.h
src/message_bus/pipeline/stages/3_filters/IFilterStage.h
src/message_bus/pipeline/stages/4_validators/IValidator.h
@@ -179,6 +186,23 @@ endif()
add_subdirectory(plugins)
option(SOFTBUS_BUILD_TESTS "Build unit tests" OFF)
if(SOFTBUS_BUILD_TESTS)
find_package(Qt6 6.5 REQUIRED COMPONENTS Test)
qt_add_executable(softbus_modbus_rtu_framer_test
tests/modbus_rtu_framer_test.cpp
src/message_bus/pipeline/stages/1_framers/ModbusRtuFraming.cpp
src/message_bus/pipeline/stages/1_framers/ModbusRtuFramer.cpp
)
target_include_directories(softbus_modbus_rtu_framer_test PRIVATE
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/src
)
target_link_libraries(softbus_modbus_rtu_framer_test PRIVATE
Qt6::Core
Qt6::Test
)
endif()
install(TARGETS softbus_daemon
BUNDLE DESTINATION .