Skip to content

Commit

Permalink
move storage to libs
Browse files Browse the repository at this point in the history
  • Loading branch information
yontyon committed Mar 29, 2023
1 parent ceda064 commit 78b079f
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions libs/storage/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
project (libbftstorage LANGUAGES CXX)

add_library(concordbft_storage STATIC src/memorydb_client.cpp
src/direct_kv_key_manipulator.cpp
src/merkle_tree_key_manipulator.cpp
src/s3/key_manipulator.cpp)

target_include_directories(concordbft_storage PUBLIC include)
target_include_directories(concordbft_storage PUBLIC .)

if (USE_S3_OBJECT_STORE)
find_library(LIBS3 s3)
Expand All @@ -28,6 +30,38 @@ if (BUILD_ROCKSDB_STORAGE)

endif(BUILD_ROCKSDB_STORAGE)

target_sources(concordbft_storage PUBLIC FILE_SET storage_pub_hdrs
TYPE HEADERS
FILES
memorydb/transaction.hpp
memorydb/client.hpp
memorydb/key_comparator.hpp
rocksdb/rocksdb_exception.hpp
rocksdb/native_iterator.hpp
rocksdb/transaction.hpp
rocksdb/client.hpp
rocksdb/native_write_batch.hpp
rocksdb/key_comparator.hpp
rocksdb/native_write_batch.ipp
rocksdb/native_client.ipp
rocksdb/details.hpp
rocksdb/native_client.hpp
s3/s3_metrics.hpp
s3/config_parser.hpp
s3/client.hpp
s3/key_manipulator.hpp
storage_metrics.hpp
db_interface.hpp
merkle_tree_key_manipulator.hpp
key_manipulator_interface.hpp
direct_kv_key_manipulator.hpp
db_types.hpp
)
install(TARGETS concordbft_storage FILE_SET storage_pub_hdrs DESTINATION storage)

add_library(concordbft_storage_test_headers INTERFACE)
target_include_directories(concordbft_storage_test_headers INTERFACE test)

if (BUILD_TESTING)
add_subdirectory(test)
endif()
endif()

0 comments on commit 78b079f

Please sign in to comment.