summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp34
1 files changed, 34 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index d1d7df176..c289ce881 100644
--- a/node.gyp
+++ b/node.gyp
@@ -16,6 +16,7 @@
'node_use_openssl%': 'true',
'node_use_systemtap%': 'false',
'node_shared_openssl%': 'false',
+ 'node_use_mdb%': 'false',
'library_files': [
'src/node.js',
'lib/_debugger.js',
@@ -205,6 +206,13 @@
}
] ]
} ],
+ [ 'node_use_mdb=="true"', {
+ 'dependencies': [ 'node_mdb' ],
+ 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
+ 'sources': [
+ 'src/node_mdb.cc',
+ ],
+ } ],
[ 'node_use_systemtap=="true"', {
'defines': [ 'HAVE_SYSTEMTAP=1', 'STAP_SDT_V1=1' ],
'sources': [
@@ -409,6 +417,32 @@
]
},
{
+ 'target_name': 'node_mdb',
+ 'type': 'none',
+ 'conditions': [
+ [ 'node_use_mdb=="true"',
+ {
+ 'dependencies': [ 'deps/mdb_v8/mdb_v8.gyp:mdb_v8' ],
+ 'actions': [
+ {
+ 'action_name': 'node_mdb',
+ 'inputs': [ '<(PRODUCT_DIR)/obj.target/deps/mdb_v8/mdb_v8.so' ],
+ 'outputs': [ '<(PRODUCT_DIR)/obj.target/node/src/node_mdb.o' ],
+ 'conditions': [
+ [ 'target_arch=="ia32"', {
+ 'action': [ 'elfwrap', '-32', '-o', '<@(_outputs)', '<@(_inputs)' ],
+ } ],
+ [ 'target_arch=="x64"', {
+ 'action': [ 'elfwrap', '-64', '-o', '<@(_outputs)', '<@(_inputs)' ],
+ } ],
+ ],
+ },
+ ],
+ },
+ ],
+ ],
+ },
+ {
'target_name': 'node_dtrace_provider',
'type': 'none',
'conditions': [