2020-04-17 19:33:06 +02:00
|
|
|
# This file is part of the Flowee project
|
2023-01-31 16:46:30 +01:00
|
|
|
# Copyright (C) 2020-2023 Tom Zander <tom@flowwe.org>
|
2020-04-17 19:33:06 +02:00
|
|
|
#
|
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
#
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
include_directories(${LIBP2P_INCLUDES} ${CMAKE_BINARY_DIR}/include)
|
|
|
|
|
|
|
|
|
|
add_library(flowee_p2p STATIC
|
|
|
|
|
Action.cpp
|
|
|
|
|
BlockHeader.cpp
|
|
|
|
|
Blockchain.cpp
|
|
|
|
|
ConnectionManager.cpp
|
2021-02-03 14:35:06 +01:00
|
|
|
CleanPeersAction.cpp
|
2020-04-17 19:33:06 +02:00
|
|
|
DataListenerInterface.cpp
|
|
|
|
|
DownloadManager.cpp
|
|
|
|
|
FillAddressDBAction.cpp
|
2023-01-31 16:46:30 +01:00
|
|
|
HeaderSyncInterface.cpp
|
2020-04-17 19:33:06 +02:00
|
|
|
InventoryItem.cpp
|
2021-02-05 17:22:52 +01:00
|
|
|
NotificationCenter.cpp
|
|
|
|
|
NotificationListener.cpp
|
2020-04-17 19:33:06 +02:00
|
|
|
P2PNetInterface.cpp
|
|
|
|
|
Peer.cpp
|
|
|
|
|
PeerAddressDB.cpp
|
|
|
|
|
PrivacySegment.cpp
|
|
|
|
|
SyncChainAction.cpp
|
|
|
|
|
SyncSPVAction.cpp
|
2020-06-08 21:35:10 +02:00
|
|
|
BroadcastTxData.cpp
|
2020-04-17 19:33:06 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(flowee_p2p flowee_networkmanager)
|
2023-04-01 22:58:11 +02:00
|
|
|
# logging defaults:
|
|
|
|
|
# 2020 is the main logging section in this lib (Logger::P2PNet)
|
|
|
|
|
# 2025: SPV sync action
|
|
|
|
|
add_definitions(-DLOG_DEFAULT_SECTION=2020)
|
2020-04-17 19:33:06 +02:00
|
|
|
|
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libflowee_p2p.a DESTINATION lib)
|
|
|
|
|
install(FILES
|
|
|
|
|
Action.h
|
|
|
|
|
BlockHeader.h
|
|
|
|
|
Blockchain.h
|
|
|
|
|
ConnectionManager.h
|
|
|
|
|
DataListenerInterface.h
|
|
|
|
|
DownloadManager.h
|
|
|
|
|
FillAddressDBAction.h
|
2023-01-31 16:46:30 +01:00
|
|
|
HeaderSyncInterface.h
|
2020-04-17 19:33:06 +02:00
|
|
|
InventoryItem.h
|
2021-02-05 17:22:52 +01:00
|
|
|
NotificationCenter.h
|
|
|
|
|
NotificationListener.h
|
2020-10-29 21:47:53 +01:00
|
|
|
P2PNet.h
|
2020-04-17 19:33:06 +02:00
|
|
|
P2PNetInterface.h
|
|
|
|
|
Peer.h
|
|
|
|
|
PeerAddressDB.h
|
|
|
|
|
PrivacySegment.h
|
|
|
|
|
SyncChainAction.h
|
|
|
|
|
SyncSPVAction.h
|
2020-06-08 21:35:10 +02:00
|
|
|
BroadcastTxData.h
|
2020-04-17 19:33:06 +02:00
|
|
|
DESTINATION include/flowee/p2p)
|