diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 9ec46ba1..00000000 --- a/.appveyor.yml +++ /dev/null @@ -1,82 +0,0 @@ -############################################################################### -# Copyright (c) 2014-2020 libbitcoin-blockchain developers (see COPYING). -# -# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY -# -############################################################################### -version: 4.0.0.{build}-{branch} - -image: Visual Studio 2013 - -clone_folder: c:\git\libbitcoin-blockchain -skip_tags: true - -environment: - matrix: - - configuration: StaticDebug - platform: x64 - BOOST_UNIT_TEST_OPTIONS: "--run_test=* --show_progress=no --detect_memory_leak=0 --report_level=no --build_info=yes" - - configuration: StaticRelease - platform: x64 - BOOST_UNIT_TEST_OPTIONS: "--run_test=* --show_progress=no --detect_memory_leak=0 --report_level=no --build_info=yes" - -matrix: - fast_finish: true - -init: - - git config --global core.autocrlf true - -before_build: - - ps: >- - $BASE_KEY = "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"; - $WOW_KEY = "HKLM:SOFTWARE\wow6432node\Microsoft\Windows\CurrentVersion\Uninstall"; - $CTP_URL = "https://download.microsoft.com/download/3/C/2/3C271B79-6354-4B66-9014-C6CEBC14C5C4/vc_CompilerCTP.Nov2013.exe"; - $CTP_FILENAME = "vc_CompilerCTP.Nov2013.exe"; - $INSTALL_LOG_PATH = "c:\users\appveyor\install-log.txt"; - function GetUninstallString($product_name) { - $x64_items = @(Get-ChildItem $BASE_KEY); - ($x64_items + @(Get-ChildItem $WOW_KEY) ` - | ForEach-Object { Get-ItemProperty Microsoft.PowerShell.Core\Registry::$_ } ` - | Where-Object { $_.DisplayName -and $_.DisplayName.Contains($product_name) } ` - | Select UninstallString).UninstallString - } - Write-Host "Uninstalling Microsoft Visual C++ 2013 Redistributable (x64) - 12.0.21005..." -ForegroundColor Yellow; - "$(GetUninstallString "Microsoft Visual C++ 2013 Redistributable (x64) - 12.0.21005") /quiet" | out-file "$env:TEMP\uninstall.cmd" -Encoding ASCII; - & $env:temp\uninstall.cmd; - Write-Host "Uninstalling Microsoft Visual C++ 2013 Redistributable (x64) - 12.0.30501..." -ForegroundColor Yellow; - "$(GetUninstallString "Microsoft Visual C++ 2013 Redistributable (x64) - 12.0.30501") /quiet" | out-file "$env:TEMP\uninstall.cmd" -Encoding ASCII; - & $env:temp\uninstall.cmd; - Write-Host "Uninstalling Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.30501..." -Foreground Yellow; - "$(GetUninstallString "Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.30501") /quiet" | out-file "$env:TEMP\uninstall.cmd" -Encoding ASCII; - & $env:temp\uninstall.cmd; - Write-Host "Downloading Visual C++ Compiler November 2013 CTP..." -ForegroundColor Yellow; - $CTP_INSTALLER_PATH = "$($env:TEMP)\$CTP_FILENAME"; - (New-Object Net.WebClient).DownloadFile($CTP_URL, $CTP_INSTALLER_PATH); - Write-Host "Installing CTP Compiler..." -ForegroundColor Yellow; - cmd /c start /wait $CTP_INSTALLER_PATH /install /quiet /norestart /log $INSTALL_LOG_PATH; - Write-Host "CTP Compiler Installation Complete." -ForegroundColor Green; - -build_script: - - c:\git\libbitcoin-blockchain\build.cmd c:\git %PLATFORM% %CONFIGURATION% vs2013 - - cd /d %APPVEYOR_BUILD_FOLDER% - -test_script: - - ps: >- - Write-Host "Locating test executables..." -ForegroundColor Yellow; - $BC_TEST_EXES = @(Get-ChildItem -Path "$env:APPVEYOR_BUILD_FOLDER\bin" -recurse | Where-Object { $_.Name -eq "libbitcoin-blockchain-test.exe" }); - If ($BC_TEST_EXES.Count -ne 1) { - Write-Host "Failure, invalid count of test executables." -ForegroundColor Red; - exit 1; - } - Write-Host "Found single test executable: " $BC_TEST_EXES.FullName -ForegroundColor Green; - $BC_TEST_SINGLETON = $BC_TEST_EXES.FullName; - Write-Host "Executing $BC_TEST_SINGLETON $env:BOOST_UNIT_TEST_OPTIONS" -ForegroundColor Yellow; - try { - Invoke-Expression "$BC_TEST_SINGLETON $env:BOOST_UNIT_TEST_OPTIONS" - } - catch { - $ERR = $_; - Write-Host "Test execution failure: " $ERR -ForegroundColor Red; - exit $ERR; - } - Write-Host "Test execution complete." -ForegroundColor Green; diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4276e54a..4a73574c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2014-2020 libbitcoin-blockchain developers (see COPYING). +# Copyright (c) 2014-2023 libbitcoin-blockchain developers (see COPYING). # # GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY # @@ -28,6 +28,7 @@ jobs: icu: "" cc: "clang-14" flags: "-Os -fPIE" + options: "--enable-isystem" packager: "apt" packages: "" @@ -42,6 +43,7 @@ jobs: icu: "--build-icu --with-icu" cc: "clang-14" flags: "-Os -fPIE" + options: "--enable-isystem" packager: "apt" packages: "" @@ -56,6 +58,7 @@ jobs: icu: "" cc: "gcc-11" flags: "-Os -fPIE" + options: "--enable-isystem" packager: "apt" packages: "" @@ -70,6 +73,7 @@ jobs: icu: "--build-icu --with-icu" cc: "gcc-11" flags: "-Og -g --coverage -fPIE" + options: "--enable-isystem" packager: "apt" packages: "lcov" @@ -84,6 +88,7 @@ jobs: icu: "--build-icu --with-icu" cc: "clang-14" flags: "-Os -fPIE" + options: "--enable-isystem" packager: "brew" packages: "" @@ -98,6 +103,7 @@ jobs: icu: "--build-icu --with-icu" cc: "clang-14" flags: "-Os -fvisibility=hidden -fPIE" + options: "--enable-isystem" packager: "brew" packages: "" @@ -158,8 +164,7 @@ jobs: - name: Execute install.sh run: > ./install.sh - --enable-isystem - --build-dir=$LIBBITCOIN_SRC_PATH + --build-dir=$LIBBITCOIN_SRC_PATH ${{ matrix.options }} --prefix=$LIBBITCOIN_SRC_PATH/prefix ${{ env.LINKAGE }} ${{ env.ASSERT_NDEBUG }} @@ -247,6 +252,7 @@ jobs: icu: "" cc: "clang-14" flags: "-Os -fPIE" + options: "" packager: "apt" packages: "" @@ -261,6 +267,7 @@ jobs: icu: "--build-icu --with-icu" cc: "clang-14" flags: "-Os -fPIE" + options: "" packager: "apt" packages: "" @@ -275,6 +282,7 @@ jobs: icu: "" cc: "gcc-11" flags: "-Os -fPIE" + options: "" packager: "apt" packages: "" @@ -289,6 +297,7 @@ jobs: icu: "--build-icu --with-icu" cc: "gcc-11" flags: "-Og -fPIE" + options: "" packager: "apt" packages: "" @@ -303,6 +312,7 @@ jobs: icu: "--build-icu --with-icu" cc: "clang-14" flags: "-Os -fPIE" + options: "" packager: "brew" packages: "" @@ -317,6 +327,7 @@ jobs: icu: "--build-icu --with-icu" cc: "clang-14" flags: "-Os -fvisibility=hidden -fPIE" + options: "" packager: "brew" packages: "" @@ -380,7 +391,7 @@ jobs: - name: Execute install-cmake.sh run: > ./install-cmake.sh - --build-dir=$LIBBITCOIN_SRC_PATH + --build-dir=$LIBBITCOIN_SRC_PATH ${{ matrix.options }} --prefix=$LIBBITCOIN_SRC_PATH/prefix ${{ env.LINKAGE }} ${{ env.ASSERT_NDEBUG }} @@ -479,6 +490,7 @@ jobs: icu: "" cc: "clang-14" flags: "-Os -fPIE" + options: "" packager: "apt" packages: "" @@ -494,6 +506,7 @@ jobs: icu: "--build-icu --with-icu" cc: "clang-14" flags: "-Os -fPIE" + options: "" packager: "apt" packages: "" @@ -509,6 +522,7 @@ jobs: icu: "" cc: "gcc-11" flags: "-Os -fPIE" + options: "" packager: "apt" packages: "" @@ -572,7 +586,7 @@ jobs: - name: Execute install-cmakepresets.sh run: > ./install-cmakepresets.sh - --build-dir=$LIBBITCOIN_SRC_PATH + --build-dir=$LIBBITCOIN_SRC_PATH ${{ matrix.options }} --prefix=$LIBBITCOIN_SRC_PATH/prefix/${{ matrix.preset }} --preset=${{ matrix.preset }} ${{ env.LINKAGE }} @@ -676,6 +690,8 @@ jobs: steps: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.1 + with: + msbuild-architecture: x64 - name: Checkout repository uses: actions/checkout@v3 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6a29cc72..00000000 --- a/.travis.yml +++ /dev/null @@ -1,102 +0,0 @@ -############################################################################### -# Copyright (c) 2014-2020 libbitcoin-blockchain developers (see COPYING). -# -# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY -# -############################################################################### -sudo: - - false - -language: - - cpp - -addons: - apt: - sources: - - boost-latest - - ubuntu-toolchain-r-test - -matrix: - include: - - os: osx - osx_image: xcode12.2 - compiler: clang - env: LINK=dynamic - - os: osx - compiler: clang - env: LINK=static - - os: linux - compiler: clang - env: LINK=dynamic - - os: linux - compiler: clang - env: LINK=static - addons: - apt: - sources: - - sourceline: 'ppa:h-rayflood/llvm' - packages: - - clang-5.0 - - os: linux - compiler: gcc - env: LINK=dynamic - addons: - apt: - packages: - - g++-4.8 - - os: linux - compiler: gcc - env: LINK=static - fast_finish: - - true - -before_install: - - # Set aliases for readability. - - if [[ $CC == gcc ]]; then GCC=true; fi - - if [[ $CC == clang ]]; then CLANG=true; fi - - if [[ $LINK == static ]]; then STATIC=true; fi - - if [[ $LINK == dynamic ]]; then DYNAMIC=true; fi - - if [[ $TRAVIS_OS_NAME == osx ]]; then OSX=true; fi - - if [[ $TRAVIS_OS_NAME == linux ]]; then LINUX=true; fi - -install: - - # Export CC/CXX to control compiler/version. - - if [[ $OSX && $CLANG && $DYNAMIC ]]; then export CC=clang; export CXX=clang++; fi - - if [[ $OSX && $CLANG && $STATIC ]]; then export CC=clang; export CXX=clang++; fi - - if [[ $LINUX && $CLANG && $DYNAMIC ]]; then export CC=clang; export CXX=clang++; fi - - if [[ $LINUX && $CLANG && $STATIC ]]; then export CC=clang-5.0; export CXX=clang++-5.0; fi - - if [[ $LINUX && $GCC && $DYNAMIC ]]; then export CC=gcc-4.8; export CXX=g++-4.8; fi - - if [[ $LINUX && $GCC && $STATIC ]]; then export CC=gcc; export CXX=g++; fi - - # Download and install packages. - -script: - - # Download and build libbitcoin-blockchain and all dependencies. - - if [[ $OSX && $CLANG && $DYNAMIC ]]; then CC=$CC CXX=$CXX ./install.sh --enable-isystem --disable-static; fi - - if [[ $OSX && $CLANG && $STATIC ]]; then CC=$CC CXX=$CXX ./install.sh --enable-isystem --without-consensus --disable-shared --build-boost --prefix=$TRAVIS_BUILD_DIR/my-prefix; fi - - if [[ $LINUX && $CLANG && $DYNAMIC ]]; then CC=$CC CXX=$CXX ./install.sh --enable-isystem --build-boost --disable-ndebug --disable-static --prefix=$TRAVIS_BUILD_DIR/my-prefix CFLAGS='-Os' CXXFLAGS='-Os'; fi - - if [[ $LINUX && $CLANG && $STATIC ]]; then CC=$CC CXX=$CXX ./install.sh --enable-isystem --disable-shared --build-boost --prefix=$TRAVIS_BUILD_DIR/my-prefix CFLAGS='-Os' CXXFLAGS='-Os'; fi - - if [[ $LINUX && $GCC && $DYNAMIC ]]; then CC=$CC CXX=$CXX ./install.sh --enable-isystem --without-consensus --disable-static --build-boost --prefix=$TRAVIS_BUILD_DIR/my-prefix CFLAGS='-Os -s' CXXFLAGS='-Os -s'; fi - - if [[ $LINUX && $GCC && $STATIC ]]; then CC=$CC CXX=$CXX ./install.sh --enable-isystem --build-boost --disable-shared --build-dir=my-build --prefix=$TRAVIS_BUILD_DIR/my-prefix CFLAGS='-Og -g --coverage' CXXFLAGS='-Og -g --coverage'; fi - -after_success: - - # Download and unpack lcov. - - if [[ $LINUX && $GCC && $STATIC ]]; then wget https://github.com/linux-test-project/lcov/releases/download/v1.12/lcov-1.12.tar.gz; fi - - if [[ $LINUX && $GCC && $STATIC ]]; then tar xzf lcov-1.12.tar.gz; fi - - if [[ $LINUX && $GCC && $STATIC ]]; then cd lcov-1.12; PREFIX="$TRAVIS_BUILD_DIR/my-prefix" make install; cd ..; fi - - # Install coveralls. - - if [[ $LINUX && $GCC && $STATIC ]]; then gem install coveralls-lcov; fi - - # Capture coverage info, filter out system and test code, and debug before upload. - - if [[ $LINUX && $GCC && $STATIC ]]; then $TRAVIS_BUILD_DIR/my-prefix/usr/bin/lcov --directory . --capture --output-file coverage.info; fi - - if [[ $LINUX && $GCC && $STATIC ]]; then $TRAVIS_BUILD_DIR/my-prefix/usr/bin/lcov --remove coverage.info "/usr/*" "$TRAVIS_BUILD_DIR/my-prefix/*" "my-build/*" "test/*" "tools/initchain/*" --output-file coverage.info; fi - - if [[ $LINUX && $GCC && $STATIC ]]; then $TRAVIS_BUILD_DIR/my-prefix/usr/bin/lcov --list coverage.info; fi - - # Upload coverage info to coveralls service (--repo-token ). - - if [[ $LINUX && $GCC && $STATIC ]]; then coveralls-lcov coverage.info; fi - diff --git a/Makefile.am b/Makefile.am index e140aac2..4eb4d25a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2014-2020 libbitcoin-blockchain developers (see COPYING). +# Copyright (c) 2014-2023 libbitcoin-blockchain developers (see COPYING). # # GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY # diff --git a/autogen.sh b/autogen.sh index 4069adc0..6532123d 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,6 +1,6 @@ #!/bin/sh ############################################################################### -# Copyright (c) 2014-2020 libbitcoin-blockchain developers (see COPYING). +# Copyright (c) 2014-2023 libbitcoin-blockchain developers (see COPYING). # # GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY # diff --git a/build.cmd b/build.cmd index 86b0d581..79054ed8 100644 --- a/build.cmd +++ b/build.cmd @@ -1,5 +1,5 @@ REM ########################################################################### -REM # Copyright (c) 2014-2020 libbitcoin-blockchain developers (see COPYING). +REM # Copyright (c) 2014-2023 libbitcoin-blockchain developers (see COPYING). REM # REM # GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY REM # diff --git a/builds/cmake/CMakeLists.txt b/builds/cmake/CMakeLists.txt index 3efa9bce..7566a9f3 100644 --- a/builds/cmake/CMakeLists.txt +++ b/builds/cmake/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2014-2020 libbitcoin-blockchain developers (see COPYING). +# Copyright (c) 2014-2023 libbitcoin-blockchain developers (see COPYING). # # GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY # diff --git a/builds/cmake/modules/FindBitcoin-Consensus.cmake b/builds/cmake/modules/FindBitcoin-Consensus.cmake index 8867ae8d..ed50996f 100644 --- a/builds/cmake/modules/FindBitcoin-Consensus.cmake +++ b/builds/cmake/modules/FindBitcoin-Consensus.cmake @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2014-2020 libbitcoin-blockchain developers (see COPYING). +# Copyright (c) 2014-2023 libbitcoin-blockchain developers (see COPYING). # # GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY # diff --git a/builds/cmake/modules/FindBitcoin-Database.cmake b/builds/cmake/modules/FindBitcoin-Database.cmake index 5315b2bd..faf75c28 100644 --- a/builds/cmake/modules/FindBitcoin-Database.cmake +++ b/builds/cmake/modules/FindBitcoin-Database.cmake @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2014-2020 libbitcoin-blockchain developers (see COPYING). +# Copyright (c) 2014-2023 libbitcoin-blockchain developers (see COPYING). # # GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY # diff --git a/builds/msvc/debug.natvis b/builds/msvc/debug.natvis index adf68148..c8739e49 100644 --- a/builds/msvc/debug.natvis +++ b/builds/msvc/debug.natvis @@ -1,6 +1,6 @@