Commit 8632af3 ("tools: update gyp to r1601") broke the Windows build.
Older versions of GYP link to kernel32.lib, user32.lib, etc. but that
was changed in r1584. See https://codereview.chromium.org/
12256017
Fix the build by explicitly linking to the required libraries.
'defines': [
'MK1MF_BUILD',
'WIN32_LEAN_AND_MEAN'
- ]
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '-lgdi32.lib',
+ '-luser32.lib',
+ ]
+ }
}, {
'defines': [
# ENGINESDIR must be defined if OPENSSLDIR is.