HomePhabricator

Separate version info into bitcoin-version.h from bitcoin-config.h

Description

Separate version info into bitcoin-version.h from bitcoin-config.h

Summary:
This would avoid rebuilding the whole source tree at each version
change.

Test Plan:

./autogen.sh
mkdir build && cd build

../configure
make check

rm -rf *
CONFIG_SITE=../depends/i686-w64-mingw32/share/config.site ../configure \
--with-seeder=false
make

rm -rf *
CONFIG_SITE=../depends/x86_64-w64-mingw32/share/config.site \
../configure --with-seeder=false
make

cd .. && mkdir buildcmake && cd buildcmake

cmake -GNinja ..
ninja check

rm -rf *
cmake -GNinja .. -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Win32.cmake \
-DBUILD_BITCOIN_SEEDER=OFF
ninja

rm -rf *
cmake -GNinja .. -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Win64.cmake \
-DBUILD_BITCOIN_SEEDER=OFF
ninja

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D3056

Details

Provenance
FabienAuthored on May 16 2019, 12:53
FabienPushed on May 17 2019, 19:50
Reviewer
Restricted Project
Differential Revision
D3056: Separate version info into bitcoin-version.h from bitcoin-config.h
Parents
rABCfb6518323802: [tests] Remove unused variables
Branches
Unknown
Tags
Unknown