File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,8 @@ option(BUILD_TESTS "Build test_bitcoin executable." ON)
74
74
option (BUILD_TX "Build bitcoin-tx executable." ${BUILD_TESTS} )
75
75
option (BUILD_UTIL "Build bitcoin-util executable." ${BUILD_TESTS} )
76
76
77
- option (BUILD_KERNEL_LIB "Build experimental bitcoinkernel library." OFF )
77
+ option (BUILD_UTIL_CHAINSTATE "Build experimental bitcoin-chainstate executable." OFF )
78
+ option (BUILD_KERNEL_LIB "Build experimental bitcoinkernel library." ${BUILD_UTIL_CHAINSTATE} )
78
79
79
80
option (ENABLE_WALLET "Enable wallet." ON )
80
81
option (WITH_SQLITE "Enable SQLite wallet support." ${ENABLE_WALLET} )
@@ -207,6 +208,7 @@ if(BUILD_FOR_FUZZING)
207
208
set (BUILD_CLI OFF )
208
209
set (BUILD_TX OFF )
209
210
set (BUILD_UTIL OFF )
211
+ set (BUILD_UTIL_CHAINSTATE OFF )
210
212
set (BUILD_KERNEL_LIB OFF )
211
213
set (BUILD_WALLET_TOOL OFF )
212
214
set (BUILD_GUI OFF )
@@ -498,6 +500,7 @@ message(" bitcoin-cli ......................... ${BUILD_CLI}")
498
500
message (" bitcoin-tx .......................... ${BUILD_TX} " )
499
501
message (" bitcoin-util ........................ ${BUILD_UTIL} " )
500
502
message (" bitcoin-wallet ...................... ${BUILD_WALLET_TOOL} " )
503
+ message (" bitcoin-chainstate (experimental) ... ${BUILD_UTIL_CHAINSTATE} " )
501
504
message (" libbitcoinkernel (experimental) ..... ${BUILD_KERNEL_LIB} " )
502
505
message ("Optional features:" )
503
506
message (" wallet support ...................... ${ENABLE_WALLET} " )
Original file line number Diff line number Diff line change @@ -353,6 +353,26 @@ if(BUILD_KERNEL_LIB)
353
353
add_subdirectory (kernel )
354
354
endif ()
355
355
356
+ if (BUILD_UTIL_CHAINSTATE )
357
+ add_executable (bitcoin-chainstate
358
+ bitcoin-chainstate.cpp
359
+ )
360
+ # TODO: The `SKIP_BUILD_RPATH` property setting can be deleted
361
+ # in the future after reordering Guix script commands to
362
+ # perform binary checks after the installation step.
363
+ # Relevant discussions:
364
+ # - https://github.com/hebasto/bitcoin/pull/236#issuecomment-2183120953
365
+ # - https://github.com/bitcoin/bitcoin/pull/30312#issuecomment-2191235833
366
+ set_target_properties (bitcoin-chainstate PROPERTIES
367
+ SKIP_BUILD_RPATH OFF
368
+ )
369
+ target_link_libraries (bitcoin-chainstate
370
+ PRIVATE
371
+ core_interface
372
+ bitcoinkernel
373
+ )
374
+ endif ()
375
+
356
376
357
377
add_subdirectory (test /util )
358
378
if (BUILD_BENCH )
You can’t perform that action at this time.
0 commit comments