libdc/src/libdivecomputer.rc.in
Jef Driesen e2a7d8bb45 Include the git commit SHA1 in the version number.
For bug reports it's very convenient to know the exact version. For
release builds, the standard version triplet (major.minor.micro) is
more than sufficient, but that's not the case for development builds.
Due to the post-release version increment, development builds already
have a version number that is distinct from previous releases, but
including the git commit SHA1 is even more accurate.

On Windows, the git commit SHA1 is also embedded in the version
resource.
2012-12-27 22:00:35 +01:00

46 lines
1.1 KiB
Plaintext

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <winver.h>
#ifdef HAVE_VERSION_SUFFIX
#include "revision.h"
#endif
VS_VERSION_INFO VERSIONINFO
FILEVERSION @DC_VERSION_MAJOR@,@DC_VERSION_MINOR@,@DC_VERSION_MICRO@,0
PRODUCTVERSION @DC_VERSION_MAJOR@,@DC_VERSION_MINOR@,@DC_VERSION_MICRO@,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#ifdef HAVE_VERSION_SUFFIX
FILEFLAGS VS_FF_PRERELEASE
#else
FILEFLAGS 0
#endif
FILEOS VOS__WINDOWS32
FILETYPE VFT_DLL
FILESUBTYPE 0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904B0"
BEGIN
VALUE "CompanyName", "The libdivecomputer developers"
VALUE "FileDescription", "A library for communication with various dive computers."
VALUE "FileVersion", "@VERSION@"
VALUE "InternalName", "libdivecomputer"
VALUE "LegalCopyright", "Copyright © 2010 Jef Driesen"
VALUE "OriginalFilename", "libdivecomputer.dll"
VALUE "ProductName", "libdivecomputer"
VALUE "ProductVersion", "@VERSION@"
#ifdef HAVE_VERSION_SUFFIX
VALUE "Comments", DC_VERSION_REVISION
#endif
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 1033, 1200
END
END