2024-07-24 12:53:35 +01:00
|
|
|
# Copyright (c) 2023-present The Bitcoin Core developers
|
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file COPYING or https://opensource.org/license/mit/.
|
|
|
|
|
|
|
|
# Wallet functionality used by bitcoind and bitcoin-wallet executables.
|
|
|
|
add_library(bitcoin_wallet STATIC EXCLUDE_FROM_ALL
|
|
|
|
coincontrol.cpp
|
|
|
|
coinselection.cpp
|
|
|
|
context.cpp
|
|
|
|
crypter.cpp
|
|
|
|
db.cpp
|
|
|
|
dump.cpp
|
|
|
|
external_signer_scriptpubkeyman.cpp
|
|
|
|
feebumper.cpp
|
|
|
|
fees.cpp
|
|
|
|
interfaces.cpp
|
|
|
|
load.cpp
|
|
|
|
migrate.cpp
|
|
|
|
receive.cpp
|
|
|
|
rpc/addresses.cpp
|
|
|
|
rpc/backup.cpp
|
|
|
|
rpc/coins.cpp
|
|
|
|
rpc/encrypt.cpp
|
|
|
|
rpc/signmessage.cpp
|
|
|
|
rpc/spend.cpp
|
|
|
|
rpc/transactions.cpp
|
|
|
|
rpc/util.cpp
|
|
|
|
rpc/wallet.cpp
|
|
|
|
scriptpubkeyman.cpp
|
|
|
|
spend.cpp
|
|
|
|
transaction.cpp
|
|
|
|
wallet.cpp
|
|
|
|
walletdb.cpp
|
|
|
|
walletutil.cpp
|
|
|
|
)
|
|
|
|
target_link_libraries(bitcoin_wallet
|
|
|
|
PRIVATE
|
|
|
|
core_interface
|
|
|
|
bitcoin_common
|
|
|
|
univalue
|
|
|
|
Boost::headers
|
2024-07-24 13:11:05 +01:00
|
|
|
$<TARGET_NAME_IF_EXISTS:USDT::headers>
|
2024-07-24 12:53:35 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
if(NOT USE_SQLITE AND NOT USE_BDB)
|
|
|
|
message(FATAL_ERROR "Wallet functionality requested but no BDB or SQLite support available.")
|
|
|
|
endif()
|
|
|
|
if(USE_SQLITE)
|
|
|
|
target_sources(bitcoin_wallet PRIVATE sqlite.cpp)
|
|
|
|
target_link_libraries(bitcoin_wallet
|
|
|
|
PRIVATE
|
|
|
|
$<TARGET_NAME_IF_EXISTS:unofficial::sqlite3::sqlite3>
|
|
|
|
$<TARGET_NAME_IF_EXISTS:SQLite::SQLite3>
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
if(USE_BDB)
|
|
|
|
target_sources(bitcoin_wallet PRIVATE bdb.cpp salvage.cpp)
|
|
|
|
target_link_libraries(bitcoin_wallet PUBLIC BerkeleyDB::BerkeleyDB)
|
|
|
|
endif()
|