Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show All 21 Lines | |||||
option(ENABLE_GLIBC_BACK_COMPAT "Enable Glibc compatibility features" OFF) | option(ENABLE_GLIBC_BACK_COMPAT "Enable Glibc compatibility features" OFF) | ||||
option(ENABLE_QRCODE "Enable QR code display" ON) | option(ENABLE_QRCODE "Enable QR code display" ON) | ||||
option(ENABLE_UPNP "Enable UPnP support" ON) | option(ENABLE_UPNP "Enable UPnP support" ON) | ||||
option(ENABLE_NOTIFICATIONS "Enable desktop notifications" ON) | option(ENABLE_NOTIFICATIONS "Enable desktop notifications" ON) | ||||
option(ENABLE_WERROR "Promote some compiler warnings to errors" OFF) | option(ENABLE_WERROR "Promote some compiler warnings to errors" OFF) | ||||
option(START_WITH_UPNP "Make UPnP the default to map ports" OFF) | option(START_WITH_UPNP "Make UPnP the default to map ports" OFF) | ||||
option(ENABLE_CLANG_TIDY "Enable clang-tidy checks for Bitcoin ABC" ON) | option(ENABLE_CLANG_TIDY "Enable clang-tidy checks for Bitcoin ABC" ON) | ||||
# If ccache is available, then use it. | |||||
find_program(CCACHE ccache) | |||||
if(CCACHE) | |||||
message(STATUS "Using ccache: ${CCACHE}") | |||||
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE}) | |||||
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE}) | |||||
endif(CCACHE) | |||||
# Disable what we do not need for the native build. | # Disable what we do not need for the native build. | ||||
include(NativeExecutable) | include(NativeExecutable) | ||||
native_add_cmake_flags( | native_add_cmake_flags( | ||||
"-DBUILD_BITCOIN_WALLET=OFF" | "-DBUILD_BITCOIN_WALLET=OFF" | ||||
"-DBUILD_BITCOIN_QT=OFF" | "-DBUILD_BITCOIN_QT=OFF" | ||||
"-DBUILD_BITCOIN_ZMQ=OFF" | "-DBUILD_BITCOIN_ZMQ=OFF" | ||||
"-DENABLE_QRCODE=OFF" | "-DENABLE_QRCODE=OFF" | ||||
"-DENABLE_UPNP=OFF" | "-DENABLE_UPNP=OFF" | ||||
▲ Show 20 Lines • Show All 545 Lines • Show Last 20 Lines |