Skip to content

Commit 766347f

Browse files
committed
Generate node.lib from atom.lib and chromiumcontent.dll.lib.
1 parent a5bc2fd commit 766347f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

atom.gyp

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,5 +470,37 @@
470470
}, # target helper
471471
],
472472
}], # OS==Mac
473+
['OS=="win"', {
474+
'targets': [
475+
{
476+
'target_name': 'generate_node_lib',
477+
'type': 'none',
478+
'dependencies': [
479+
'<(project_name)',
480+
],
481+
'actions': [
482+
{
483+
'action_name': 'Create node.lib',
484+
'inputs': [
485+
'<(PRODUCT_DIR)/atom.lib',
486+
'<(libchromiumcontent_library_dir)/chromiumcontent.dll.lib',
487+
],
488+
'outputs': [
489+
'<(PRODUCT_DIR)/node.lib',
490+
],
491+
'action': [
492+
'lib.exe',
493+
'/nologo',
494+
# We can't use <(_outputs) here because that escapes the
495+
# backslash in the path, which confuses lib.exe.
496+
'/OUT:<(PRODUCT_DIR)\\node.lib',
497+
'<@(_inputs)',
498+
],
499+
'msvs_cygwin_shell': 0,
500+
},
501+
],
502+
}, # target generate_node_lib
503+
],
504+
}], # OS==win
473505
],
474506
}

0 commit comments

Comments
 (0)