wine_common_ver.rc: Allow the file version number and string to be automatically constructed from major, minor, build and platform ID numbers.

This commit is contained in:
Rob Shearman 2008-09-05 22:07:32 +01:00 committed by Alexandre Julliard
parent a38d47f27f
commit 0b2e574273
1 changed files with 23 additions and 3 deletions

View File

@ -27,12 +27,32 @@ to make sure that programs, relying on the version numbers, will
never complain.
*/
#ifndef WINE_FILEVERSION
#define WINE_FILEVERSION 10,0,0,0
#ifndef WINE_FILEVERSION_MAJOR
#define WINE_FILEVERSION_MAJOR 10
#endif
#ifndef WINE_FILEVERSION_MINOR
#define WINE_FILEVERSION_MINOR 0
#endif
#ifndef WINE_FILEVERSION_BUILD
#define WINE_FILEVERSION_BUILD 0
#endif
#ifndef WINE_FILEVERSION_PLATFORMID
#define WINE_FILEVERSION_PLATFORMID 0
#endif
#ifndef WINE_FILEVERSION
#define WINE_FILEVERSION WINE_FILEVERSION_MAJOR,WINE_FILEVERSION_MINOR,\
WINE_FILEVERSION_BUILD,WINE_FILEVERSION_PLATFORMID
#endif
#define WINE_VER_STRINGIZE2(x) #x
#define WINE_VER_STRINGIZE(x) WINE_VER_STRINGIZE2(x)
#ifndef WINE_FILEVERSION_STR
#define WINE_FILEVERSION_STR "10.0"
#define WINE_FILEVERSION_STR WINE_VER_STRINGIZE(WINE_FILEVERSION_MAJOR.WINE_FILEVERSION_MINOR.WINE_FILEVERSION_BUILD.WINE_FILEVERSION_PLATFORMID)
#endif
#ifndef WINE_FILEDESCRIPTION_STR