X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=node.gyp;h=30a1bdf7ebc1918a6debb350b2999bd597af213e;hb=3e7a25dd95194269fd112aa5677fc5e6d4156135;hp=daf06c7a7a0f41db01c074087aa74394d628627d;hpb=6a610a0f67f091092f1643326eaacb8c31f72259;p=platform%2Fupstream%2Fnodejs.git diff --git a/node.gyp b/node.gyp index daf06c7..30a1bdf 100644 --- a/node.gyp +++ b/node.gyp @@ -8,7 +8,6 @@ 'node_shared_v8%': 'false', 'node_shared_zlib%': 'false', 'node_shared_http_parser%': 'false', - 'node_shared_cares%': 'false', 'node_shared_libuv%': 'false', 'node_use_openssl%': 'true', 'node_shared_openssl%': 'false', @@ -16,6 +15,7 @@ 'node_v8_options%': '', 'library_files': [ 'src/node.js', + 'lib/_debug_agent.js', 'lib/_debugger.js', 'lib/_linklist.js', 'lib/assert.js', @@ -43,6 +43,7 @@ 'lib/net.js', 'lib/os.js', 'lib/path.js', + 'lib/process.js', 'lib/punycode.js', 'lib/querystring.js', 'lib/readline.js', @@ -57,7 +58,6 @@ 'lib/string_decoder.js', 'lib/sys.js', 'lib/timers.js', - 'lib/tracing.js', 'lib/tls.js', 'lib/_tls_common.js', 'lib/_tls_legacy.js', @@ -65,9 +65,9 @@ 'lib/tty.js', 'lib/url.js', 'lib/util.js', + 'lib/v8.js', 'lib/vm.js', 'lib/zlib.js', - 'deps/debugger-agent/lib/_debugger_agent.js', ], }, @@ -78,7 +78,7 @@ 'dependencies': [ 'node_js2c#host', - 'deps/debugger-agent/debugger-agent.gyp:debugger-agent', + 'deps/cares/cares.gyp:cares' ], 'include_dirs': [ @@ -89,6 +89,8 @@ ], 'sources': [ + 'src/debug-agent.cc', + 'src/async-wrap.cc', 'src/fs_event_wrap.cc', 'src/cares_wrap.cc', 'src/handle_wrap.cc', @@ -102,6 +104,7 @@ 'src/node_main.cc', 'src/node_os.cc', 'src/node_v8.cc', + 'src/node_v8_platform.cc', 'src/node_stat_watcher.cc', 'src/node_watchdog.cc', 'src/node_zlib.cc', @@ -123,6 +126,7 @@ 'src/async-wrap-inl.h', 'src/base-object.h', 'src/base-object-inl.h', + 'src/debug-agent.h', 'src/env.h', 'src/env-inl.h', 'src/handle_wrap.h', @@ -160,11 +164,11 @@ ], 'defines': [ - 'NODE_WANT_INTERNALS=1', - 'ARCH="<(target_arch)"', - 'PLATFORM="<(OS)"', + 'NODE_ARCH="<(target_arch)"', + 'NODE_PLATFORM="<(OS)"', 'NODE_TAG="<(node_tag)"', 'NODE_V8_OPTIONS="<(node_v8_options)"', + 'NODE_WANT_INTERNALS=1', ], 'conditions': [ @@ -245,8 +249,7 @@ 'conditions': [ [ 'OS=="linux"', { 'sources': [ - '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o', - '<(SHARED_INTERMEDIATE_DIR)/libuv_dtrace_provider.o', + '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o' ], }], [ 'OS!="mac" and OS!="linux"', { @@ -311,10 +314,6 @@ 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ], }], - [ 'node_shared_cares=="false"', { - 'dependencies': [ 'deps/cares/cares.gyp:cares' ], - }], - [ 'node_shared_libuv=="false"', { 'dependencies': [ 'deps/uv/uv.gyp:libuv' ], }], @@ -365,6 +364,12 @@ 'PLATFORM="sunos"', ], }], + [ 'OS=="freebsd" or OS=="linux"', { + 'ldflags': [ '-Wl,-z,noexecstack' ], + }], + [ 'OS=="sunos"', { + 'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ], + }], [ 'OS in "linux freebsd" and node_shared_v8=="false"', { 'ldflags': [ @@ -462,7 +467,7 @@ 'target_name': 'node_dtrace_header', 'type': 'none', 'conditions': [ - [ 'node_use_dtrace=="true"', { + [ 'node_use_dtrace=="true" and OS!="linux"', { 'actions': [ { 'action_name': 'node_dtrace_header', @@ -472,7 +477,18 @@ '-o', '<@(_outputs)' ] } ] - } ] + } ], + [ 'node_use_dtrace=="true" and OS=="linux"', { + 'actions': [ + { + 'action_name': 'node_dtrace_header', + 'inputs': [ 'src/node_provider.d' ], + 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ], + 'action': [ 'dtrace', '-h', '-s', '<@(_inputs)', + '-o', '<@(_outputs)' ] + } + ] + } ], ] }, { @@ -510,15 +526,13 @@ { 'action_name': 'node_dtrace_provider_o', 'inputs': [ - '<(OBJ_DIR)/libuv/deps/uv/src/unix/core.o', '<(OBJ_DIR)/node/src/node_dtrace.o', ], 'outputs': [ '<(OBJ_DIR)/node/src/node_dtrace_provider.o' ], 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d', - '-s', 'deps/uv/src/unix/uv-dtrace.d', '<@(_inputs)', - '-o', '<@(_outputs)' ] + '<@(_inputs)', '-o', '<@(_outputs)' ] } ] }], @@ -533,17 +547,7 @@ 'action': [ 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)' ], - }, - { - 'action_name': 'libuv_dtrace_provider_o', - 'inputs': [ 'deps/uv/src/unix/uv-dtrace.d' ], - 'outputs': [ - '<(SHARED_INTERMEDIATE_DIR)/libuv_dtrace_provider.o' - ], - 'action': [ - 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)' - ], - }, + } ], }], ]