Browse Source
- 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.aspxmiguelfreitas
Philip Kaufmann
12 years ago
6 changed files with 39 additions and 16 deletions
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
#ifndef CLIENTVERSION_H |
||||
#define CLIENTVERSION_H |
||||
|
||||
//
|
||||
// client versioning
|
||||
//
|
||||
|
||||
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
|
||||
#define CLIENT_VERSION_MAJOR 0 |
||||
#define CLIENT_VERSION_MINOR 7 |
||||
#define CLIENT_VERSION_REVISION 0 |
||||
#define CLIENT_VERSION_BUILD 2 |
||||
|
||||
// Converts the parameter X to a string after macro replacement on X has been performed.
|
||||
// Don't merge these into one macro!
|
||||
#define STRINGIZE(X) DO_STRINGIZE(X) |
||||
#define DO_STRINGIZE(X) #X |
||||
|
||||
#endif // CLIENTVERSION_H
|
Loading…
Reference in new issue