2017-06-12 14:14:34 +02:00
|
|
|
diff -u -r ../node-v8.1.0/node.gyp ./node.gyp
|
|
|
|
--- ../node-v8.1.0/node.gyp 2017-06-08 12:31:34.000000000 +0200
|
|
|
|
+++ ./node.gyp 2017-06-12 12:13:40.219057425 +0200
|
|
|
|
@@ -557,156 +557,6 @@
|
2017-01-09 23:30:11 +01:00
|
|
|
],
|
|
|
|
} ],
|
|
|
|
]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- 'target_name': 'cctest',
|
|
|
|
- 'type': 'executable',
|
2017-05-08 10:54:46 +02:00
|
|
|
-
|
|
|
|
- 'dependencies': [
|
|
|
|
- '<(node_core_target_name)',
|
|
|
|
- 'deps/gtest/gtest.gyp:gtest',
|
|
|
|
- 'node_js2c#host',
|
|
|
|
- 'node_dtrace_header',
|
|
|
|
- 'node_dtrace_ustack',
|
|
|
|
- 'node_dtrace_provider',
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'variables': {
|
|
|
|
- 'OBJ_PATH': '<(OBJ_DIR)/node/src',
|
|
|
|
- 'OBJ_GEN_PATH': '<(OBJ_DIR)/node/gen',
|
|
|
|
- 'OBJ_TRACING_PATH': '<(OBJ_DIR)/node/src/tracing',
|
|
|
|
- 'OBJ_SUFFIX': 'o',
|
2017-06-12 14:14:34 +02:00
|
|
|
- 'OBJ_SEPARATOR': '/',
|
2017-05-08 10:54:46 +02:00
|
|
|
- 'conditions': [
|
|
|
|
- ['OS=="win"', {
|
|
|
|
- 'OBJ_SUFFIX': 'obj',
|
|
|
|
- }],
|
2017-06-12 14:14:34 +02:00
|
|
|
- ['GENERATOR=="ninja"', {
|
|
|
|
- 'OBJ_PATH': '<(OBJ_DIR)/src',
|
|
|
|
- 'OBJ_GEN_PATH': '<(OBJ_DIR)/gen',
|
|
|
|
- 'OBJ_TRACING_PATH': '<(OBJ_DIR)/src/tracing',
|
|
|
|
- 'OBJ_SEPARATOR': '/node.',
|
|
|
|
- }, {
|
|
|
|
- 'conditions': [
|
|
|
|
- ['OS=="win"', {
|
|
|
|
- 'OBJ_PATH': '<(OBJ_DIR)/node',
|
|
|
|
- 'OBJ_GEN_PATH': '<(OBJ_DIR)/node',
|
|
|
|
- 'OBJ_TRACING_PATH': '<(OBJ_DIR)/node',
|
|
|
|
- }],
|
|
|
|
- ['OS=="aix"', {
|
|
|
|
- 'OBJ_PATH': '<(OBJ_DIR)/node_base/src',
|
|
|
|
- 'OBJ_GEN_PATH': '<(OBJ_DIR)/node_base/gen',
|
|
|
|
- 'OBJ_TRACING_PATH': '<(OBJ_DIR)/node_base/src/tracing',
|
|
|
|
- }],
|
|
|
|
- ]}
|
|
|
|
- ]
|
|
|
|
- ],
|
2017-05-08 10:54:46 +02:00
|
|
|
- },
|
|
|
|
-
|
|
|
|
- 'includes': [
|
|
|
|
- 'node.gypi'
|
|
|
|
- ],
|
|
|
|
-
|
2017-01-09 23:30:11 +01:00
|
|
|
- 'include_dirs': [
|
|
|
|
- 'src',
|
2017-05-08 10:54:46 +02:00
|
|
|
- 'tools/msvs/genfiles',
|
2017-01-09 23:30:11 +01:00
|
|
|
- 'deps/v8/include',
|
2017-05-08 10:54:46 +02:00
|
|
|
- 'deps/cares/include',
|
|
|
|
- 'deps/uv/include',
|
|
|
|
- '<(SHARED_INTERMEDIATE_DIR)', # for node_natives.h
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'libraries': [
|
2017-06-12 14:14:34 +02:00
|
|
|
- '<(OBJ_GEN_PATH)<(OBJ_SEPARATOR)node_javascript.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_debug_options.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)async-wrap.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)env.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_buffer.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_i18n.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_url.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)util.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)string_bytes.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)string_search.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)stream_base.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_constants.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_revert.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_TRACING_PATH)<(OBJ_SEPARATOR)agent.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_TRACING_PATH)<(OBJ_SEPARATOR)node_trace_buffer.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_TRACING_PATH)<(OBJ_SEPARATOR)node_trace_writer.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_TRACING_PATH)<(OBJ_SEPARATOR)trace_event.<(OBJ_SUFFIX)',
|
2017-01-09 23:30:11 +01:00
|
|
|
- ],
|
2017-05-08 10:54:46 +02:00
|
|
|
-
|
2017-01-09 23:30:11 +01:00
|
|
|
- 'defines': [
|
|
|
|
- # gtest's ASSERT macros conflict with our own.
|
|
|
|
- 'GTEST_DONT_DEFINE_ASSERT_EQ=1',
|
|
|
|
- 'GTEST_DONT_DEFINE_ASSERT_GE=1',
|
|
|
|
- 'GTEST_DONT_DEFINE_ASSERT_GT=1',
|
|
|
|
- 'GTEST_DONT_DEFINE_ASSERT_LE=1',
|
|
|
|
- 'GTEST_DONT_DEFINE_ASSERT_LT=1',
|
|
|
|
- 'GTEST_DONT_DEFINE_ASSERT_NE=1',
|
|
|
|
- 'NODE_WANT_INTERNALS=1',
|
|
|
|
- ],
|
2017-05-08 10:54:46 +02:00
|
|
|
-
|
2017-01-09 23:30:11 +01:00
|
|
|
- 'sources': [
|
2017-06-12 14:14:34 +02:00
|
|
|
- 'test/cctest/test_base64.cc',
|
|
|
|
- 'test/cctest/test_environment.cc',
|
2017-05-08 10:54:46 +02:00
|
|
|
- 'test/cctest/test_util.cc',
|
2017-06-12 14:14:34 +02:00
|
|
|
- 'test/cctest/test_url.cc'
|
2017-05-08 10:54:46 +02:00
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'sources!': [
|
|
|
|
- 'src/node_main.cc'
|
2017-01-09 23:30:11 +01:00
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'conditions': [
|
2017-06-12 14:14:34 +02:00
|
|
|
- ['v8_enable_inspector==1', {
|
2017-01-09 23:30:11 +01:00
|
|
|
- 'sources': [
|
|
|
|
- 'test/cctest/test_inspector_socket.cc',
|
|
|
|
- 'test/cctest/test_inspector_socket_server.cc'
|
|
|
|
- ],
|
|
|
|
- 'conditions': [
|
2017-02-24 22:47:57 +01:00
|
|
|
- [ 'node_shared_zlib=="false"', {
|
|
|
|
- 'dependencies': [
|
|
|
|
- 'deps/zlib/zlib.gyp:zlib',
|
|
|
|
- ]
|
|
|
|
- }],
|
2017-06-12 14:14:34 +02:00
|
|
|
- [ 'node_shared_openssl=="false" and node_shared=="false"', {
|
2017-01-09 23:30:11 +01:00
|
|
|
- 'dependencies': [
|
|
|
|
- 'deps/openssl/openssl.gyp:openssl'
|
|
|
|
- ]
|
|
|
|
- }],
|
|
|
|
- [ 'node_shared_http_parser=="false"', {
|
|
|
|
- 'dependencies': [
|
|
|
|
- 'deps/http_parser/http_parser.gyp:http_parser'
|
|
|
|
- ]
|
|
|
|
- }],
|
|
|
|
- [ 'node_shared_libuv=="false"', {
|
|
|
|
- 'dependencies': [
|
|
|
|
- 'deps/uv/uv.gyp:libuv'
|
|
|
|
- ]
|
|
|
|
- }]
|
|
|
|
- ]
|
|
|
|
- }],
|
|
|
|
- [ 'node_use_v8_platform=="true"', {
|
|
|
|
- 'dependencies': [
|
|
|
|
- 'deps/v8/src/v8.gyp:v8_libplatform',
|
|
|
|
- ],
|
|
|
|
- }],
|
2017-05-08 10:54:46 +02:00
|
|
|
- [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
|
|
|
|
- 'copies': [{
|
|
|
|
- 'destination': '<(OBJ_DIR)/cctest/src',
|
|
|
|
- 'files': [
|
2017-06-12 14:14:34 +02:00
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_dtrace_ustack.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_dtrace_provider.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_dtrace.<(OBJ_SUFFIX)',
|
2017-05-08 10:54:46 +02:00
|
|
|
- ]},
|
2017-01-09 23:30:11 +01:00
|
|
|
- ],
|
|
|
|
- }],
|
2017-05-08 10:54:46 +02:00
|
|
|
- ['OS=="solaris"', {
|
|
|
|
- 'ldflags': [ '-I<(SHARED_INTERMEDIATE_DIR)' ]
|
|
|
|
- }],
|
2017-01-09 23:30:11 +01:00
|
|
|
- ]
|
|
|
|
}
|
|
|
|
], # end targets
|
|
|
|
|