summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp42
1 files changed, 41 insertions, 1 deletions
diff --git a/node.gyp b/node.gyp
index 7f534d8208..8019a16599 100644
--- a/node.gyp
+++ b/node.gyp
@@ -1156,7 +1156,47 @@
}],
],
}, # mkcodecache
- ], # end targets
+ {
+ 'target_name': 'node_mksnapshot',
+ 'type': 'executable',
+
+ 'dependencies': [
+ '<(node_lib_target_name)',
+ 'deps/histogram/histogram.gyp:histogram',
+ ],
+
+ 'includes': [
+ 'node.gypi'
+ ],
+
+ 'include_dirs': [
+ 'src',
+ 'tools/msvs/genfiles',
+ 'deps/v8/include',
+ 'deps/cares/include',
+ 'deps/uv/include',
+ ],
+
+ 'defines': [ 'NODE_WANT_INTERNALS=1' ],
+
+ 'sources': [
+ 'src/node_code_cache_stub.cc',
+ 'tools/snapshot/node_mksnapshot.cc',
+ 'tools/snapshot/snapshot_builder.cc',
+ 'tools/snapshot/snapshot_builder.h',
+ ],
+
+ 'conditions': [
+ [ 'node_report=="true"', {
+ 'conditions': [
+ ['OS=="win"', {
+ 'libraries': [ 'Ws2_32' ],
+ }],
+ ],
+ }],
+ ],
+ }, # node_mksnapshot
+ ], # end targets
'conditions': [
['OS=="aix" and node_shared=="true"', {