Windows: Version information for binaries

This commit is contained in:
Asanka Herath
2010-06-10 16:42:39 -04:00
parent d83611238a
commit cdcdc5cad5
44 changed files with 1154 additions and 42 deletions

View File

@@ -1,3 +1,51 @@
/***********************************************************************
* Copyright (c) 2010, Secure Endpoints Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
**********************************************************************/
/*
* This version script is not meant to be used as-is. It requires the
* following parameters that must be supplied using preprocessor
* macros:
*
* RC_FILE_TYPE (Set to either VFT_DLL or VFT_APP)
* RC_FILE_DESC_0409 (File description (English))
* RC_FILE_ORIG_0409 (Original file name (English))
*
* The following macros are optional:
*
* RC_FILE_SUBTYPE (File subtype. See MSDN.)
* RC_FILEVER_C (Comma separated file version, if different from
* product version)
* RC_FILE_COMMENT_0409 (File comment (English))
*/
#include<windows.h>
#include<config.h>
@@ -36,10 +84,6 @@ values as a substitute */
#define RC_FILE_VER_0409 RC_PRODUCT_VER_0409
#endif
#ifndef RC_FILE_SUBTYPE
#define RC_FILE_SUBTYPE VFT2_UNKNOWN
#endif
#ifndef RC_FILE_INTERNAL_0409
#define RC_FILE_INTERNAL_0409 RC_FILE_ORIG_0409
#endif
@@ -51,7 +95,9 @@ values as a substitute */
FILEFLAGS (P_DEBUG|P_PRE|P_PRIVATE|P_SPECIAL)
FILEOS VOS_NT
FILETYPE RC_FILE_TYPE
#ifdef RC_FILE_SUBTYPE
FILESUBTYPE RC_FILE_SUBTYPE
#endif
BEGIN
BLOCK "StringFileInfo"
BEGIN
@@ -65,9 +111,7 @@ values as a substitute */
#ifdef RC_FILE_COMMENT_0409
VALUE "Comments", RC_FILE_COMMENT_0409
#endif
#ifdef RC_FILE_DESC_0409
VALUE "FileDescription", RC_FILE_DESC_0409
#endif
VALUE "FileVersion", RC_FILE_VER_0409
VALUE "InternalName", RC_FILE_INTERNAL_0409
VALUE "OriginalFilename", RC_FILE_ORIG_0409