blob: 121e6e3c83737f4fdbc62bb64b101a97b182109c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# 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
$<TARGET_NAME_IF_EXISTS:USDT::headers>
)
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()
|