Skip to content

Commit 09329e7

Browse files
Igor Zinkovskyry
authored andcommitted
Add node.rc with a version resource
Fixes nodejs#2059
1 parent 78ca555 commit 09329e7

7 files changed

Lines changed: 63 additions & 0 deletions

File tree

node.gyp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
'src/platform_win32.cc',
156156
# headers to make for a more pleasant IDE experience
157157
'src/platform_win32.h',
158+
'tools/msvs/res/node.rc',
158159
],
159160
'defines': [
160161
'FD_SETSIZE=1024',

tools/msvs/res/node.rc

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Copyright Joyent, Inc. and other Node contributors.
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a
4+
// copy of this software and associated documentation files (the
5+
// "Software"), to deal in the Software without restriction, including
6+
// without limitation the rights to use, copy, modify, merge, publish,
7+
// distribute, sublicense, and/or sell copies of the Software, and to permit
8+
// persons to whom the Software is furnished to do so, subject to the
9+
// following conditions:
10+
//
11+
// The above copyright notice and this permission notice shall be included
12+
// in all copies or substantial portions of the Software.
13+
//
14+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
17+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
21+
22+
#include "winresrc.h"
23+
#include "node_version.h"
24+
25+
// Version resource
26+
VS_VERSION_INFO VERSIONINFO
27+
FILEVERSION NODE_MAJOR_VERSION,NODE_MINOR_VERSION,NODE_PATCH_VERSION,0
28+
PRODUCTVERSION NODE_MAJOR_VERSION,NODE_MINOR_VERSION,NODE_PATCH_VERSION,0
29+
FILEFLAGSMASK 0x3fL
30+
#ifdef _DEBUG
31+
FILEFLAGS VS_FF_DEBUG
32+
#else
33+
# ifdef NODE_VERSION_IS_RELEASE
34+
FILEFLAGS 0x0L
35+
# else
36+
FILEFLAGS VS_FF_PRERELEASE
37+
# endif
38+
#endif
39+
40+
FILEOS VOS_NT_WINDOWS32
41+
FILETYPE VFT_APP
42+
FILESUBTYPE 0x0L
43+
BEGIN
44+
BLOCK "StringFileInfo"
45+
BEGIN
46+
BLOCK "040904b0"
47+
BEGIN
48+
VALUE "CompanyName", "Joyent, Inc"
49+
VALUE "ProductName", "Node.js"
50+
VALUE "FileDescription", "Evented I/O for V8 JavaScript"
51+
VALUE "FileVersion", NODE_VERSION_STRING
52+
VALUE "ProductVersion", NODE_VERSION_STRING
53+
VALUE "OriginalFilename", "node.exe"
54+
VALUE "InternalName", "node"
55+
VALUE "LegalCopyright", "Copyright Joyent, Inc. and other Node contributors. MIT license."
56+
END
57+
END
58+
BLOCK "VarFileInfo"
59+
BEGIN
60+
VALUE "Translation", 0x409, 1200
61+
END
62+
END

0 commit comments

Comments
 (0)