Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
# If ccache is available, then use it. | # If ccache is available, then use it. | ||||
find_program(CCACHE ccache) | find_program(CCACHE ccache) | ||||
if(CCACHE) | if(CCACHE) | ||||
message(STATUS "Using ccache: ${CCACHE}") | message(STATUS "Using ccache: ${CCACHE}") | ||||
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE}) | set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE}) | ||||
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE}) | set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE}) | ||||
endif(CCACHE) | endif(CCACHE) | ||||
# Disable what we do not need for the native build. | |||||
include(NativeExecutable) | |||||
native_add_cmake_flags( | |||||
"-DBUILD_BITCOIN_WALLET=OFF" | |||||
"-DBUILD_BITCOIN_QT=OFF" | |||||
"-DBUILD_BITCOIN_ZMQ=OFF" | |||||
"-DENABLE_QRCODE=OFF" | |||||
"-DENABLE_UPNP=OFF" | |||||
"-DUSE_JEMALLOC=OFF" | |||||
"-DENABLE_CLANG_TIDY=OFF" | |||||
) | |||||
if(ENABLE_CLANG_TIDY) | if(ENABLE_CLANG_TIDY) | ||||
include(ClangTidy) | include(ClangTidy) | ||||
endif() | endif() | ||||
if(ENABLE_SANITIZERS) | if(ENABLE_SANITIZERS) | ||||
include(Sanitizers) | include(Sanitizers) | ||||
enable_sanitizers(${ENABLE_SANITIZERS}) | enable_sanitizers(${ENABLE_SANITIZERS}) | ||||
endif() | endif() | ||||
▲ Show 20 Lines • Show All 594 Lines • Show Last 20 Lines |