mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-3993 Windows File Version stamping
This commit is contained in:
parent
27de917081
commit
724ce70012
@ -311,14 +311,14 @@ env.Default(env.Install('#/', mongod))
|
||||
# tools
|
||||
rewrittenTools = [ "mongodump", "mongorestore", "mongoexport", "mongoimport", "mongostat", "mongotop", "bsondump", "mongofiles", "mongooplog" ]
|
||||
|
||||
# mongobridge and mongoperf
|
||||
# mongoperf
|
||||
env.Install(
|
||||
'#/',
|
||||
[
|
||||
env.Program("mongoperf",
|
||||
[
|
||||
"client/examples/mongoperf.cpp",
|
||||
],
|
||||
] + env.WindowsResourceFile("client/examples/mongoperf.rc"),
|
||||
LIBDEPS=[
|
||||
"db/serveronly",
|
||||
]),
|
||||
@ -334,7 +334,7 @@ env.Install(
|
||||
's/mongos_options_init.cpp',
|
||||
's/server.cpp',
|
||||
's/service_entry_point_mongos.cpp',
|
||||
],
|
||||
] + env.WindowsResourceFile("s/server.rc"),
|
||||
LIBDEPS=[
|
||||
'db/conn_pool_options',
|
||||
'db/commands/core',
|
||||
@ -405,7 +405,7 @@ if not has_option('noshell') and usemozjs:
|
||||
|
||||
mongo_shell = shellEnv.Program(
|
||||
"mongo",
|
||||
"shell/dbshell.cpp",
|
||||
["shell/dbshell.cpp"] + env.WindowsResourceFile("shell/shell.rc"),
|
||||
LIBDEPS=["$BUILD_DIR/third_party/shim_pcrecpp",
|
||||
"shell_core",
|
||||
"db/server_options_core",
|
||||
|
54
src/mongo/client/examples/mongoperf.rc
Normal file
54
src/mongo/client/examples/mongoperf.rc
Normal file
@ -0,0 +1,54 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include <winres.h>
|
||||
|
||||
#include "mongo/util/resource_constants.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
#define IDI_ICON2 102
|
||||
|
||||
IDI_ICON2 ICON "mongo/db/mongo.ico"
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
|
||||
// Fields are documented here:
|
||||
// https://msdn.microsoft.com/en-us/library/windows/desktop/ms646987(v=vs.85).aspx
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION MONGO_VERSION_MAJOR,MONGO_VERSION_MINOR,MONGO_VERSION_PATCH,0
|
||||
PRODUCTVERSION MONGO_VERSION_MAJOR,MONGO_VERSION_MINOR,MONGO_VERSION_PATCH,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x40004L
|
||||
FILETYPE 0x1L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "MongoDB, Inc"
|
||||
VALUE "FileDescription", "MongoDB Performance Testing Tool"
|
||||
VALUE "FileVersion", MONGO_FILE_VERSION_STR
|
||||
VALUE "InternalName", "mongoperf.exe"
|
||||
VALUE "OriginalFilename", "mongoperf.exe"
|
||||
VALUE "ProductName", MONGO_PRODUCT_NAME_STR
|
||||
VALUE "ProductVersion", MONGO_PRODUCT_VERSION_STR
|
||||
VALUE "Comment", MONGO_VERSION_COMMENT_STR
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
54
src/mongo/s/server.rc
Normal file
54
src/mongo/s/server.rc
Normal file
@ -0,0 +1,54 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include <winres.h>
|
||||
|
||||
#include "mongo/util/resource_constants.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
#define IDI_ICON2 102
|
||||
|
||||
IDI_ICON2 ICON "mongo/db/mongo.ico"
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
|
||||
// Fields are documented here:
|
||||
// https://msdn.microsoft.com/en-us/library/windows/desktop/ms646987(v=vs.85).aspx
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION MONGO_VERSION_MAJOR,MONGO_VERSION_MINOR,MONGO_VERSION_PATCH,0
|
||||
PRODUCTVERSION MONGO_VERSION_MAJOR,MONGO_VERSION_MINOR,MONGO_VERSION_PATCH,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x40004L
|
||||
FILETYPE 0x1L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "MongoDB, Inc"
|
||||
VALUE "FileDescription", "MongoDB Shard Server"
|
||||
VALUE "FileVersion", MONGO_FILE_VERSION_STR
|
||||
VALUE "InternalName", "mongos.exe"
|
||||
VALUE "OriginalFilename", "mongos.exe"
|
||||
VALUE "ProductName", MONGO_PRODUCT_NAME_STR
|
||||
VALUE "ProductVersion", MONGO_PRODUCT_VERSION_STR
|
||||
VALUE "Comment", MONGO_VERSION_COMMENT_STR
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
54
src/mongo/shell/shell.rc
Normal file
54
src/mongo/shell/shell.rc
Normal file
@ -0,0 +1,54 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include <winres.h>
|
||||
|
||||
#include "mongo/util/resource_constants.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
#define IDI_ICON2 102
|
||||
|
||||
IDI_ICON2 ICON "mongo/db/mongo.ico"
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
|
||||
// Fields are documented here:
|
||||
// https://msdn.microsoft.com/en-us/library/windows/desktop/ms646987(v=vs.85).aspx
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION MONGO_VERSION_MAJOR,MONGO_VERSION_MINOR,MONGO_VERSION_PATCH,0
|
||||
PRODUCTVERSION MONGO_VERSION_MAJOR,MONGO_VERSION_MINOR,MONGO_VERSION_PATCH,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x40004L
|
||||
FILETYPE 0x1L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "MongoDB, Inc"
|
||||
VALUE "FileDescription", "MongoDB Shell"
|
||||
VALUE "FileVersion", MONGO_FILE_VERSION_STR
|
||||
VALUE "InternalName", "mongo.exe"
|
||||
VALUE "OriginalFilename", "mongo.exe"
|
||||
VALUE "ProductName", MONGO_PRODUCT_NAME_STR
|
||||
VALUE "ProductVersion", MONGO_PRODUCT_VERSION_STR
|
||||
VALUE "Comment", MONGO_VERSION_COMMENT_STR
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
Loading…
Reference in New Issue
Block a user