X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=node.gyp;h=d549e18c050cef5c767f9798ebd9b413d3c2d442;hb=86d2af58d67847dc36becdd5436d600afacb0f9c;hp=2b530f15f17ec234237b67369d7619da157cc3d6;hpb=0f68377f69823dd470fdb1ae90287c2ea4f8f404;p=platform%2Fupstream%2Fnodejs.git diff --git a/node.gyp b/node.gyp index 2b530f1..d549e18 100644 --- a/node.gyp +++ b/node.gyp @@ -13,6 +13,7 @@ 'node_shared_openssl%': 'false', 'node_v8_options%': '', 'node_target_type%': 'executable', + 'node_core_target_name%': 'node', 'library_files': [ 'src/node.js', 'lib/_debug_agent.js', @@ -48,7 +49,6 @@ 'lib/querystring.js', 'lib/readline.js', 'lib/repl.js', - 'lib/smalloc.js', 'lib/stream.js', 'lib/_stream_readable.js', 'lib/_stream_writable.js', @@ -69,19 +69,33 @@ 'lib/v8.js', 'lib/vm.js', 'lib/zlib.js', - 'lib/internal/child_process.js', + 'lib/internal/cluster.js', 'lib/internal/freelist.js', - 'lib/internal/smalloc.js', + 'lib/internal/net.js', + 'lib/internal/module.js', 'lib/internal/socket_list.js', 'lib/internal/repl.js', 'lib/internal/util.js', + 'lib/internal/v8_prof_polyfill.js', + 'lib/internal/v8_prof_processor.js', + 'lib/internal/streams/lazy_transform.js', + 'deps/v8/tools/splaytree.js', + 'deps/v8/tools/codemap.js', + 'deps/v8/tools/consarray.js', + 'deps/v8/tools/csvparser.js', + 'deps/v8/tools/profile.js', + 'deps/v8/tools/profile_view.js', + 'deps/v8/tools/logreader.js', + 'deps/v8/tools/tickprocessor.js', + 'deps/v8/tools/SourceMap.js', + 'deps/v8/tools/tickprocessor-driver.js', ], }, 'targets': [ { - 'target_name': 'iojs', + 'target_name': '<(node_core_target_name)', 'type': '<(node_target_type)', 'dependencies': [ @@ -116,6 +130,8 @@ 'src/node_javascript.cc', 'src/node_main.cc', 'src/node_os.cc', + 'src/node_revert.cc', + 'src/node_util.cc', 'src/node_v8.cc', 'src/node_stat_watcher.cc', 'src/node_watchdog.cc', @@ -123,7 +139,6 @@ 'src/node_i18n.cc', 'src/pipe_wrap.cc', 'src/signal_wrap.cc', - 'src/smalloc.cc', 'src/spawn_sync.cc', 'src/string_bytes.cc', 'src/stream_base.cc', @@ -155,9 +170,9 @@ 'src/node_version.h', 'src/node_watchdog.h', 'src/node_wrap.h', + 'src/node_revert.h', 'src/node_i18n.h', 'src/pipe_wrap.h', - 'src/smalloc.h', 'src/tty_wrap.h', 'src/tcp_wrap.h', 'src/udp_wrap.h', @@ -171,6 +186,7 @@ 'src/util.h', 'src/util-inl.h', 'src/util.cc', + 'src/string_search.cc', 'deps/http_parser/http_parser.h', 'deps/v8/include/v8.h', 'deps/v8/include/v8-debug.h', @@ -184,18 +200,30 @@ 'defines': [ 'NODE_ARCH="<(target_arch)"', 'NODE_PLATFORM="<(OS)"', - 'NODE_TAG="<(node_tag)"', - 'NODE_V8_OPTIONS="<(node_v8_options)"', 'NODE_WANT_INTERNALS=1', + # Warn when using deprecated V8 APIs. + 'V8_DEPRECATION_WARNINGS=1', ], + 'conditions': [ + [ 'node_tag!=""', { + 'defines': [ 'NODE_TAG="<(node_tag)"' ], + }], + [ 'node_v8_options!=""', { + 'defines': [ 'NODE_V8_OPTIONS="<(node_v8_options)"'], + }], # No node_main.cc for anything except executable [ 'node_target_type!="executable"', { 'sources!': [ 'src/node_main.cc', ], }], + [ 'node_release_urlbase!=""', { + 'defines': [ + 'NODE_RELEASE_URLBASE="<(node_release_urlbase)"', + ] + }], [ 'v8_enable_i18n_support==1', { 'defines': [ 'NODE_HAVE_I18N_SUPPORT=1' ], 'dependencies': [ @@ -220,6 +248,9 @@ 'src/tls_wrap.h' ], 'conditions': [ + ['openssl_fips != ""', { + 'defines': [ 'NODE_FIPS_MODE' ], + }], [ 'node_shared_openssl=="false"', { 'dependencies': [ './deps/openssl/openssl.gyp:openssl', @@ -382,6 +413,11 @@ '-lkvm', ], }], + [ 'OS=="aix"', { + 'defines': [ + '_LINUX_SOURCE_COMPAT', + ], + }], [ 'OS=="solaris"', { 'libraries': [ '-lkstat', @@ -483,7 +519,7 @@ }] ], 'action': [ - '<(python)', + 'python', 'tools/js2c.py', '<@(_outputs)', '<@(_inputs)', @@ -528,10 +564,10 @@ { 'action_name': 'node_dtrace_provider_o', 'inputs': [ - '<(OBJ_DIR)/iojs/src/node_dtrace.o', + '<(OBJ_DIR)/node/src/node_dtrace.o', ], 'outputs': [ - '<(OBJ_DIR)/iojs/src/node_dtrace_provider.o' + '<(OBJ_DIR)/node/src/node_dtrace_provider.o' ], 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d', '<@(_inputs)', '-o', '<@(_outputs)' ] @@ -581,7 +617,7 @@ '<(SHARED_INTERMEDIATE_DIR)/v8constants.h' ], 'outputs': [ - '<(OBJ_DIR)/iojs/src/node_dtrace_ustack.o' + '<(OBJ_DIR)/node/src/node_dtrace_ustack.o' ], 'conditions': [ [ 'target_arch=="ia32"', { @@ -653,5 +689,53 @@ 'test/cctest/util.cc', ], } - ] # end targets + ], # end targets + + 'conditions': [ + ['OS=="aix"', { + 'targets': [ + { + 'target_name': 'node', + 'type': 'executable', + 'dependencies': ['<(node_core_target_name)', 'node_exp'], + + 'include_dirs': [ + 'src', + 'deps/v8/include', + ], + + 'sources': [ + 'src/node_main.cc', + '<@(library_files)', + # node.gyp is added to the project by default. + 'common.gypi', + ], + + 'ldflags': ['-Wl,-bbigtoc,-bE:<(PRODUCT_DIR)/node.exp'], + }, + { + 'target_name': 'node_exp', + 'type': 'none', + 'dependencies': [ + '<(node_core_target_name)', + ], + 'actions': [ + { + 'action_name': 'expfile', + 'inputs': [ + '<(OBJ_DIR)' + ], + 'outputs': [ + '<(PRODUCT_DIR)/node.exp' + ], + 'action': [ + 'sh', 'tools/create_expfile.sh', + '<@(_inputs)', '<@(_outputs)' + ], + } + ] + } + ], # end targets + }], # end aix section + ], # end conditions block }