-
Notifications
You must be signed in to change notification settings - Fork 12
/
binding.gyp
44 lines (44 loc) · 1.59 KB
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"targets": [
{
"target_name": "typescript-etw",
"sources": [
"src/crt.cc",
"src/main.cc",
"src/typescript_etw.cc",
"src/win_delay_load_hook.cc"
],
"win_delay_load_hook": "false", # We have a custom win_delay_load_hook, so don't include the default one
"msvs_settings": {
"VCCLCompilerTool": {
"BufferSecurityCheck": "false", # Disabling this since it depends on CRT
"DebugInformationFormat": 3, # Generate a PDB
"ExceptionHandling": 0, # No C++ exception handling
"RuntimeTypeInfo": "false" # No runtime types
},
"VCLinkerTool": {
"EntryPointSymbol": "DllMain", # /ENTRY:DllMain (see notes in main.cc)
"IgnoreAllDefaultLibraries": "true", # /NODEFAULTLIB (see notes in main.cc)
"ImageHasSafeExceptionHandlers": "false",
"Profile": "true"
}
},
# Re-enable these warnings that are disabled by default
# ('!' causes these to be removed from the already existing "msvs_disabled_warnings" list)
# These warnings are needed to comply with Microsoft security requirements
"msvs_disabled_warnings!": [4244, 4267]
},
{
"target_name": "copy_binary",
"type":"none",
"dependencies" : [ "typescript-etw" ],
"copies":
[
{
'destination': '<(module_root_dir)/bin/<(target_arch)',
'files': ['<(module_root_dir)/build/Release/typescript-etw.node']
}
]
}
]
}