From 72f4a830d7c387d9d8f47ff1b5ccf98244032733 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Mon, 8 Apr 2019 19:41:52 +0100 Subject: build: tidy up additional libraries on Windows The report functionality that depended on `Dbghelp.lib` and `Psapi.lib` are actually in `src/debug_utils.cc` and are not dependent on the report functionality being enabled. PR-URL: https://github.com/nodejs/node/pull/27138 Reviewed-By: Anna Henningsen Reviewed-By: Refael Ackermann Reviewed-By: Colin Ihrig --- node.gyp | 38 +++++++------------------------------- 1 file changed, 7 insertions(+), 31 deletions(-) (limited to 'node.gyp') diff --git a/node.gyp b/node.gyp index 676be6e038..2ad76020f5 100644 --- a/node.gyp +++ b/node.gyp @@ -345,16 +345,7 @@ ], 'conditions': [ ['OS=="win"', { - 'libraries': [ - 'dbghelp.lib', - 'PsApi.lib', - 'Ws2_32.lib', - ], - 'dll_files': [ - 'dbghelp.dll', - 'PsApi.dll', - 'Ws2_32.dll', - ], + 'libraries': [ 'Ws2_32' ], }], ], }], @@ -623,7 +614,10 @@ ], }], ], - 'libraries': [ '-lpsapi.lib' ] + 'libraries': [ + 'Dbghelp', + 'Psapi', + ], }], [ 'node_use_etw=="true"', { 'defines': [ 'HAVE_ETW=1' ], @@ -718,16 +712,7 @@ ], 'conditions': [ ['OS=="win"', { - 'libraries': [ - 'dbghelp.lib', - 'PsApi.lib', - 'Ws2_32.lib', - ], - 'dll_files': [ - 'dbghelp.dll', - 'PsApi.dll', - 'Ws2_32.dll', - ], + 'libraries': [ 'Ws2_32' ], }], ], }], @@ -1083,16 +1068,7 @@ ], 'conditions': [ ['OS=="win"', { - 'libraries': [ - 'dbghelp.lib', - 'PsApi.lib', - 'Ws2_32.lib', - ], - 'dll_files': [ - 'dbghelp.dll', - 'PsApi.dll', - 'Ws2_32.dll', - ], + 'libraries': [ 'Ws2_32' ], }], ], }], -- cgit v1.2.3