Browse Source

gyp_addon: link with node.lib on Windows

Closes GH-2685
v0.7.4-release
Nathan Rajlich 13 years ago
committed by Bert Belder
parent
commit
5e1471c806
  1. 3
      tools/addon.gypi
  2. 1
      tools/gyp_addon

3
tools/addon.gypi

@ -12,6 +12,9 @@
'conditions': [
[ 'OS=="mac"', {
'libraries': [ '-undefined dynamic_lookup' ],
}],
[ 'OS=="win"', {
'libraries': [ '-l<(node_root_dir)/$(Configuration)/node.lib' ],
}]
]
}

1
tools/gyp_addon

@ -16,6 +16,7 @@ if __name__ == '__main__':
args.extend(['-I', common_gypi])
args.extend(['-Dlibrary=shared_library'])
args.extend(['-Dvisibility=default'])
args.extend(['-Dnode_root_dir=%s' % node_root])
args.extend(['--depth=.']);
gyp_args = list(args)

Loading…
Cancel
Save