diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2013-07-17 20:46:25 +0000 |
---|---|---|
committer | Timothy J Fontaine <tjfontaine@gmail.com> | 2013-08-05 14:19:29 -0700 |
commit | e851fef60f5368927ea0a6b7bfc984ef18e93d6f (patch) | |
tree | bcb994939157cc8eadddf841882755697e6f327f /node.gyp | |
parent | f4b1e00071ce8f41acb75842f2df4a845f6ef531 (diff) | |
download | nodejs-e851fef60f5368927ea0a6b7bfc984ef18e93d6f.tar.gz nodejs-e851fef60f5368927ea0a6b7bfc984ef18e93d6f.tar.bz2 nodejs-e851fef60f5368927ea0a6b7bfc984ef18e93d6f.zip |
build: embed the mdb_v8.so into the binary
This builds and includes the mdb_v8.so in the binary of node so mdb
can be sure to always use the latest version
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -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': [ |