File tree Expand file tree Collapse file tree 2 files changed +22
-11
lines changed Expand file tree Collapse file tree 2 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,8 @@ if(ENABLE_IPC AND WITH_EXTERNAL_LIBMULTIPROCESS)
150
150
)
151
151
endif ()
152
152
153
+ option (BUILD_MINE "Build experimental bitcoin-mine executable." ${ENABLE_IPC} )
154
+
153
155
cmake_dependent_option(WITH_SV2 "Enable Stratum v2 functionality." ON "NOT WIN32" OFF )
154
156
cmake_dependent_option(BUILD_IPC_TESTS "Build IPC test executables." ON "ENABLE_IPC;BUILD_TESTS" OFF )
155
157
@@ -219,6 +221,7 @@ if(BUILD_FOR_FUZZING)
219
221
set (BUILD_TX OFF )
220
222
set (BUILD_UTIL OFF )
221
223
set (BUILD_UTIL_CHAINSTATE OFF )
224
+ set (BUILD_MINE OFF )
222
225
set (BUILD_KERNEL_LIB OFF )
223
226
set (BUILD_WALLET_TOOL OFF )
224
227
set (BUILD_GUI OFF )
@@ -645,6 +648,12 @@ message(" USDT tracing ........................ ${WITH_USDT}")
645
648
message (" QR code (GUI) ....................... ${WITH_QRENCODE} " )
646
649
message (" DBus (GUI, Linux only) .............. ${WITH_DBUS} " )
647
650
message (" Stratum v2 .......................... ${WITH_SV2} " )
651
+ if (BUILD_MINE AND ENABLE_IPC)
652
+ set (bitcoin_mine_status ON )
653
+ else ()
654
+ set (bitcoin_mine_status OFF )
655
+ endif ()
656
+ message (" bitcoin-mine (multiprocess) ......... ${bitcoin_mine_status} " )
648
657
message ("Tests:" )
649
658
message (" test_bitcoin ........................ ${BUILD_TESTS} " )
650
659
message (" test_bitcoin-qt ..................... ${BUILD_GUI_TESTS} " )
Original file line number Diff line number Diff line change @@ -36,17 +36,19 @@ if(WITH_SV2)
36
36
add_subdirectory (sv2)
37
37
38
38
# TOOD: move into sv2 directory
39
- add_executable (bitcoin-mine
40
- bitcoin-mine.cpp
41
- init/bitcoin-mine.cpp
42
- )
43
- target_link_libraries (bitcoin-mine
44
- core_interface
45
- bitcoin_common
46
- bitcoin_sv2
47
- bitcoin_ipc
48
- )
49
- list (APPEND installable_targets bitcoin-mine)
39
+ if (BUILD_MINE)
40
+ add_executable (bitcoin-mine
41
+ bitcoin-mine.cpp
42
+ init/bitcoin-mine.cpp
43
+ )
44
+ target_link_libraries (bitcoin-mine
45
+ core_interface
46
+ bitcoin_common
47
+ bitcoin_sv2
48
+ bitcoin_ipc
49
+ )
50
+ list (APPEND installable_targets bitcoin-mine)
51
+ endif ()
50
52
endif ()
51
53
52
54
#=============================
You can’t perform that action at this time.
0 commit comments