Changeset View
Changeset View
Standalone View
Standalone View
src/config/CMakeLists.txt
# Copyright (c) 2017-2019 The Bitcoin developers | # Copyright (c) 2017-2019 The Bitcoin developers | ||||
# This generates config.h which provides numerous defines | # This generates config.h which provides numerous defines | ||||
# about the state of the plateform we are building on. | # about the state of the plateform we are building on. | ||||
include(CheckIncludeFiles) | include(CheckIncludeFiles) | ||||
include(CheckSymbolExists) | include(CheckSymbolExists) | ||||
include(CheckCXXSourceCompiles) | include(CheckCXXSourceCompiles) | ||||
# Package information | |||||
set(PACKAGE_NAME "Bitcoin ABC" CACHE STRING "Package name") | |||||
# Version | # Version | ||||
set(CLIENT_VERSION_MAJOR ${bitcoin-abc_VERSION_MAJOR}) | set(CLIENT_VERSION_MAJOR ${bitcoin-abc_VERSION_MAJOR}) | ||||
set(CLIENT_VERSION_MINOR ${bitcoin-abc_VERSION_MINOR}) | set(CLIENT_VERSION_MINOR ${bitcoin-abc_VERSION_MINOR}) | ||||
set(CLIENT_VERSION_REVISION ${bitcoin-abc_VERSION_PATCH}) | set(CLIENT_VERSION_REVISION ${bitcoin-abc_VERSION_PATCH}) | ||||
option(CLIENT_VERSION_IS_RELEASE "Build a release version" OFF) | option(CLIENT_VERSION_IS_RELEASE "Build a release version" OFF) | ||||
# Copyright | |||||
set(COPYRIGHT_YEAR 2019) | |||||
set(COPYRIGHT_HOLDERS "The %s developers") | |||||
set(COPYRIGHT_HOLDERS_SUBSTITUTION Bitcoin) | |||||
string(REPLACE "%s" ${COPYRIGHT_HOLDERS_SUBSTITUTION} COPYRIGHT_HOLDERS_FINAL ${COPYRIGHT_HOLDERS}) | |||||
# Generate the version.h file | # Generate the version.h file | ||||
configure_file(version.h.cmake.in version.h ESCAPE_QUOTES) | configure_file(version.h.cmake.in version.h ESCAPE_QUOTES) | ||||
# Endianness | # Endianness | ||||
check_include_files("endian.h" HAVE_ENDIAN_H) | check_include_files("endian.h" HAVE_ENDIAN_H) | ||||
check_include_files("sys/endian.h" HAVE_SYS_ENDIAN_H) | check_include_files("sys/endian.h" HAVE_SYS_ENDIAN_H) | ||||
if(HAVE_ENDIAN_H) | if(HAVE_ENDIAN_H) | ||||
▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines |