2018-02-14 14:26:28 +01:00
|
|
|
# This file is part of the Flowee project
|
2021-10-13 16:44:13 +02:00
|
|
|
# Copyright (C) 2018-2021 Tom Zander <tom@flowee.org>
|
2018-02-14 14:26:28 +01: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/>.
|
|
|
|
|
|
2019-06-02 20:20:04 +02:00
|
|
|
include_directories(${LIBUTILS_INCLUDES} ${CMAKE_BINARY_DIR}/include)
|
2018-02-10 14:59:45 +01:00
|
|
|
|
|
|
|
|
add_library(flowee_utils STATIC
|
|
|
|
|
amount.cpp
|
2020-03-29 21:33:17 +02:00
|
|
|
arith_uint256.cpp
|
2019-04-11 11:33:27 +02:00
|
|
|
base58.cpp
|
2020-04-01 22:24:26 +02:00
|
|
|
bloom.cpp
|
2019-04-11 11:33:27 +02:00
|
|
|
cashaddr.cpp
|
2018-02-10 14:59:45 +01:00
|
|
|
chainparamsbase.cpp
|
|
|
|
|
clientversion.cpp
|
|
|
|
|
compat/glibc_sanity.cpp
|
|
|
|
|
compat/glibcxx_sanity.cpp
|
|
|
|
|
compat/strnlen.cpp
|
2019-03-11 14:47:12 +01:00
|
|
|
hash.cpp
|
2021-10-13 16:44:13 +02:00
|
|
|
HDMasterKey.cpp
|
2022-07-07 20:54:57 +02:00
|
|
|
HDMasterPubkey.cpp
|
2018-02-10 14:59:45 +01:00
|
|
|
LogChannels.cpp
|
|
|
|
|
Logger.cpp
|
|
|
|
|
Message.cpp
|
2020-04-01 22:51:47 +02:00
|
|
|
merkle.cpp
|
|
|
|
|
merkleblock.cpp
|
2020-04-17 16:13:42 +02:00
|
|
|
PartialMerkleTree.cpp
|
2026-05-12 15:46:48 +02:00
|
|
|
prevector.cpp
|
2018-02-10 14:59:45 +01:00
|
|
|
random.cpp
|
2023-07-15 12:26:16 +02:00
|
|
|
StringUtils.cpp
|
2021-01-21 11:56:26 +01:00
|
|
|
script/interpreter.cpp
|
|
|
|
|
script/script_error.cpp
|
2025-04-12 17:05:01 +02:00
|
|
|
streaming/BindingMessageParser.cpp
|
2018-02-10 14:59:45 +01:00
|
|
|
streaming/BufferPool.cpp
|
2022-01-24 12:06:37 +01:00
|
|
|
streaming/BufferPools.cpp
|
2018-02-10 14:59:45 +01:00
|
|
|
streaming/ConstBuffer.cpp
|
|
|
|
|
streaming/MessageBuilder.cpp
|
|
|
|
|
streaming/MessageParser.cpp
|
2020-04-10 21:13:12 +02:00
|
|
|
streaming/P2PBuilder.cpp
|
|
|
|
|
streaming/P2PParser.cpp
|
2023-07-08 21:36:39 +02:00
|
|
|
streaming/ProtoParser.cpp
|
|
|
|
|
streaming/ProtoBuilder.cpp
|
2024-09-07 11:54:38 +02:00
|
|
|
streaming/StreamingUtils.cpp
|
2018-02-10 14:59:45 +01:00
|
|
|
support/cleanse.cpp
|
2022-04-06 10:24:16 +02:00
|
|
|
support/lockedpool.cpp
|
2018-02-10 14:59:45 +01:00
|
|
|
sync.cpp
|
2019-03-11 14:39:38 +01:00
|
|
|
TransactionBuilder.cpp
|
2021-11-02 10:08:27 +01:00
|
|
|
primitives/MutableBlock.cpp
|
2021-11-02 10:23:33 +01:00
|
|
|
primitives/Block.cpp
|
2026-04-15 21:35:08 +02:00
|
|
|
primitives/BlockHeader.cpp
|
2021-11-02 11:04:59 +01:00
|
|
|
primitives/Tx.cpp
|
2023-11-24 18:16:32 +01:00
|
|
|
primitives/PrivateKey.cpp
|
2023-11-24 18:01:36 +01:00
|
|
|
primitives/PublicKey.cpp
|
|
|
|
|
primitives/PublicKeyUtils.cpp
|
2019-03-11 14:47:12 +01:00
|
|
|
primitives/script.cpp
|
|
|
|
|
primitives/transaction.cpp
|
2018-02-10 14:59:45 +01:00
|
|
|
uint256.cpp
|
|
|
|
|
utilmoneystr.cpp
|
|
|
|
|
utilstrencodings.cpp
|
|
|
|
|
utiltime.cpp
|
2018-02-15 16:13:31 +01:00
|
|
|
WorkerThreads.cpp
|
2019-08-24 13:20:37 +02:00
|
|
|
WaitUntilFinishedHelper.cpp
|
2018-02-10 14:59:45 +01:00
|
|
|
)
|
|
|
|
|
|
2019-11-04 14:20:50 +01:00
|
|
|
# allow usage in dlls
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
|
|
|
|
|
2022-12-09 23:38:19 +01:00
|
|
|
target_link_libraries(flowee_utils secp256k1 flowee_interfaces flowee_crypto)
|
2019-05-30 13:36:57 +02:00
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libflowee_utils.a DESTINATION lib)
|
2019-06-02 20:20:04 +02:00
|
|
|
|
|
|
|
|
install(FILES
|
2020-03-29 21:33:17 +02:00
|
|
|
arith_uint256.h
|
2021-10-25 21:11:23 +02:00
|
|
|
base58.h
|
2020-04-01 22:24:26 +02:00
|
|
|
bloom.h
|
2021-10-25 21:11:23 +02:00
|
|
|
cashaddr.h
|
|
|
|
|
compat.h
|
2019-06-06 22:39:24 +02:00
|
|
|
hash.h
|
2021-10-13 16:44:13 +02:00
|
|
|
HDMasterKey.h
|
2022-07-11 12:55:31 +02:00
|
|
|
HDMasterPubkey.h
|
2019-06-02 20:20:04 +02:00
|
|
|
Logger.h
|
2022-11-24 17:50:08 +01:00
|
|
|
LogChannel.h
|
2020-04-01 22:51:47 +02:00
|
|
|
merkle.h
|
2021-10-25 21:11:23 +02:00
|
|
|
Message.h
|
2020-04-17 16:13:42 +02:00
|
|
|
PartialMerkleTree.h
|
2019-06-02 20:20:04 +02:00
|
|
|
prevector.h
|
2021-10-25 21:11:23 +02:00
|
|
|
random.h
|
|
|
|
|
serialize.h
|
2023-07-15 12:26:16 +02:00
|
|
|
StringUtils.h
|
2024-01-22 19:49:44 +01:00
|
|
|
Streaming.h
|
2021-10-25 21:11:23 +02:00
|
|
|
tinyformat.h
|
2020-05-28 22:34:49 +02:00
|
|
|
TransactionBuilder.h
|
2019-06-02 20:20:04 +02:00
|
|
|
uint256.h
|
2021-10-25 21:11:23 +02:00
|
|
|
WorkerThreads.h
|
2019-06-06 22:39:24 +02:00
|
|
|
DESTINATION include/flowee/utils/)
|
2019-06-02 20:20:04 +02:00
|
|
|
install(FILES
|
2025-04-12 17:05:01 +02:00
|
|
|
streaming/BindingMessageParser.h
|
2019-06-02 20:20:04 +02:00
|
|
|
streaming/BufferPool.h
|
2022-01-24 12:06:37 +01:00
|
|
|
streaming/BufferPools.h
|
2019-06-02 20:20:04 +02:00
|
|
|
streaming/ConstBuffer.h
|
|
|
|
|
streaming/MessageBuilder.h
|
|
|
|
|
streaming/MessageParser.h
|
2020-04-10 21:13:12 +02:00
|
|
|
streaming/P2PParser.h
|
|
|
|
|
streaming/P2PBuilder.h
|
2023-07-08 21:36:39 +02:00
|
|
|
streaming/ProtoBuilder.h
|
|
|
|
|
streaming/ProtoParser.h
|
2024-09-07 11:54:38 +02:00
|
|
|
streaming/StreamingUtils.h
|
2019-06-06 22:39:24 +02:00
|
|
|
DESTINATION include/flowee/utils/streaming)
|
2019-06-03 21:37:30 +02:00
|
|
|
|
|
|
|
|
install(FILES
|
2021-11-02 10:08:27 +01:00
|
|
|
#primitives/MutableBlock.h
|
2021-11-02 10:23:33 +01:00
|
|
|
#primitives/Block.h
|
2026-04-15 21:35:08 +02:00
|
|
|
#primitives/BlockHeader.h
|
2021-11-02 11:04:59 +01:00
|
|
|
primitives/Tx.h
|
2023-11-24 18:16:32 +01:00
|
|
|
primitives/PrivateKey.h
|
2023-11-24 18:01:36 +01:00
|
|
|
primitives/PublicKey.h
|
|
|
|
|
primitives/PublicKeyUtils.h
|
2019-06-03 21:37:30 +02:00
|
|
|
primitives/script.h
|
|
|
|
|
#primitives/transaction.h
|
2019-06-06 22:39:24 +02:00
|
|
|
DESTINATION include/flowee/utils/primitives)
|
|
|
|
|
|
2021-01-21 11:56:26 +01:00
|
|
|
install(FILES
|
|
|
|
|
script/interpreter.h
|
|
|
|
|
script/script_error.h
|
|
|
|
|
DESTINATION include/flowee/utils/script)
|
|
|
|
|
|
2019-06-06 22:39:24 +02:00
|
|
|
install(FILES support/allocators/secure.h DESTINATION include/flowee/utils/support/allocators)
|
2022-04-06 10:24:16 +02:00
|
|
|
install(FILES support/lockedpool.h support/cleanse.h DESTINATION include/flowee/utils/support)
|