Bitcoin-Qt (Windows only): add version info to Resource File

- add version information to bitcoin-qt.rc, which is displayed on Windows, when looking in the executable properties and selecting "Details"
- introduce a new clientversion.h (used in bitcoin-qt.rc to generate
  version information), which takes only the version defines from
  version.h and is included in it (to allow usage with the windres rc-file
  compiler)
- move #define STRINGIFY(s) #s into clientversion.h as that is used in
  bitcoin-qt.rc and rename to DO_STRINGIZE(X)
- add #define STRINGIZE(X) DO_STRINGIZE(X), which is needed to convert the
  version defines into a version string in the rc-file
- this ensures we only need to update 1 file and have bitcoin-qt.exe
  version information

- for RC-file documentation see:
  http://msdn.microsoft.com/en-us/library/windows/desktop/aa381058%28v=vs.85%29.aspx
This commit is contained in:
Philip Kaufmann committed 2012-09-07 16:08:18 +02:00
1 parent b9a4aaad1e
commit f875921176
6 files changed
+39 -16

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
* update (commit) version in sources
bitcoin-qt.pro
src/version.h
src/clientversion.h
share/setup.nsi
doc/README*