diff options
author | Andras Timar <atimar@suse.com> | 2011-12-10 16:47:02 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2011-12-10 22:25:28 +0100 |
commit | 3fbedc3e8f65c91999dcee42daa8312e387dcf40 (patch) | |
tree | 77e876cf4bfbe75c9b0126f8590287e1909c5a1b /solenv/inc/version.hrc | |
parent | 8d0816f1cfc3929f261baa0840b9d16ed1b86576 (diff) |
enhance VersionInfo resource of Windows excutables
+ added ProductName (a required parameter), It is LibreOffice
+ CompanyName is configurable, it is $(OOO_VENDOR), that is set
--with-vendor configure switch. If not set, then CompanyName is
empty string which is fine, too.
+ Binary file version and FileVersion string show the same value,
and version number is sane: main version + subversion + microversion
+ build number, such as 3.5.0.0
+ LegalCopyright text is the same as in the About box, year range
can be set in minor.mk
- removed archaic and overcomplicated version number calculating macros
- removed version.lst, copied relevant content to minor.mk
- removed binary RCDATA resources, I don't think they were of any use
Diffstat (limited to 'solenv/inc/version.hrc')
-rw-r--r-- | solenv/inc/version.hrc | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/solenv/inc/version.hrc b/solenv/inc/version.hrc index 41afa557b6bd..882921810e45 100644 --- a/solenv/inc/version.hrc +++ b/solenv/inc/version.hrc @@ -26,33 +26,17 @@ *************************************************************************/ #include "versionlist.hrc" +#include <winver.h> -//#define VERVARIANT 0 // never define this one, will be provided by build environment (BUILD_ID) - -#define VER_FINAL 0 - -#ifndef VER_FIRSTYEAR -#define VER_FIRSTYEAR VER_YEAR +#ifndef PPSX +#define PPSX(s) #s +#endif +#ifndef PPS +#define PPS(s) PPSX(s) #endif -#include "verinfo.hrc" - -// ----------------------------------------------------------------------- -// language/character set specification table -// ----------------------------------------------------------------------- - -RCD_LANGUAGE rcdata -{ - "040904B0", // USA -> Unicode - "040904E4", // USA -> Windows, Multilingual - "04090000", // USA -> 7-Bit-ASCII - 0 // end of table -} +#define VER_LEVEL VERSION.SUBVERSION.MICROVERSION.VERVARIANT +#define VERC(a) Copyright \251 a by -// version binary entry -VS_VERSION_INFO rcdata -{ - 0xF0, "sw", 0x0F, VER_YEAR, VER_MONTH, VER_DAY, - VERSION, SUBVERSION, VERVARIANT, VER_COUNT -} +#define S_CRIGHT PPS(VERC(VER_YEARRANGE)) |