Skip to content

Commit

Permalink
Open Source: libcommunication (#2959)
Browse files Browse the repository at this point in the history
Move libcommunication to the libs directory
  • Loading branch information
toly-kournik authored Mar 15, 2023
1 parent 87c10ab commit 5aae67a
Show file tree
Hide file tree
Showing 26 changed files with 18 additions and 12 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ endif()
add_subdirectory(libs/log)
link_libraries(logging)
add_subdirectory(libs)
add_subdirectory(communication)
add_subdirectory(kvbc)
add_subdirectory(performance)
add_subdirectory(bftengine)
Expand Down
2 changes: 1 addition & 1 deletion client/bftclient/src/bft_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "secrets/secrets_manager_plain.h"
#include "communication/StateControl.hpp"
#include "crypto/factory.hpp"
#include "ReplicaConfig.hpp"
#include "bftengine/ReplicaConfig.hpp"

using namespace concord::diagnostics;
using namespace concord::secretsmanager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <utility>
#include <vector>
#include "client_pool_config.hpp"
#include "communication/StatusInfo.h"
#include "communication/StatusInfo.hpp"
#include "external_client_exception.hpp"

namespace concord {
Expand Down
2 changes: 1 addition & 1 deletion kvbc/include/Replica.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "bftengine/Replica.hpp"
#include "bftengine/ReplicaConfig.hpp"
#include "bcstatetransfer/SimpleBCStateTransfer.hpp"
#include "communication/StatusInfo.h"
#include "communication/StatusInfo.hpp"
#include "KVBCInterfaces.h"
#include "replica_state_sync_imp.hpp"
#include "db_adapter_interface.h"
Expand Down
2 changes: 2 additions & 0 deletions libs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ include(CMakePackageConfigHelpers)
add_subdirectory(util)
add_subdirectory(crypto)
add_subdirectory(secrets)
add_subdirectory(communication)

17 changes: 11 additions & 6 deletions communication/CMakeLists.txt → libs/communication/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,17 @@ endif()

target_link_libraries(bftcommunication PUBLIC util concord-crypto)

target_include_directories(bftcommunication PUBLIC ../bftengine/include/bftengine)
target_include_directories(bftcommunication PUBLIC include)
target_include_directories(bftcommunication PUBLIC ${util}/include)


install(DIRECTORY include/communication DESTINATION include)
target_include_directories(bftcommunication PUBLIC . ../../bftengine/include)

target_sources(bftcommunication PUBLIC FILE_SET comm_pub_hdrs
TYPE HEADERS
FILES CommDefs.hpp
CommFactory.hpp
ICommunication.hpp
StateControl.hpp
StatusInfo.hpp
)
install(TARGETS bftcommunication FILE_SET comm_pub_hdrs DESTINATION communication)

if (BUILD_TESTING)
add_subdirectory(tests)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <unistd.h>

#include "communication/ICommunication.hpp"
#include "communication/StatusInfo.h"
#include "communication/StatusInfo.hpp"
#include "util/assertUtils.hpp"

#ifdef USE_COMM_TLS_TCP
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "TlsConnectionManager.h"
#include "TlsDiagnostics.h"
#include "TlsWriteQueue.h"
#include "ReplicaConfig.hpp"
#include "bftengine/ReplicaConfig.hpp"

namespace bft::communication::tls {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5aae67a

Please sign in to comment.