diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-04-07 02:06:53 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-04-10 18:16:53 +0200 |
commit | a20c0d0f6792acf532309eee2e9f29120c801ee4 (patch) | |
tree | 0065544e660157fa0701977583b2876c81e833dd /bitcoin-qt.pro | |
parent | 138d08c5315c45b3dd08184c4eeb77ee3e47ef0a (diff) |
Build identification strings
All client version information is moved to version.cpp, which optionally
(-DHAVE_BUILD_INFO) includes build.h. build.h is automatically generated
on supporting platforms via contrib/genbuild.sh, using git describe.
The git export-subst attribute is used to put the commit id statically
in version.cpp inside generated archives, and this value is used if no
build.h is present.
The gitian descriptors are modified to use git archive instead of a
copy, to create the src/ directory in the output. This way,
src/src/version.cpp will contain the static commit id. To prevent
gitian builds from getting the "-dirty" marker in their git-describe
generated identifiers, no touching of files or running sed on the
makefile is performed anymore. This does not seem to influence
determinism.
Diffstat (limited to 'bitcoin-qt.pro')
-rw-r--r-- | bitcoin-qt.pro | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bitcoin-qt.pro b/bitcoin-qt.pro index 8b34d6c211..46caa22fb7 100644 --- a/bitcoin-qt.pro +++ b/bitcoin-qt.pro @@ -80,6 +80,15 @@ contains(BITCOIN_NEED_QT_PLUGINS, 1) { # do not enable this on windows, as it will result in a non-working executable! } +# regenerate src/build.h +!windows || contains(USE_BUILD_INFO, 1) { + genbuild.commands = share/genbuild.sh src/build.h + genbuild.target = src/build.h + "src/version.cpp".depends += src/build.h + QMAKE_EXTRA_TARGETS += genbuild + DEFINES += HAVE_BUILD_INFO +} + # disable quite some warnings because bitcoin core "sins" a lot QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wno-strict-aliasing -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses -Wno-unknown-pragmas -Wno-switch @@ -161,6 +170,7 @@ SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \ src/qt/aboutdialog.cpp \ src/qt/editaddressdialog.cpp \ src/qt/bitcoinaddressvalidator.cpp \ + src/version.cpp \ src/util.cpp \ src/netbase.cpp \ src/key.cpp \ |