diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-04-10 13:31:12 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-04-10 13:31:12 -0700 |
commit | 702764f53b6aded29fc2e020078d192ec2b13d68 (patch) | |
tree | 3c532113e13e79b5a0677fd5f8080766ea96ae23 /bitcoin-qt.pro | |
parent | b56772e5df75832b84efacba60bbb3e7910fa1cf (diff) | |
parent | a20c0d0f6792acf532309eee2e9f29120c801ee4 (diff) |
Merge pull request #1054 from sipa/buildinfo
Build identification strings
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 \ |