Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
| Show All 23 Lines | |||||
| option(BUILD_CHAINSTATE "Build bitcoin-chainstate" OFF) | option(BUILD_CHAINSTATE "Build bitcoin-chainstate" OFF) | ||||
| option(BUILD_IGUANA "Activate the Iguana debugger" ON) | option(BUILD_IGUANA "Activate the Iguana debugger" ON) | ||||
| option(ENABLE_BIP70 "Enable BIP70 (payment protocol) support in GUI" ON) | option(ENABLE_BIP70 "Enable BIP70 (payment protocol) support in GUI" ON) | ||||
| option(ENABLE_HARDENING "Harden the executables" ON) | option(ENABLE_HARDENING "Harden the executables" ON) | ||||
| option(ENABLE_REDUCE_EXPORTS "Reduce the amount of exported symbols" OFF) | option(ENABLE_REDUCE_EXPORTS "Reduce the amount of exported symbols" OFF) | ||||
| option(ENABLE_STATIC_LIBSTDCXX "Statically link libstdc++" OFF) | option(ENABLE_STATIC_LIBSTDCXX "Statically link libstdc++" 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_NATPMP "Enable NAT-PMP support" ON) | |||||
| option(ENABLE_CLANG_TIDY "Enable clang-tidy checks for Bitcoin ABC" OFF) | option(ENABLE_CLANG_TIDY "Enable clang-tidy checks for Bitcoin ABC" OFF) | ||||
| option(ENABLE_PROFILING "Select the profiling tool to use" OFF) | option(ENABLE_PROFILING "Select the profiling tool to use" OFF) | ||||
| option(ENABLE_TRACING "Enable eBPF user static defined tracepoints" OFF) | option(ENABLE_TRACING "Enable eBPF user static defined tracepoints" OFF) | ||||
| # Linker option | # Linker option | ||||
| if(CMAKE_CROSSCOMPILING) | if(CMAKE_CROSSCOMPILING) | ||||
| set(DEFAULT_LINKER "") | set(DEFAULT_LINKER "") | ||||
| elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") | elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") | ||||
| Show All 38 Lines | |||||
| # 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_WALLET=OFF" | "-DBUILD_WALLET=OFF" | ||||
| "-DBUILD_CHRONIK=OFF" | "-DBUILD_CHRONIK=OFF" | ||||
| "-DBUILD_QT=OFF" | "-DBUILD_QT=OFF" | ||||
| "-DBUILD_ZMQ=OFF" | "-DBUILD_ZMQ=OFF" | ||||
| "-DENABLE_QRCODE=OFF" | "-DENABLE_QRCODE=OFF" | ||||
| "-DENABLE_NATPMP=OFF" | |||||
| "-DENABLE_UPNP=OFF" | "-DENABLE_UPNP=OFF" | ||||
| "-DUSE_JEMALLOC=OFF" | "-DUSE_JEMALLOC=OFF" | ||||
| "-DENABLE_CLANG_TIDY=OFF" | "-DENABLE_CLANG_TIDY=OFF" | ||||
| "-DENABLE_BIP70=OFF" | "-DENABLE_BIP70=OFF" | ||||
| "-DUSE_LINKER=" | "-DUSE_LINKER=" | ||||
| ) | ) | ||||
| if(ENABLE_CLANG_TIDY) | if(ENABLE_CLANG_TIDY) | ||||
| ▲ Show 20 Lines • Show All 418 Lines • ▼ Show 20 Lines | add_library(common | ||||
| base58.cpp | base58.cpp | ||||
| chainparamsbase.cpp | chainparamsbase.cpp | ||||
| common/args.cpp | common/args.cpp | ||||
| common/bloom.cpp | common/bloom.cpp | ||||
| common/init.cpp | common/init.cpp | ||||
| common/configfile.cpp | common/configfile.cpp | ||||
| common/messages.cpp | common/messages.cpp | ||||
| common/netif.cpp | common/netif.cpp | ||||
| common/pcp.cpp | |||||
| common/signmessage.cpp | common/signmessage.cpp | ||||
| common/system.cpp | common/system.cpp | ||||
| cashaddr.cpp | cashaddr.cpp | ||||
| cashaddrenc.cpp | cashaddrenc.cpp | ||||
| chainparams.cpp | chainparams.cpp | ||||
| config.cpp | config.cpp | ||||
| consensus/merkle.cpp | consensus/merkle.cpp | ||||
| coins.cpp | coins.cpp | ||||
| ▲ Show 20 Lines • Show All 206 Lines • ▼ Show 20 Lines | if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||||
| # supported. | # supported. | ||||
| target_compile_definitions(server | target_compile_definitions(server | ||||
| PUBLIC -DSTATICLIB | PUBLIC -DSTATICLIB | ||||
| PUBLIC -DMINIUPNP_STATICLIB | PUBLIC -DMINIUPNP_STATICLIB | ||||
| ) | ) | ||||
| endif() | endif() | ||||
| endif() | endif() | ||||
| if(ENABLE_NATPMP) | |||||
| find_package(NATPMP REQUIRED) | |||||
| target_link_libraries(server NATPMP::natpmp) | |||||
| if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | |||||
| target_compile_definitions(server | |||||
| PUBLIC -DSTATICLIB | |||||
| PUBLIC -DNATPMP_STATICLIB | |||||
| ) | |||||
| endif() | |||||
| endif() | |||||
| # Test suites. | # Test suites. | ||||
| add_subdirectory(test) | add_subdirectory(test) | ||||
| add_subdirectory(avalanche/test) | add_subdirectory(avalanche/test) | ||||
| add_subdirectory(pow/test) | add_subdirectory(pow/test) | ||||
| # Benchmark suite. | # Benchmark suite. | ||||
| add_subdirectory(bench) | add_subdirectory(bench) | ||||
| ▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines | |||||