feature: add debug_plugin for development debugging

This commit is contained in:
luwenpeng
2024-08-01 11:40:00 +08:00
parent 48202b4d0a
commit 776090331e
16 changed files with 446 additions and 135 deletions

View File

@@ -0,0 +1,8 @@
# build libdebug_plugin.so
add_library(debug_plugin SHARED debug_plugin.cpp)
# Note: The debug plugin here uses stellar_core instead of stellar_devel, in order to output more session/packet information for development debugging.
target_link_libraries(debug_plugin stellar_core toml)
target_include_directories(debug_plugin PUBLIC ${CMAKE_SOURCE_DIR}/include/)
set_target_properties(debug_plugin PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/version.map")
file(COPY ./conf/ DESTINATION ./conf/)