Overhauled versioning information (bug 5453, r=dvander).
This commit is contained in:
@@ -61,8 +61,11 @@ if AMBuild.target['platform'] == 'linux':
|
||||
binary.AddSourceFiles('sourcepawn/compiler', files)
|
||||
|
||||
if AMBuild.target['platform'] == 'windows':
|
||||
env = {'RCDEFINES': ['BINARY_NAME="' + binary.binaryFile + '"']}
|
||||
env = {'RCDEFINES': ['BINARY_NAME="' + binary.binaryFile + '"', 'SM_GENERATED_BUILD']}
|
||||
binary.AddResourceFile('sourcepawn/compiler/libpawnc.rc', env)
|
||||
elif AMBuild.target['platform'] == 'darwin' and isinstance(binary, Cpp.LibraryBuilder):
|
||||
binary.compiler['POSTLINKFLAGS'].extend(['-compatibility_version', '1.0.0'])
|
||||
binary.compiler['POSTLINKFLAGS'].extend(['-current_version', AMBuild.cache['version']])
|
||||
|
||||
binary.SendToJob()
|
||||
|
||||
|
||||
@@ -19,8 +19,8 @@ AppIcon ICON "pawn.ico"
|
||||
#define VERSIONPRODUCTNAME "smcomp\0"
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION SM_FILE_VERSION
|
||||
PRODUCTVERSION SM_FILE_VERSION
|
||||
FILEVERSION SM_VERSION_FILE
|
||||
PRODUCTVERSION SM_VERSION_FILE
|
||||
FILEFLAGSMASK 0x0000003FL
|
||||
FILEFLAGS 0
|
||||
#if defined(WIN32)
|
||||
@@ -36,12 +36,12 @@ BEGIN
|
||||
BEGIN
|
||||
VALUE "CompanyName", "(C)1998-2006 ITB CompuPhase, AlliedModders LLC\0"
|
||||
VALUE "FileDescription", VERSIONDESCRIPTION
|
||||
VALUE "FileVersion", SM_FULL_VERSION
|
||||
VALUE "FileVersion", SM_VERSION_STRING
|
||||
VALUE "InternalName", VERSIONNAME
|
||||
VALUE "LegalCopyright", "(C)1998-2006 ITB CompuPhase, AlliedModders LLC\0"
|
||||
VALUE "OriginalFilename", VERSIONNAME
|
||||
VALUE "ProductName", VERSIONPRODUCTNAME
|
||||
VALUE "ProductVersion", SM_FULL_VERSION
|
||||
VALUE "ProductVersion", SM_VERSION_STRING
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
@@ -1233,7 +1233,7 @@ static void setconfig(char *root)
|
||||
|
||||
static void setcaption(void)
|
||||
{
|
||||
pc_printf("SourcePawn Compiler " SM_FULL_VERSION "\n");
|
||||
pc_printf("SourcePawn Compiler " SM_VERSION_STRING "\n");
|
||||
pc_printf("Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC\n\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user