2011-08-04 02:01:30 +02:00
|
|
|
{
|
2011-08-04 08:36:27 +02:00
|
|
|
'variables': {
|
2012-01-07 01:20:45 +01:00
|
|
|
'v8_use_snapshot%': 'true',
|
2011-10-07 10:08:53 +02:00
|
|
|
# Turn off -Werror in V8
|
|
|
|
# See http://codereview.chromium.org/8159015
|
|
|
|
'werror': '',
|
2012-03-28 19:26:10 +02:00
|
|
|
'node_use_dtrace%': 'false',
|
2012-06-12 01:23:17 +02:00
|
|
|
'node_use_etw%': 'false',
|
2012-11-21 00:27:22 +01:00
|
|
|
'node_use_perfctr%': 'false',
|
2012-12-21 09:06:21 +01:00
|
|
|
'node_has_winsdk%': 'false',
|
2012-02-23 23:32:24 +01:00
|
|
|
'node_shared_v8%': 'false',
|
2012-02-27 00:02:21 +01:00
|
|
|
'node_shared_zlib%': 'false',
|
2012-10-23 15:01:26 +02:00
|
|
|
'node_shared_http_parser%': 'false',
|
2012-10-23 16:27:19 +02:00
|
|
|
'node_shared_cares%': 'false',
|
2012-10-24 01:54:22 +02:00
|
|
|
'node_shared_libuv%': 'false',
|
2011-09-05 01:01:53 +02:00
|
|
|
'node_use_openssl%': 'true',
|
2012-10-10 00:09:07 +02:00
|
|
|
'node_use_systemtap%': 'false',
|
2012-06-20 22:31:49 +02:00
|
|
|
'node_shared_openssl%': 'false',
|
2011-09-05 01:01:53 +02:00
|
|
|
'library_files': [
|
|
|
|
'src/node.js',
|
|
|
|
'lib/_debugger.js',
|
|
|
|
'lib/_linklist.js',
|
|
|
|
'lib/assert.js',
|
|
|
|
'lib/buffer.js',
|
2011-10-11 22:16:33 +02:00
|
|
|
'lib/child_process.js',
|
2011-09-05 01:01:53 +02:00
|
|
|
'lib/console.js',
|
|
|
|
'lib/constants.js',
|
|
|
|
'lib/crypto.js',
|
2011-10-12 23:51:25 +02:00
|
|
|
'lib/cluster.js',
|
2011-10-11 22:26:41 +02:00
|
|
|
'lib/dgram.js',
|
2011-10-11 22:21:30 +02:00
|
|
|
'lib/dns.js',
|
2012-04-07 01:26:18 +02:00
|
|
|
'lib/domain.js',
|
2011-09-05 01:01:53 +02:00
|
|
|
'lib/events.js',
|
|
|
|
'lib/freelist.js',
|
|
|
|
'lib/fs.js',
|
|
|
|
'lib/http.js',
|
|
|
|
'lib/https.js',
|
|
|
|
'lib/module.js',
|
2011-10-11 22:07:14 +02:00
|
|
|
'lib/net.js',
|
2011-09-05 01:01:53 +02:00
|
|
|
'lib/os.js',
|
|
|
|
'lib/path.js',
|
|
|
|
'lib/punycode.js',
|
|
|
|
'lib/querystring.js',
|
|
|
|
'lib/readline.js',
|
|
|
|
'lib/repl.js',
|
|
|
|
'lib/stream.js',
|
2012-10-03 00:44:50 +02:00
|
|
|
'lib/_stream_readable.js',
|
|
|
|
'lib/_stream_writable.js',
|
|
|
|
'lib/_stream_duplex.js',
|
|
|
|
'lib/_stream_transform.js',
|
|
|
|
'lib/_stream_passthrough.js',
|
2011-09-05 01:01:53 +02:00
|
|
|
'lib/string_decoder.js',
|
|
|
|
'lib/sys.js',
|
2011-10-11 22:07:14 +02:00
|
|
|
'lib/timers.js',
|
2011-09-05 01:01:53 +02:00
|
|
|
'lib/tls.js',
|
2011-10-11 22:41:33 +02:00
|
|
|
'lib/tty.js',
|
2011-09-05 01:01:53 +02:00
|
|
|
'lib/url.js',
|
|
|
|
'lib/util.js',
|
|
|
|
'lib/vm.js',
|
2011-09-07 01:13:05 +02:00
|
|
|
'lib/zlib.js',
|
2011-09-05 01:01:53 +02:00
|
|
|
],
|
2011-08-04 08:36:27 +02:00
|
|
|
},
|
|
|
|
|
2011-08-04 02:01:30 +02:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'node',
|
|
|
|
'type': 'executable',
|
2011-08-04 08:36:27 +02:00
|
|
|
|
2011-08-04 02:01:30 +02:00
|
|
|
'dependencies': [
|
2011-08-05 01:40:07 +02:00
|
|
|
'node_js2c#host',
|
2011-08-04 02:01:30 +02:00
|
|
|
],
|
2011-08-05 01:40:07 +02:00
|
|
|
|
|
|
|
'include_dirs': [
|
2011-08-08 21:11:48 +02:00
|
|
|
'src',
|
2013-01-03 23:36:04 +01:00
|
|
|
'tools/msvs/genfiles',
|
2011-08-08 21:11:48 +02:00
|
|
|
'deps/uv/src/ares',
|
2011-08-05 01:40:07 +02:00
|
|
|
'<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
|
|
|
|
],
|
|
|
|
|
2011-08-04 02:01:30 +02:00
|
|
|
'sources': [
|
2011-09-23 01:18:08 +02:00
|
|
|
'src/fs_event_wrap.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/cares_wrap.cc',
|
|
|
|
'src/handle_wrap.cc',
|
|
|
|
'src/node.cc',
|
|
|
|
'src/node_buffer.cc',
|
|
|
|
'src/node_constants.cc',
|
|
|
|
'src/node_extensions.cc',
|
|
|
|
'src/node_file.cc',
|
|
|
|
'src/node_http_parser.cc',
|
|
|
|
'src/node_javascript.cc',
|
|
|
|
'src/node_main.cc',
|
|
|
|
'src/node_os.cc',
|
|
|
|
'src/node_script.cc',
|
2012-06-16 22:41:37 +02:00
|
|
|
'src/node_stat_watcher.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/node_string.cc',
|
2011-09-07 01:13:05 +02:00
|
|
|
'src/node_zlib.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/pipe_wrap.cc',
|
2012-08-20 23:59:21 +02:00
|
|
|
'src/signal_wrap.cc',
|
2013-05-02 00:40:43 +02:00
|
|
|
'src/string_bytes.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/stream_wrap.cc',
|
2012-03-28 02:21:56 +02:00
|
|
|
'src/slab_allocator.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/tcp_wrap.cc',
|
|
|
|
'src/timer_wrap.cc',
|
2011-09-20 22:38:07 +02:00
|
|
|
'src/tty_wrap.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/process_wrap.cc',
|
2011-08-12 18:57:04 +02:00
|
|
|
'src/v8_typed_array.cc',
|
2011-08-25 01:20:08 +02:00
|
|
|
'src/udp_wrap.cc',
|
2011-08-15 18:35:48 +02:00
|
|
|
# headers to make for a more pleasant IDE experience
|
|
|
|
'src/handle_wrap.h',
|
|
|
|
'src/node.h',
|
|
|
|
'src/node_buffer.h',
|
|
|
|
'src/node_constants.h',
|
|
|
|
'src/node_crypto.h',
|
|
|
|
'src/node_extensions.h',
|
|
|
|
'src/node_file.h',
|
|
|
|
'src/node_http_parser.h',
|
|
|
|
'src/node_javascript.h',
|
|
|
|
'src/node_os.h',
|
|
|
|
'src/node_root_certs.h',
|
|
|
|
'src/node_script.h',
|
|
|
|
'src/node_string.h',
|
|
|
|
'src/node_version.h',
|
2012-04-28 18:45:10 +02:00
|
|
|
'src/ngx-queue.h',
|
2011-08-15 18:35:48 +02:00
|
|
|
'src/pipe_wrap.h',
|
2012-05-16 18:04:24 +02:00
|
|
|
'src/tty_wrap.h',
|
|
|
|
'src/tcp_wrap.h',
|
|
|
|
'src/udp_wrap.h',
|
2011-08-15 18:35:48 +02:00
|
|
|
'src/req_wrap.h',
|
2012-03-28 02:21:56 +02:00
|
|
|
'src/slab_allocator.h',
|
2013-05-02 00:40:43 +02:00
|
|
|
'src/string_bytes.h',
|
2011-08-15 18:35:48 +02:00
|
|
|
'src/stream_wrap.h',
|
2012-08-06 21:22:11 +02:00
|
|
|
'src/tree.h',
|
2011-08-15 18:35:48 +02:00
|
|
|
'src/v8_typed_array.h',
|
|
|
|
'deps/http_parser/http_parser.h',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
|
2011-09-05 01:01:53 +02:00
|
|
|
# javascript files to make for an even more pleasant IDE experience
|
|
|
|
'<@(library_files)',
|
2011-10-28 12:10:24 +02:00
|
|
|
# node.gyp is added to the project by default.
|
|
|
|
'common.gypi',
|
2011-08-05 01:40:07 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
'defines': [
|
2011-11-29 17:35:19 +01:00
|
|
|
'NODE_WANT_INTERNALS=1',
|
2011-08-05 01:40:07 +02:00
|
|
|
'ARCH="<(target_arch)"',
|
|
|
|
'PLATFORM="<(OS)"',
|
2012-12-21 02:56:47 +01:00
|
|
|
'NODE_TAG="<(node_tag)"',
|
2011-08-04 02:01:30 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
'conditions': [
|
2011-08-05 01:40:07 +02:00
|
|
|
[ 'node_use_openssl=="true"', {
|
2011-08-06 21:20:15 +02:00
|
|
|
'defines': [ 'HAVE_OPENSSL=1' ],
|
2013-04-10 13:50:59 +02:00
|
|
|
'sources': [ 'src/node_crypto.cc' ],
|
2011-08-30 00:01:43 +02:00
|
|
|
'conditions': [
|
2012-06-20 22:31:49 +02:00
|
|
|
[ 'node_shared_openssl=="false"', {
|
2011-08-30 00:01:43 +02:00
|
|
|
'dependencies': [ './deps/openssl/openssl.gyp:openssl' ],
|
|
|
|
}]]
|
2011-08-05 01:40:07 +02:00
|
|
|
}, {
|
|
|
|
'defines': [ 'HAVE_OPENSSL=0' ]
|
|
|
|
}],
|
2011-08-15 18:35:48 +02:00
|
|
|
[ 'node_use_dtrace=="true"', {
|
2012-03-28 19:26:10 +02:00
|
|
|
'defines': [ 'HAVE_DTRACE=1' ],
|
|
|
|
'dependencies': [ 'node_dtrace_header' ],
|
|
|
|
'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
|
|
|
|
#
|
2013-03-28 19:36:00 +01:00
|
|
|
# DTrace is supported on solaris, mac, and bsd. There are three
|
|
|
|
# object files associated with DTrace support, but they're not all
|
|
|
|
# used all the time:
|
|
|
|
#
|
|
|
|
# node_dtrace.o all configurations
|
|
|
|
# node_dtrace_ustack.o not supported on OS X
|
|
|
|
# node_dtrace_provider.o All except OS X. "dtrace -G" is not
|
|
|
|
# used on OS X.
|
|
|
|
#
|
|
|
|
# Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
|
|
|
|
# actually exist. They're listed here to trick GYP into linking the
|
|
|
|
# corresponding object files into the final "node" executable. These
|
|
|
|
# object files are generated by "dtrace -G" using custom actions
|
|
|
|
# below, and the GYP-generated Makefiles will properly build them when
|
|
|
|
# needed.
|
2012-03-28 19:26:10 +02:00
|
|
|
#
|
2011-08-15 18:35:48 +02:00
|
|
|
'sources': [
|
2011-10-26 20:31:12 +02:00
|
|
|
'src/node_dtrace.cc',
|
2011-08-15 18:35:48 +02:00
|
|
|
],
|
2013-03-28 19:36:00 +01:00
|
|
|
'conditions': [ [
|
|
|
|
'OS!="mac"', {
|
|
|
|
'sources': [
|
|
|
|
'src/node_dtrace_ustack.cc',
|
|
|
|
'src/node_dtrace_provider.cc',
|
|
|
|
]
|
|
|
|
}
|
|
|
|
] ]
|
2012-03-28 19:26:10 +02:00
|
|
|
} ],
|
2012-10-10 00:09:07 +02:00
|
|
|
[ 'node_use_systemtap=="true"', {
|
|
|
|
'defines': [ 'HAVE_SYSTEMTAP=1', 'STAP_SDT_V1=1' ],
|
|
|
|
'dependencies': [ 'node_systemtap_header' ],
|
|
|
|
'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
|
|
|
|
'sources': [
|
|
|
|
'src/node_dtrace.cc',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/node_systemtap.h',
|
|
|
|
],
|
|
|
|
} ],
|
2012-06-12 01:23:17 +02:00
|
|
|
[ 'node_use_etw=="true"', {
|
|
|
|
'defines': [ 'HAVE_ETW=1' ],
|
|
|
|
'dependencies': [ 'node_etw' ],
|
|
|
|
'sources': [
|
|
|
|
'src/node_win32_etw_provider.h',
|
|
|
|
'src/node_win32_etw_provider-inl.h',
|
|
|
|
'src/node_win32_etw_provider.cc',
|
|
|
|
'src/node_dtrace.cc',
|
2013-01-03 23:36:04 +01:00
|
|
|
'tools/msvs/genfiles/node_etw_provider.h',
|
|
|
|
'tools/msvs/genfiles/node_etw_provider.rc',
|
2012-06-12 01:23:17 +02:00
|
|
|
]
|
|
|
|
} ],
|
2012-11-21 00:27:22 +01:00
|
|
|
[ 'node_use_perfctr=="true"', {
|
|
|
|
'defines': [ 'HAVE_PERFCTR=1' ],
|
|
|
|
'dependencies': [ 'node_perfctr' ],
|
|
|
|
'sources': [
|
|
|
|
'src/node_win32_perfctr_provider.h',
|
|
|
|
'src/node_win32_perfctr_provider.cc',
|
|
|
|
'src/node_counters.cc',
|
|
|
|
'src/node_counters.h',
|
2013-01-03 23:36:04 +01:00
|
|
|
'tools/msvs/genfiles/node_perfctr_provider.rc',
|
2012-11-21 00:27:22 +01:00
|
|
|
]
|
|
|
|
} ],
|
2012-06-27 00:33:50 +02:00
|
|
|
[ 'node_shared_v8=="false"', {
|
2012-02-23 23:52:18 +01:00
|
|
|
'sources': [
|
|
|
|
'deps/v8/include/v8.h',
|
|
|
|
'deps/v8/include/v8-debug.h',
|
|
|
|
],
|
|
|
|
'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
|
|
|
|
}],
|
|
|
|
|
2012-02-27 00:02:21 +01:00
|
|
|
[ 'node_shared_zlib=="false"', {
|
|
|
|
'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
|
|
|
|
}],
|
|
|
|
|
2012-10-23 15:01:26 +02:00
|
|
|
[ 'node_shared_http_parser=="false"', {
|
|
|
|
'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
|
|
|
|
}],
|
|
|
|
|
2012-10-23 16:27:19 +02:00
|
|
|
[ 'node_shared_cares=="false"', {
|
|
|
|
'dependencies': [ 'deps/cares/cares.gyp:cares' ],
|
|
|
|
}],
|
2012-10-24 01:54:22 +02:00
|
|
|
|
|
|
|
[ 'node_shared_libuv=="false"', {
|
|
|
|
'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
|
|
|
|
}],
|
2012-10-23 16:27:19 +02:00
|
|
|
|
2011-08-04 02:01:30 +02:00
|
|
|
[ 'OS=="win"', {
|
2011-08-07 07:11:21 +02:00
|
|
|
'sources': [
|
2012-06-13 17:40:50 +02:00
|
|
|
'src/res/node.rc',
|
2011-08-07 07:11:21 +02:00
|
|
|
],
|
2011-08-04 02:01:30 +02:00
|
|
|
'defines': [
|
2011-08-07 07:11:21 +02:00
|
|
|
'FD_SETSIZE=1024',
|
2011-08-07 19:43:24 +02:00
|
|
|
# we need to use node's preferred "win32" rather than gyp's preferred "win"
|
|
|
|
'PLATFORM="win32"',
|
2012-02-16 20:20:07 +01:00
|
|
|
'_UNICODE=1',
|
2011-08-04 02:01:30 +02:00
|
|
|
],
|
2011-09-02 21:53:16 +02:00
|
|
|
'libraries': [ '-lpsapi.lib' ]
|
2012-07-13 01:43:14 +02:00
|
|
|
}, { # POSIX
|
2011-08-05 01:40:07 +02:00
|
|
|
'defines': [ '__POSIX__' ],
|
2011-08-04 02:01:30 +02:00
|
|
|
}],
|
|
|
|
[ 'OS=="mac"', {
|
2011-08-05 01:40:07 +02:00
|
|
|
'libraries': [ '-framework Carbon' ],
|
2012-01-11 23:44:39 +01:00
|
|
|
'defines!': [
|
|
|
|
'PLATFORM="mac"',
|
|
|
|
],
|
2012-01-11 23:36:27 +01:00
|
|
|
'defines': [
|
|
|
|
# we need to use node's preferred "darwin" rather than gyp's preferred "mac"
|
|
|
|
'PLATFORM="darwin"',
|
|
|
|
],
|
2011-08-16 02:54:47 +02:00
|
|
|
}],
|
2011-08-17 07:44:53 +02:00
|
|
|
[ 'OS=="freebsd"', {
|
|
|
|
'libraries': [
|
|
|
|
'-lutil',
|
|
|
|
'-lkvm',
|
|
|
|
],
|
|
|
|
}],
|
2011-10-26 07:11:20 +02:00
|
|
|
[ 'OS=="solaris"', {
|
|
|
|
'libraries': [
|
|
|
|
'-lkstat',
|
2012-07-27 19:56:40 +02:00
|
|
|
'-lumem',
|
2011-10-26 07:11:20 +02:00
|
|
|
],
|
2012-08-29 23:57:25 +02:00
|
|
|
'defines!': [
|
|
|
|
'PLATFORM="solaris"',
|
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
# we need to use node's preferred "sunos"
|
|
|
|
# rather than gyp's preferred "solaris"
|
|
|
|
'PLATFORM="sunos"',
|
|
|
|
],
|
2011-10-26 07:11:20 +02:00
|
|
|
}],
|
2013-12-02 03:57:43 +01:00
|
|
|
[
|
|
|
|
'OS=="linux"', {
|
|
|
|
'ldflags': [
|
|
|
|
'-Wl,--whole-archive <(PRODUCT_DIR)/obj.target/deps/v8/tools/gyp/libv8_base.a -Wl,--no-whole-archive',
|
|
|
|
],
|
|
|
|
}],
|
2011-08-13 20:17:47 +02:00
|
|
|
],
|
2012-09-25 00:50:37 +02:00
|
|
|
'msvs_settings': {
|
2011-08-13 20:17:47 +02:00
|
|
|
'VCLinkerTool': {
|
|
|
|
'SubSystem': 1, # /subsystem:console
|
|
|
|
},
|
|
|
|
},
|
2011-08-04 02:01:30 +02:00
|
|
|
},
|
2012-06-12 01:23:17 +02:00
|
|
|
# generate ETW header and resource files
|
|
|
|
{
|
|
|
|
'target_name': 'node_etw',
|
|
|
|
'type': 'none',
|
|
|
|
'conditions': [
|
2012-12-21 09:06:21 +01:00
|
|
|
[ 'node_use_etw=="true" and node_has_winsdk=="true"', {
|
2012-06-12 01:23:17 +02:00
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'node_etw',
|
|
|
|
'inputs': [ 'src/res/node_etw_provider.man' ],
|
2012-10-26 01:51:46 +02:00
|
|
|
'outputs': [
|
2013-01-03 23:36:04 +01:00
|
|
|
'tools/msvs/genfiles/node_etw_provider.rc',
|
|
|
|
'tools/msvs/genfiles/node_etw_provider.h',
|
|
|
|
'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
|
2012-10-26 01:51:46 +02:00
|
|
|
],
|
2013-01-03 23:36:04 +01:00
|
|
|
'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
|
2012-06-12 01:23:17 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
} ]
|
|
|
|
]
|
|
|
|
},
|
2012-11-21 00:27:22 +01:00
|
|
|
# generate perf counter header and resource files
|
|
|
|
{
|
|
|
|
'target_name': 'node_perfctr',
|
|
|
|
'type': 'none',
|
|
|
|
'conditions': [
|
2012-12-21 09:06:21 +01:00
|
|
|
[ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
|
2012-11-21 00:27:22 +01:00
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'node_perfctr_man',
|
|
|
|
'inputs': [ 'src/res/node_perfctr_provider.man' ],
|
|
|
|
'outputs': [
|
2013-01-03 23:36:04 +01:00
|
|
|
'tools/msvs/genfiles/node_perfctr_provider.h',
|
|
|
|
'tools/msvs/genfiles/node_perfctr_provider.rc',
|
|
|
|
'tools/msvs/genfiles/MSG00001.BIN',
|
2012-11-21 00:27:22 +01:00
|
|
|
],
|
|
|
|
'action': [ 'ctrpp <@(_inputs) '
|
2013-01-03 23:36:04 +01:00
|
|
|
'-o tools/msvs/genfiles/node_perfctr_provider.h '
|
|
|
|
'-rc tools/msvs/genfiles/node_perfctr_provider.rc'
|
2012-11-21 00:27:22 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
],
|
|
|
|
} ]
|
|
|
|
]
|
|
|
|
},
|
2011-08-04 02:01:30 +02:00
|
|
|
{
|
|
|
|
'target_name': 'node_js2c',
|
|
|
|
'type': 'none',
|
|
|
|
'toolsets': ['host'],
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'node_js2c',
|
|
|
|
'inputs': [
|
|
|
|
'<@(library_files)',
|
2012-03-14 16:34:44 +01:00
|
|
|
'./config.gypi',
|
2011-08-04 02:01:30 +02:00
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
|
|
|
|
],
|
2011-08-05 01:40:07 +02:00
|
|
|
'conditions': [
|
2012-11-21 00:27:22 +01:00
|
|
|
[ 'node_use_dtrace=="false"'
|
|
|
|
' and node_use_etw=="false"'
|
|
|
|
' and node_use_systemtap=="false"',
|
2012-10-10 00:09:07 +02:00
|
|
|
{
|
2012-11-21 00:27:22 +01:00
|
|
|
'inputs': ['src/macros.py']
|
|
|
|
}
|
2011-08-05 01:40:07 +02:00
|
|
|
],
|
2012-11-21 00:27:22 +01:00
|
|
|
[ 'node_use_perfctr=="false"', {
|
|
|
|
'inputs': [ 'src/perfctr_macros.py' ]
|
|
|
|
}]
|
|
|
|
],
|
2011-08-05 01:40:07 +02:00
|
|
|
'action': [
|
2012-11-20 17:28:28 +01:00
|
|
|
'<(python)',
|
2011-08-08 21:11:48 +02:00
|
|
|
'tools/js2c.py',
|
2011-08-05 01:40:07 +02:00
|
|
|
'<@(_outputs)',
|
2012-03-14 16:34:44 +01:00
|
|
|
'<@(_inputs)',
|
2011-08-05 01:40:07 +02:00
|
|
|
],
|
2011-08-04 02:01:30 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
}, # end node_js2c
|
2012-03-28 19:26:10 +02:00
|
|
|
{
|
|
|
|
'target_name': 'node_dtrace_header',
|
|
|
|
'type': 'none',
|
|
|
|
'conditions': [
|
|
|
|
[ 'node_use_dtrace=="true"', {
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'node_dtrace_header',
|
|
|
|
'inputs': [ 'src/node_provider.d' ],
|
|
|
|
'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
|
|
|
|
'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
|
|
|
|
'-o', '<@(_outputs)' ]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
} ]
|
|
|
|
]
|
|
|
|
},
|
2012-10-10 00:09:07 +02:00
|
|
|
{
|
|
|
|
'target_name': 'node_systemtap_header',
|
|
|
|
'type': 'none',
|
|
|
|
'conditions': [
|
|
|
|
[ 'node_use_systemtap=="true"', {
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'node_systemtap_header',
|
|
|
|
'inputs': [ 'src/node_systemtap.d' ],
|
|
|
|
'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_systemtap.h' ],
|
|
|
|
'action': [ 'dtrace', '-h', '-C', '-s', '<@(_inputs)',
|
|
|
|
'-o', '<@(_outputs)' ]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
} ]
|
|
|
|
]
|
|
|
|
},
|
2012-03-28 19:26:10 +02:00
|
|
|
{
|
|
|
|
'target_name': 'node_dtrace_provider',
|
|
|
|
'type': 'none',
|
|
|
|
'conditions': [
|
2013-03-28 19:36:00 +01:00
|
|
|
[ 'node_use_dtrace=="true" and OS!="mac"', {
|
2012-03-28 19:26:10 +02:00
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'node_dtrace_provider_o',
|
|
|
|
'inputs': [
|
|
|
|
'src/node_provider.d',
|
|
|
|
'<(PRODUCT_DIR)/obj.target/node/src/node_dtrace.o'
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/obj.target/node/src/node_dtrace_provider.o'
|
|
|
|
],
|
|
|
|
'action': [ 'dtrace', '-G', '-xnolibs', '-s', '<@(_inputs)',
|
|
|
|
'-o', '<@(_outputs)' ]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
} ]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'node_dtrace_ustack',
|
|
|
|
'type': 'none',
|
|
|
|
'conditions': [
|
2013-03-28 19:36:00 +01:00
|
|
|
[ 'node_use_dtrace=="true" and OS!="mac"', {
|
2012-03-28 19:26:10 +02:00
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'node_dtrace_ustack_constants',
|
|
|
|
'inputs': [
|
|
|
|
'<(PRODUCT_DIR)/obj.target/deps/v8/tools/gyp/libv8_base.a'
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'tools/genv8constants.py',
|
|
|
|
'<@(_outputs)',
|
|
|
|
'<@(_inputs)'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'action_name': 'node_dtrace_ustack',
|
|
|
|
'inputs': [
|
|
|
|
'src/v8ustack.d',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/obj.target/node/src/node_dtrace_ustack.o'
|
|
|
|
],
|
2013-02-26 08:57:12 +01:00
|
|
|
'conditions': [
|
|
|
|
[ 'target_arch=="ia32"', {
|
|
|
|
'action': [
|
|
|
|
'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
|
|
|
|
'-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
|
|
|
|
]
|
|
|
|
} ],
|
|
|
|
[ 'target_arch=="x64"', {
|
|
|
|
'action': [
|
|
|
|
'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
|
|
|
|
'-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
|
|
|
|
]
|
|
|
|
} ],
|
2012-03-28 19:26:10 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
} ],
|
|
|
|
]
|
|
|
|
}
|
2011-08-04 02:01:30 +02:00
|
|
|
] # end targets
|
|
|
|
}
|