From 801735163a81650619a6c9587e8f1df9ee182694 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Wed, 24 Jul 2024 13:08:55 +0100 Subject: [PATCH] cmake: Add external signer support --- CMakeLists.txt | 3 +++ cmake/bitcoin-config.h.in | 3 +++ 2 files changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c4f12e4acc4..36b115af043 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -138,6 +138,8 @@ if(WITH_USDT) find_package(USDT MODULE REQUIRED) endif() +cmake_dependent_option(ENABLE_EXTERNAL_SIGNER "Enable external signer support." ON "NOT WIN32" OFF) + set(configure_warnings) include(CheckPIESupported) @@ -310,6 +312,7 @@ if(ENABLE_WALLET) message(" - descriptor wallets (SQLite) ...... ${WITH_SQLITE}") message(" - legacy wallets (Berkeley DB) ..... ${WITH_BDB}") endif() +message(" external signer ..................... ${ENABLE_EXTERNAL_SIGNER}") message(" port mapping:") message(" - using NAT-PMP .................... ${WITH_NATPMP}") message(" - using UPnP ....................... ${WITH_MINIUPNPC}") diff --git a/cmake/bitcoin-config.h.in b/cmake/bitcoin-config.h.in index 04590fc6097..f599efc89f8 100644 --- a/cmake/bitcoin-config.h.in +++ b/cmake/bitcoin-config.h.in @@ -35,6 +35,9 @@ /* Define this symbol to build code that uses AVX2 intrinsics */ #cmakedefine ENABLE_AVX2 1 +/* Define if external signer support is enabled */ +#cmakedefine ENABLE_EXTERNAL_SIGNER 1 + /* Define this symbol to build code that uses SSE4.1 intrinsics */ #cmakedefine ENABLE_SSE41 1