Creating a new library nano_store to hold datastore related functionality.

Created nano_store library which is under 'store'
Moving store.cpp to component.cpp
This commit is contained in:
Colin LeMahieu 2023-09-17 18:44:29 +01:00
commit 29cd166fe5
No known key found for this signature in database
GPG key ID: 43708520C8DFB938
5 changed files with 18 additions and 2 deletions

View file

@ -651,6 +651,9 @@ target_compile_definitions(blake2 PRIVATE -D__SSE2__)
add_subdirectory(nano/crypto_lib)
add_subdirectory(nano/secure)
add_subdirectory(nano/store)
target_include_directories(nano_store PUBLIC ${BOOST_LIBRARY_INCLUDES})
target_include_directories(nano_store PUBLIC submodules)
add_subdirectory(nano/lib)
add_subdirectory(nano/node)
add_subdirectory(nano/nano_node)

View file

@ -263,6 +263,7 @@ target_link_libraries(
rpc
secure
nano_lib
nano_store
libminiupnpc-static
argon2
lmdb

View file

@ -39,7 +39,6 @@ add_library(
${PLATFORM_SECURE_SOURCE}
${CMAKE_BINARY_DIR}/bootstrap_weights_live.cpp
${CMAKE_BINARY_DIR}/bootstrap_weights_beta.cpp
store.cpp
buffer.hpp
common.hpp
common.cpp
@ -58,7 +57,6 @@ target_link_libraries(
nano_lib
ed25519
crypto_lib
lmdb
Boost::iostreams
Boost::system
Boost::filesystem)

14
nano/store/CMakeLists.txt Normal file
View file

@ -0,0 +1,14 @@
add_library(nano_store component.cpp component.hpp)
target_link_libraries(
nano_store
Boost::circular_buffer
Boost::endian
Boost::filesystem
Boost::iostreams
Boost::log_setup
Boost::log
Boost::multiprecision
Boost::pool
Boost::stacktrace
Boost::variant)