Hooks-chaining alpha

This is a squash of 241 commits from https://github.com/XRPL-Labs/xrpld-hooks/tree/hooks-chaining
Ready for forward porting to rippled 1.8.3
This commit is contained in:
Richard Holland
2020-07-21 17:09:06 +02:00
parent 04d642387f
commit b33c91f761
66 changed files with 8276 additions and 36 deletions

View File

@@ -429,12 +429,14 @@ target_sources (rippled PRIVATE
src/ripple/app/tx/impl/Payment.cpp
src/ripple/app/tx/impl/SetAccount.cpp
src/ripple/app/tx/impl/SetRegularKey.cpp
src/ripple/app/tx/impl/SetHook.cpp
src/ripple/app/tx/impl/SetSignerList.cpp
src/ripple/app/tx/impl/SetTrust.cpp
src/ripple/app/tx/impl/SignerEntries.cpp
src/ripple/app/tx/impl/Taker.cpp
src/ripple/app/tx/impl/Transactor.cpp
src/ripple/app/tx/impl/apply.cpp
src/ripple/app/tx/impl/applyHook.cpp
src/ripple/app/tx/impl/applySteps.cpp
#[===============================[
main sources:
@@ -981,6 +983,8 @@ target_link_libraries (rippled
Ripple::opts
Ripple::libs
Ripple::xrpl_core
libssvm
# /usr/lib/libwasmer.a
)
exclude_if_included (rippled)
# define a macro for tests that might need to

View File

@@ -2,7 +2,7 @@
declare user options/settings
#]===================================================================]
option (assert "Enables asserts, even in release builds" OFF)
option (assert "Enables asserts, even in release builds" ON)
option (reporting "Build rippled with reporting mode enabled" OFF)
@@ -15,7 +15,7 @@ if (unity)
set (unity OFF CACHE BOOL "unity only available for cmake 3.16+" FORCE)
else ()
if (NOT is_ci)
set (CMAKE_UNITY_BUILD_BATCH_SIZE 15 CACHE STRING "")
set (CMAKE_UNITY_BUILD_BATCH_SIZE 5 CACHE STRING "")
endif ()
endif ()
endif ()

View File

@@ -0,0 +1,17 @@
find_package (libssvm_src QUIET)
if (NOT TARGET libssvm_src)
FetchContent_Declare(
libssvm_src
GIT_REPOSITORY git@github.com:RichardAH/libssvm.git
GIT_TAG 382bd11497439d334b37c585f38cc003d7aef080
)
FetchContent_MakeAvailable(libssvm_src)
# FetchContent_GetProperties(libssvm_src)
#if(NOT libssvm_src_POPULATED)
# FetchContent_Populate(libssvm_src)
# add_subdirectory(${libssvm_src_SOURCE_DIR} ${libssvm_src_BINARY_DIR})
#endif()
#Message("libssvm: srcdir:")
#Message(${libssvm_src_SOURCE_DIR})
target_include_directories (libssvm SYSTEM INTERFACE ${libssvm_src_SOURCE_DIR}/include)
endif()