Skip to content

Commit

Permalink
Added version resource to executable
Browse files Browse the repository at this point in the history
  • Loading branch information
pstavirs committed Apr 1, 2010
1 parent eb90ed6 commit 7ca3367
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
41 changes: 41 additions & 0 deletions bindconfig.rc
@@ -0,0 +1,41 @@
#define VER_PRODUCTVERSION 0,1,0,0
#define VER_PRODUCTVERSION_STR "0.1.0.0\0"

#define VER_PRERELEASE VS_FF_PRERELEASE

#include <windows.h>

#define VER_FILEVERSION VER_PRODUCTVERSION
#define VER_FILEVERSION_STR VER_PRODUCTVERSION_STR

#ifndef DEBUG
#define VER_DEBUG 0
#else
#define VER_DEBUG VS_FF_DEBUG
#endif

VS_VERSION_INFO VERSIONINFO
FILEVERSION VER_FILEVERSION
PRODUCTVERSION VER_PRODUCTVERSION
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS (VER_PRERELEASE|VER_DEBUG)
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE 0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", ""
VALUE "FileDescription", ""
VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", "bindconfig.exe"
VALUE "LegalCopyright", "(c) Srivats P. 2010 Licensed under GPL"
VALUE "OriginalFilename", "bindconfig.exe"
VALUE "ProductName", "bindconfig"
VALUE "ProductVersion", VER_PRODUCTVERSION_STR
END
END
END

1 change: 1 addition & 0 deletions exe/sources
Expand Up @@ -11,6 +11,7 @@ TARGETLIBS= $(SDK_LIB_PATH)\ole32.lib \
USE_MSVCRT=1
INCLUDES=..\lib
SOURCES=\
..\bindconfig.rc \
..\libbindconfig.cpp \
..\bindconfig.cpp

0 comments on commit 7ca3367

Please sign in to comment.