2011-08-04 02:01:30 +02:00
|
|
|
{
|
2011-08-04 08:36:27 +02:00
|
|
|
'variables': {
|
2019-01-25 20:03:36 +01:00
|
|
|
'v8_use_siphash%': 0,
|
|
|
|
'v8_use_snapshot%': 0,
|
2017-07-01 02:08:32 +02:00
|
|
|
'v8_trace_maps%': 0,
|
2012-03-28 19:26:10 +02:00
|
|
|
'node_use_dtrace%': 'false',
|
2012-06-12 01:23:17 +02:00
|
|
|
'node_use_etw%': 'false',
|
2016-03-23 02:05:54 +01:00
|
|
|
'node_no_browser_globals%': 'false',
|
2019-04-23 16:21:52 +02:00
|
|
|
'node_use_node_snapshot%': 'false',
|
2016-03-27 01:17:55 +01:00
|
|
|
'node_use_v8_platform%': 'true',
|
|
|
|
'node_use_bundled_v8%': 'true',
|
|
|
|
'node_shared%': 'false',
|
2016-06-29 22:03:18 +02:00
|
|
|
'force_dynamic_crt%': 0,
|
2016-03-27 01:17:55 +01:00
|
|
|
'node_module_version%': '',
|
2018-11-27 02:16:34 +01:00
|
|
|
'node_shared_brotli%': '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',
|
2016-03-17 23:25:17 +01:00
|
|
|
'node_shared_cares%': 'false',
|
2012-10-24 01:54:22 +02:00
|
|
|
'node_shared_libuv%': 'false',
|
2017-11-06 09:59:01 +01:00
|
|
|
'node_shared_nghttp2%': 'false',
|
2011-09-05 01:01:53 +02:00
|
|
|
'node_use_openssl%': 'true',
|
2012-06-20 22:31:49 +02:00
|
|
|
'node_shared_openssl%': 'false',
|
2014-03-26 21:30:49 +01:00
|
|
|
'node_v8_options%': '',
|
2015-10-21 18:24:12 +02:00
|
|
|
'node_enable_v8_vtunejit%': 'false',
|
2015-09-29 16:22:00 +02:00
|
|
|
'node_core_target_name%': 'node',
|
2019-04-08 16:48:09 +02:00
|
|
|
'node_lib_target_name%': 'libnode',
|
2017-12-05 01:07:53 +01:00
|
|
|
'node_intermediate_lib_type%': 'static_library',
|
2011-09-05 01:01:53 +02:00
|
|
|
'library_files': [
|
2019-03-19 17:12:23 +01:00
|
|
|
'lib/internal/bootstrap/environment.js',
|
2018-03-06 15:42:32 +01:00
|
|
|
'lib/internal/bootstrap/loaders.js',
|
|
|
|
'lib/internal/bootstrap/node.js',
|
2019-01-15 16:12:21 +01:00
|
|
|
'lib/internal/bootstrap/pre_execution.js',
|
2019-04-10 10:31:52 +02:00
|
|
|
'lib/internal/per_context/primordials.js',
|
2019-03-07 15:12:52 +01:00
|
|
|
'lib/internal/per_context/setup.js',
|
2019-03-07 15:45:31 +01:00
|
|
|
'lib/internal/per_context/domexception.js',
|
2017-03-10 00:13:34 +01:00
|
|
|
'lib/async_hooks.js',
|
2011-09-05 01:01:53 +02:00
|
|
|
'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/fs.js',
|
|
|
|
'lib/http.js',
|
http2: introducing HTTP/2
At long last: The initial *experimental* implementation of HTTP/2.
This is an accumulation of the work that has been done in the nodejs/http2
repository, squashed down to a couple of commits. The original commit
history has been preserved in the nodejs/http2 repository.
This PR introduces the nghttp2 C library as a new dependency. This library
provides the majority of the HTTP/2 protocol implementation, with the rest
of the code here providing the mapping of the library into a usable JS API.
Within src, a handful of new node_http2_*.c and node_http2_*.h files are
introduced. These provide the internal mechanisms that interface with nghttp
and define the `process.binding('http2')` interface.
The JS API is defined within `internal/http2/*.js`.
There are two APIs provided: Core and Compat.
The Core API is HTTP/2 specific and is designed to be as minimal and as
efficient as possible.
The Compat API is intended to be as close to the existing HTTP/1 API as
possible, with some exceptions.
Tests, documentation and initial benchmarks are included.
The `http2` module is gated by a new `--expose-http2` command line flag.
When used, `require('http2')` will be exposed to users. Note that there
is an existing `http2` module on npm that would be impacted by the introduction
of this module, which is the main reason for gating this behind a flag.
When using `require('http2')` the first time, a process warning will be
emitted indicating that an experimental feature is being used.
To run the benchmarks, the `h2load` tool (part of the nghttp project) is
required: `./node benchmarks/http2/simple.js benchmarker=h2load`. Only
two benchmarks are currently available.
Additional configuration options to enable verbose debugging are provided:
```
$ ./configure --debug-http2 --debug-nghttp2
$ NODE_DEBUG=http2 ./node
```
The `--debug-http2` configuration option enables verbose debug statements
from the `src/node_http2_*` files. The `--debug-nghttp2` enables the nghttp
library's own verbose debug output. The `NODE_DEBUG=http2` enables JS-level
debug output.
The following illustrates as simple HTTP/2 server and client interaction:
(The HTTP/2 client and server support both plain text and TLS connections)
```jt client = http2.connect('http://localhost:80');
const req = client.request({ ':path': '/some/path' });
req.on('data', (chunk) => { /* do something with the data */ });
req.on('end', () => {
client.destroy();
});
// Plain text (non-TLS server)
const server = http2.createServer();
server.on('stream', (stream, requestHeaders) => {
stream.respond({ ':status': 200 });
stream.write('hello ');
stream.end('world');
});
server.listen(80);
```
```js
const http2 = require('http2');
const client = http2.connect('http://localhost');
```
Author: Anna Henningsen <anna@addaleax.net>
Author: Colin Ihrig <cjihrig@gmail.com>
Author: Daniel Bevenius <daniel.bevenius@gmail.com>
Author: James M Snell <jasnell@gmail.com>
Author: Jun Mukai
Author: Kelvin Jin
Author: Matteo Collina <matteo.collina@gmail.com>
Author: Robert Kowalski <rok@kowalski.gd>
Author: Santiago Gimeno <santiago.gimeno@gmail.com>
Author: Sebastiaan Deckers <sebdeckers83@gmail.com>
Author: Yosuke Furukawa <yosuke.furukawa@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/14239
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2017-07-17 19:17:16 +02:00
|
|
|
'lib/http2.js',
|
2013-04-11 23:47:15 +02:00
|
|
|
'lib/_http_agent.js',
|
2013-04-12 01:11:12 +02:00
|
|
|
'lib/_http_client.js',
|
2013-04-12 00:15:41 +02:00
|
|
|
'lib/_http_common.js',
|
2013-04-12 00:00:45 +02:00
|
|
|
'lib/_http_incoming.js',
|
2013-04-12 00:37:14 +02:00
|
|
|
'lib/_http_outgoing.js',
|
2013-04-12 01:00:19 +02:00
|
|
|
'lib/_http_server.js',
|
2011-09-05 01:01:53 +02:00
|
|
|
'lib/https.js',
|
2016-12-13 02:08:31 +01:00
|
|
|
'lib/inspector.js',
|
2011-09-05 01:01:53 +02:00
|
|
|
'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',
|
2017-08-08 00:53:24 +02:00
|
|
|
'lib/perf_hooks.js',
|
2014-12-30 23:25:52 +01:00
|
|
|
'lib/process.js',
|
2011-09-05 01:01:53 +02:00
|
|
|
'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',
|
2015-02-23 21:09:44 +01:00
|
|
|
'lib/_stream_wrap.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',
|
2014-03-07 00:27:01 +01:00
|
|
|
'lib/_tls_common.js',
|
2013-06-13 15:36:00 +02:00
|
|
|
'lib/_tls_wrap.js',
|
2018-04-04 03:05:33 +02:00
|
|
|
'lib/trace_events.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',
|
2014-12-09 22:57:48 +01:00
|
|
|
'lib/v8.js',
|
2011-09-05 01:01:53 +02:00
|
|
|
'lib/vm.js',
|
2018-06-01 15:13:43 +02:00
|
|
|
'lib/worker_threads.js',
|
2011-09-07 01:13:05 +02:00
|
|
|
'lib/zlib.js',
|
2019-02-06 06:05:24 +01:00
|
|
|
'lib/internal/assert.js',
|
2019-02-06 05:46:35 +01:00
|
|
|
'lib/internal/assert/assertion_error.js',
|
2017-11-12 18:46:55 +01:00
|
|
|
'lib/internal/async_hooks.js',
|
2016-10-11 23:12:31 +02:00
|
|
|
'lib/internal/buffer.js',
|
2018-01-13 20:55:19 +01:00
|
|
|
'lib/internal/cli_table.js',
|
2015-05-22 16:52:05 +02:00
|
|
|
'lib/internal/child_process.js',
|
2017-01-11 21:30:55 +01:00
|
|
|
'lib/internal/cluster/child.js',
|
|
|
|
'lib/internal/cluster/master.js',
|
|
|
|
'lib/internal/cluster/round_robin_handle.js',
|
|
|
|
'lib/internal/cluster/shared_handle.js',
|
|
|
|
'lib/internal/cluster/utils.js',
|
|
|
|
'lib/internal/cluster/worker.js',
|
2018-11-28 23:17:57 +01:00
|
|
|
'lib/internal/console/constructor.js',
|
|
|
|
'lib/internal/console/global.js',
|
2017-09-06 17:10:34 +02:00
|
|
|
'lib/internal/crypto/certificate.js',
|
|
|
|
'lib/internal/crypto/cipher.js',
|
|
|
|
'lib/internal/crypto/diffiehellman.js',
|
|
|
|
'lib/internal/crypto/hash.js',
|
2018-09-02 17:00:01 +02:00
|
|
|
'lib/internal/crypto/keygen.js',
|
2018-09-20 19:53:44 +02:00
|
|
|
'lib/internal/crypto/keys.js',
|
2017-09-06 17:10:34 +02:00
|
|
|
'lib/internal/crypto/pbkdf2.js',
|
|
|
|
'lib/internal/crypto/random.js',
|
2018-05-18 11:05:20 +02:00
|
|
|
'lib/internal/crypto/scrypt.js',
|
2017-09-06 17:10:34 +02:00
|
|
|
'lib/internal/crypto/sig.js',
|
|
|
|
'lib/internal/crypto/util.js',
|
2018-02-08 18:14:41 +01:00
|
|
|
'lib/internal/constants.js',
|
2018-07-21 06:56:12 +02:00
|
|
|
'lib/internal/dgram.js',
|
2018-06-11 20:56:33 +02:00
|
|
|
'lib/internal/dns/promises.js',
|
|
|
|
'lib/internal/dns/utils.js',
|
2019-03-09 09:28:04 +01:00
|
|
|
'lib/internal/dtrace.js',
|
2017-06-12 17:25:53 +02:00
|
|
|
'lib/internal/encoding.js',
|
2016-10-24 22:09:34 +02:00
|
|
|
'lib/internal/errors.js',
|
2017-09-26 01:42:16 +02:00
|
|
|
'lib/internal/error-serdes.js',
|
2018-05-02 15:39:08 +02:00
|
|
|
'lib/internal/fixed_queue.js',
|
2015-02-14 20:53:34 +01:00
|
|
|
'lib/internal/freelist.js',
|
2019-01-24 19:56:33 +01:00
|
|
|
'lib/internal/freeze_intrinsics.js',
|
2018-05-03 20:40:48 +02:00
|
|
|
'lib/internal/fs/promises.js',
|
2018-05-15 21:34:49 +02:00
|
|
|
'lib/internal/fs/read_file_context.js',
|
|
|
|
'lib/internal/fs/streams.js',
|
|
|
|
'lib/internal/fs/sync_write_stream.js',
|
2018-05-03 20:40:48 +02:00
|
|
|
'lib/internal/fs/utils.js',
|
2018-05-15 21:34:49 +02:00
|
|
|
'lib/internal/fs/watchers.js',
|
2017-03-06 03:13:09 +01:00
|
|
|
'lib/internal/http.js',
|
2018-10-10 20:23:48 +02:00
|
|
|
'lib/internal/idna.js',
|
2017-07-17 16:51:26 +02:00
|
|
|
'lib/internal/inspector_async_hook.js',
|
2018-12-19 23:14:57 +01:00
|
|
|
'lib/internal/js_stream_socket.js',
|
2015-09-26 23:27:36 +02:00
|
|
|
'lib/internal/linkedlist.js',
|
2019-01-15 16:12:21 +01:00
|
|
|
'lib/internal/main/check_syntax.js',
|
|
|
|
'lib/internal/main/eval_string.js',
|
|
|
|
'lib/internal/main/eval_stdin.js',
|
|
|
|
'lib/internal/main/inspect.js',
|
|
|
|
'lib/internal/main/print_bash_completion.js',
|
|
|
|
'lib/internal/main/print_help.js',
|
|
|
|
'lib/internal/main/prof_process.js',
|
|
|
|
'lib/internal/main/repl.js',
|
|
|
|
'lib/internal/main/run_main_module.js',
|
|
|
|
'lib/internal/main/run_third_party_main.js',
|
|
|
|
'lib/internal/main/worker_thread.js',
|
2018-03-06 19:30:18 +01:00
|
|
|
'lib/internal/modules/cjs/helpers.js',
|
|
|
|
'lib/internal/modules/cjs/loader.js',
|
2018-03-23 15:32:23 +01:00
|
|
|
'lib/internal/modules/esm/loader.js',
|
|
|
|
'lib/internal/modules/esm/create_dynamic_module.js',
|
|
|
|
'lib/internal/modules/esm/default_resolve.js',
|
|
|
|
'lib/internal/modules/esm/module_job.js',
|
|
|
|
'lib/internal/modules/esm/module_map.js',
|
|
|
|
'lib/internal/modules/esm/translators.js',
|
2016-01-26 15:12:41 +01:00
|
|
|
'lib/internal/net.js',
|
2018-11-04 21:52:50 +01:00
|
|
|
'lib/internal/options.js',
|
2018-09-13 21:27:12 +02:00
|
|
|
'lib/internal/policy/manifest.js',
|
2019-01-15 16:12:21 +01:00
|
|
|
'lib/internal/policy/sri.js',
|
2018-05-05 10:09:44 +02:00
|
|
|
'lib/internal/priority_queue.js',
|
2018-03-06 19:30:18 +01:00
|
|
|
'lib/internal/process/esm_loader.js',
|
2018-12-23 04:42:28 +01:00
|
|
|
'lib/internal/process/execution.js',
|
2018-06-17 18:40:58 +02:00
|
|
|
'lib/internal/process/main_thread_only.js',
|
|
|
|
'lib/internal/process/per_thread.js',
|
2018-09-13 21:27:12 +02:00
|
|
|
'lib/internal/process/policy.js',
|
2016-03-15 21:13:52 +01:00
|
|
|
'lib/internal/process/promises.js',
|
|
|
|
'lib/internal/process/stdio.js',
|
2016-01-20 20:38:35 +01:00
|
|
|
'lib/internal/process/warning.js',
|
2018-06-17 18:40:58 +02:00
|
|
|
'lib/internal/process/worker_thread_only.js',
|
2018-09-05 16:06:59 +02:00
|
|
|
'lib/internal/process/report.js',
|
2019-03-08 16:28:19 +01:00
|
|
|
'lib/internal/process/task_queues.js',
|
2017-02-04 07:06:04 +01:00
|
|
|
'lib/internal/querystring.js',
|
2015-11-16 20:09:26 +01:00
|
|
|
'lib/internal/readline.js',
|
2015-04-23 09:35:53 +02:00
|
|
|
'lib/internal/repl.js',
|
2017-09-23 09:10:47 +02:00
|
|
|
'lib/internal/repl/await.js',
|
2019-02-01 18:49:16 +01:00
|
|
|
'lib/internal/repl/history.js',
|
2019-01-19 15:34:00 +01:00
|
|
|
'lib/internal/repl/utils.js',
|
2015-09-26 23:27:36 +02:00
|
|
|
'lib/internal/socket_list.js',
|
2018-02-10 16:36:55 +01:00
|
|
|
'lib/internal/test/binding.js',
|
2017-02-03 22:05:59 +01:00
|
|
|
'lib/internal/timers.js',
|
2017-09-08 09:58:54 +02:00
|
|
|
'lib/internal/tls.js',
|
2017-07-18 01:47:12 +02:00
|
|
|
'lib/internal/trace_events_async_hooks.js',
|
2018-04-01 11:27:01 +02:00
|
|
|
'lib/internal/tty.js',
|
2016-05-31 20:52:19 +02:00
|
|
|
'lib/internal/url.js',
|
2015-05-28 16:01:56 +02:00
|
|
|
'lib/internal/util.js',
|
2017-10-06 06:27:46 +02:00
|
|
|
'lib/internal/util/comparisons.js',
|
2019-03-06 12:54:12 +01:00
|
|
|
'lib/internal/util/debuglog.js',
|
2018-09-13 17:39:10 +02:00
|
|
|
'lib/internal/util/inspect.js',
|
2017-10-29 18:19:24 +01:00
|
|
|
'lib/internal/util/inspector.js',
|
2017-09-28 09:16:41 +02:00
|
|
|
'lib/internal/util/types.js',
|
http2: introducing HTTP/2
At long last: The initial *experimental* implementation of HTTP/2.
This is an accumulation of the work that has been done in the nodejs/http2
repository, squashed down to a couple of commits. The original commit
history has been preserved in the nodejs/http2 repository.
This PR introduces the nghttp2 C library as a new dependency. This library
provides the majority of the HTTP/2 protocol implementation, with the rest
of the code here providing the mapping of the library into a usable JS API.
Within src, a handful of new node_http2_*.c and node_http2_*.h files are
introduced. These provide the internal mechanisms that interface with nghttp
and define the `process.binding('http2')` interface.
The JS API is defined within `internal/http2/*.js`.
There are two APIs provided: Core and Compat.
The Core API is HTTP/2 specific and is designed to be as minimal and as
efficient as possible.
The Compat API is intended to be as close to the existing HTTP/1 API as
possible, with some exceptions.
Tests, documentation and initial benchmarks are included.
The `http2` module is gated by a new `--expose-http2` command line flag.
When used, `require('http2')` will be exposed to users. Note that there
is an existing `http2` module on npm that would be impacted by the introduction
of this module, which is the main reason for gating this behind a flag.
When using `require('http2')` the first time, a process warning will be
emitted indicating that an experimental feature is being used.
To run the benchmarks, the `h2load` tool (part of the nghttp project) is
required: `./node benchmarks/http2/simple.js benchmarker=h2load`. Only
two benchmarks are currently available.
Additional configuration options to enable verbose debugging are provided:
```
$ ./configure --debug-http2 --debug-nghttp2
$ NODE_DEBUG=http2 ./node
```
The `--debug-http2` configuration option enables verbose debug statements
from the `src/node_http2_*` files. The `--debug-nghttp2` enables the nghttp
library's own verbose debug output. The `NODE_DEBUG=http2` enables JS-level
debug output.
The following illustrates as simple HTTP/2 server and client interaction:
(The HTTP/2 client and server support both plain text and TLS connections)
```jt client = http2.connect('http://localhost:80');
const req = client.request({ ':path': '/some/path' });
req.on('data', (chunk) => { /* do something with the data */ });
req.on('end', () => {
client.destroy();
});
// Plain text (non-TLS server)
const server = http2.createServer();
server.on('stream', (stream, requestHeaders) => {
stream.respond({ ':status': 200 });
stream.write('hello ');
stream.end('world');
});
server.listen(80);
```
```js
const http2 = require('http2');
const client = http2.connect('http://localhost');
```
Author: Anna Henningsen <anna@addaleax.net>
Author: Colin Ihrig <cjihrig@gmail.com>
Author: Daniel Bevenius <daniel.bevenius@gmail.com>
Author: James M Snell <jasnell@gmail.com>
Author: Jun Mukai
Author: Kelvin Jin
Author: Matteo Collina <matteo.collina@gmail.com>
Author: Robert Kowalski <rok@kowalski.gd>
Author: Santiago Gimeno <santiago.gimeno@gmail.com>
Author: Sebastiaan Deckers <sebdeckers83@gmail.com>
Author: Yosuke Furukawa <yosuke.furukawa@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/14239
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2017-07-17 19:17:16 +02:00
|
|
|
'lib/internal/http2/core.js',
|
|
|
|
'lib/internal/http2/compat.js',
|
|
|
|
'lib/internal/http2/util.js',
|
2015-11-25 15:08:58 +01:00
|
|
|
'lib/internal/v8_prof_polyfill.js',
|
|
|
|
'lib/internal/v8_prof_processor.js',
|
2018-04-15 11:16:50 +02:00
|
|
|
'lib/internal/validators.js',
|
2018-03-18 08:35:47 +01:00
|
|
|
'lib/internal/stream_base_commons.js',
|
2018-07-28 04:21:30 +02:00
|
|
|
'lib/internal/vm/source_text_module.js',
|
2017-09-05 22:38:32 +02:00
|
|
|
'lib/internal/worker.js',
|
2018-12-23 04:53:05 +01:00
|
|
|
'lib/internal/worker/io.js',
|
2015-08-26 23:41:28 +02:00
|
|
|
'lib/internal/streams/lazy_transform.js',
|
2017-12-19 13:33:31 +01:00
|
|
|
'lib/internal/streams/async_iterator.js',
|
2018-03-23 15:32:23 +01:00
|
|
|
'lib/internal/streams/buffer_list.js',
|
2017-12-23 05:55:37 +01:00
|
|
|
'lib/internal/streams/duplexpair.js',
|
2016-08-09 17:34:23 +02:00
|
|
|
'lib/internal/streams/legacy.js',
|
2017-05-06 14:20:52 +02:00
|
|
|
'lib/internal/streams/destroy.js',
|
2018-01-09 20:39:29 +01:00
|
|
|
'lib/internal/streams/state.js',
|
2018-04-04 16:52:19 +02:00
|
|
|
'lib/internal/streams/pipeline.js',
|
|
|
|
'lib/internal/streams/end-of-stream.js',
|
2015-11-25 15:08:58 +01:00
|
|
|
'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',
|
2018-01-30 15:23:16 +01:00
|
|
|
'deps/v8/tools/arguments.js',
|
2015-11-25 15:08:58 +01:00
|
|
|
'deps/v8/tools/tickprocessor.js',
|
|
|
|
'deps/v8/tools/SourceMap.js',
|
|
|
|
'deps/v8/tools/tickprocessor-driver.js',
|
2016-12-20 18:01:28 +01:00
|
|
|
'deps/node-inspect/lib/_inspect.js',
|
|
|
|
'deps/node-inspect/lib/internal/inspect_client.js',
|
|
|
|
'deps/node-inspect/lib/internal/inspect_repl.js',
|
2019-01-31 08:36:48 +01:00
|
|
|
'deps/acorn/acorn/dist/acorn.js',
|
|
|
|
'deps/acorn/acorn-walk/dist/walk.js',
|
2019-04-24 22:49:32 +02:00
|
|
|
'deps/acorn-plugins/acorn-bigint/index.js',
|
|
|
|
'deps/acorn-plugins/acorn-class-fields/index.js',
|
|
|
|
'deps/acorn-plugins/acorn-numeric-separator/index.js',
|
|
|
|
'deps/acorn-plugins/acorn-private-class-elements/index.js',
|
|
|
|
'deps/acorn-plugins/acorn-private-methods/index.js',
|
|
|
|
'deps/acorn-plugins/acorn-static-class-features/index.js',
|
2011-09-05 01:01:53 +02:00
|
|
|
],
|
2019-04-18 16:09:28 +02:00
|
|
|
'node_mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)node_mksnapshot<(EXECUTABLE_SUFFIX)',
|
2019-04-07 21:02:04 +02:00
|
|
|
'mkcodecache_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkcodecache<(EXECUTABLE_SUFFIX)',
|
2016-03-27 01:17:55 +01:00
|
|
|
'conditions': [
|
|
|
|
[ 'node_shared=="true"', {
|
|
|
|
'node_target_type%': 'shared_library',
|
2017-12-05 01:07:53 +01:00
|
|
|
'conditions': [
|
|
|
|
['OS=="aix"', {
|
|
|
|
# For AIX, always generate static library first,
|
|
|
|
# It needs an extra step to generate exp and
|
|
|
|
# then use both static lib and exp to create
|
|
|
|
# shared lib.
|
|
|
|
'node_intermediate_lib_type': 'static_library',
|
|
|
|
}, {
|
|
|
|
'node_intermediate_lib_type': 'shared_library',
|
|
|
|
}],
|
|
|
|
],
|
2016-03-27 01:17:55 +01:00
|
|
|
}, {
|
|
|
|
'node_target_type%': 'executable',
|
|
|
|
}],
|
2016-04-18 16:10:20 +02:00
|
|
|
[ 'OS=="win" and '
|
|
|
|
'node_use_openssl=="true" and '
|
|
|
|
'node_shared_openssl=="false"', {
|
2018-10-19 21:09:00 +02:00
|
|
|
'use_openssl_def%': 1,
|
2016-04-18 16:10:20 +02:00
|
|
|
}, {
|
2018-10-19 21:09:00 +02:00
|
|
|
'use_openssl_def%': 0,
|
2016-04-18 16:10:20 +02:00
|
|
|
}],
|
2016-03-27 01:17:55 +01:00
|
|
|
],
|
2011-08-04 08:36:27 +02:00
|
|
|
},
|
|
|
|
|
2019-04-06 20:22:45 +02:00
|
|
|
'target_defaults': {
|
|
|
|
# Putting these explicitly here so not to depend on `common.gypi`.
|
|
|
|
# `common.gypi` need to be more general because it is used to build userland native addons.
|
|
|
|
# Refs: https://github.com/nodejs/node-gyp/issues/1118
|
|
|
|
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
|
|
|
|
'xcode_settings': {
|
|
|
|
'WARNING_CFLAGS': [
|
|
|
|
'-Wall',
|
|
|
|
'-Wendif-labels',
|
|
|
|
'-W',
|
|
|
|
'-Wno-unused-parameter',
|
|
|
|
'-Werror=undefined-inline',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
# Relevant only for x86.
|
|
|
|
# Refs: https://github.com/nodejs/node/pull/25852
|
|
|
|
# Refs: https://docs.microsoft.com/en-us/cpp/build/reference/safeseh-image-has-safe-exception-handlers
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'ImageHasSafeExceptionHandlers': 'false',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2011-08-04 02:01:30 +02:00
|
|
|
'targets': [
|
|
|
|
{
|
2015-09-29 16:22:00 +02:00
|
|
|
'target_name': '<(node_core_target_name)',
|
2017-12-05 01:07:53 +01:00
|
|
|
'type': 'executable',
|
2019-04-07 21:02:04 +02:00
|
|
|
|
|
|
|
'defines': [
|
|
|
|
'NODE_WANT_INTERNALS=1',
|
2017-12-05 01:07:53 +01:00
|
|
|
],
|
2019-04-07 21:02:04 +02:00
|
|
|
|
2018-03-07 21:25:26 +01:00
|
|
|
'includes': [
|
|
|
|
'node.gypi'
|
|
|
|
],
|
2019-04-07 21:02:04 +02:00
|
|
|
|
2017-12-05 01:07:53 +01:00
|
|
|
'include_dirs': [
|
|
|
|
'src',
|
2019-01-07 20:36:35 +01:00
|
|
|
'deps/v8/include'
|
2017-12-05 01:07:53 +01:00
|
|
|
],
|
2019-04-07 21:02:04 +02:00
|
|
|
|
|
|
|
'sources': [
|
|
|
|
'src/node_main.cc'
|
|
|
|
],
|
|
|
|
|
2019-01-07 20:36:35 +01:00
|
|
|
'dependencies': [ 'deps/histogram/histogram.gyp:histogram' ],
|
2018-09-04 04:00:09 +02:00
|
|
|
|
2019-02-03 21:51:20 +01:00
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'GenerateMapFile': 'true', # /MAP
|
|
|
|
'MapExports': 'true', # /MAPINFO:EXPORTS
|
|
|
|
'RandomizedBaseAddress': 2, # enable ASLR
|
|
|
|
'DataExecutionPrevention': 2, # enable DEP
|
|
|
|
'AllowIsolation': 'true',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2018-09-04 04:00:09 +02:00
|
|
|
# - "C4244: conversion from 'type1' to 'type2', possible loss of data"
|
|
|
|
# Ususaly safe. Disable for `dep`, enable for `src`
|
|
|
|
'msvs_disabled_warnings!': [4244],
|
|
|
|
|
2017-12-05 01:07:53 +01:00
|
|
|
'conditions': [
|
|
|
|
[ 'node_intermediate_lib_type=="static_library" and '
|
|
|
|
'node_shared=="true" and OS=="aix"', {
|
|
|
|
# For AIX, shared lib is linked by static lib and .exp. In the
|
|
|
|
# case here, the executable needs to link to shared lib.
|
|
|
|
# Therefore, use 'node_aix_shared' target to generate the
|
|
|
|
# shared lib and then executable.
|
|
|
|
'dependencies': [ 'node_aix_shared' ],
|
|
|
|
}, {
|
|
|
|
'dependencies': [ '<(node_lib_target_name)' ],
|
|
|
|
}],
|
2019-02-03 21:51:20 +01:00
|
|
|
[ 'node_intermediate_lib_type=="static_library" and node_shared=="false"', {
|
2017-12-05 01:07:53 +01:00
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'-Wl,-force_load,<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)'
|
|
|
|
'<(node_core_target_name)<(STATIC_LIB_SUFFIX)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'AdditionalOptions': [
|
2019-04-08 16:48:09 +02:00
|
|
|
'/WHOLEARCHIVE:<(node_lib_target_name)<(STATIC_LIB_SUFFIX)',
|
2017-12-05 01:07:53 +01:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'conditions': [
|
2018-01-17 22:16:14 +01:00
|
|
|
['OS!="aix"', {
|
2017-12-05 01:07:53 +01:00
|
|
|
'ldflags': [
|
2017-10-16 15:34:42 +02:00
|
|
|
'-Wl,--whole-archive,<(obj_dir)/<(STATIC_LIB_PREFIX)'
|
2017-12-05 01:07:53 +01:00
|
|
|
'<(node_core_target_name)<(STATIC_LIB_SUFFIX)',
|
|
|
|
'-Wl,--no-whole-archive',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'OS=="win"', {
|
|
|
|
'sources': [ 'src/res/node.rc' ],
|
|
|
|
'conditions': [
|
|
|
|
[ 'node_use_etw=="true"', {
|
|
|
|
'sources': [
|
|
|
|
'tools/msvs/genfiles/node_etw_provider.rc'
|
|
|
|
],
|
2018-09-30 19:44:55 +02:00
|
|
|
}],
|
2017-12-05 01:07:53 +01:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
2018-02-02 19:06:33 +01:00
|
|
|
[ 'node_shared=="true"', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_LDFLAGS': [ '-Wl,-rpath,@loader_path', ],
|
|
|
|
},
|
|
|
|
}],
|
2018-09-05 16:06:59 +02:00
|
|
|
[ 'node_report=="true"', {
|
|
|
|
'defines': [
|
|
|
|
'NODE_REPORT',
|
|
|
|
'NODE_ARCH="<(target_arch)"',
|
|
|
|
'NODE_PLATFORM="<(OS)"',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
2019-04-08 20:41:52 +02:00
|
|
|
'libraries': [ 'Ws2_32' ],
|
2018-09-05 16:06:59 +02:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
2019-02-03 21:51:20 +01:00
|
|
|
['node_with_ltcg=="true"', {
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'WholeProgramOptimization': 'true' # /GL, whole program optimization, needed for LTCG
|
|
|
|
},
|
|
|
|
'VCLibrarianTool': {
|
|
|
|
'AdditionalOptions': [
|
|
|
|
'/LTCG:INCREMENTAL', # link time code generation
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'OptimizeReferences': 2, # /OPT:REF
|
|
|
|
'EnableCOMDATFolding': 2, # /OPT:ICF
|
|
|
|
'LinkIncremental': 1, # disable incremental linking
|
|
|
|
'AdditionalOptions': [
|
|
|
|
'/LTCG:INCREMENTAL', # incremental link-time code generation
|
|
|
|
],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'WholeProgramOptimization': 'false'
|
|
|
|
},
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'LinkIncremental': 2 # enable incremental linking
|
|
|
|
},
|
|
|
|
},
|
2019-04-07 21:02:04 +02:00
|
|
|
}],
|
|
|
|
['want_separate_host_toolset==0', {
|
|
|
|
'dependencies': [
|
|
|
|
'mkcodecache',
|
|
|
|
],
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'run_mkcodecache',
|
|
|
|
'process_outputs_as_sources': 1,
|
|
|
|
'inputs': [
|
|
|
|
'<(mkcodecache_exec)',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/node_code_cache.cc',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'<@(_inputs)',
|
|
|
|
'<@(_outputs)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'sources': [
|
|
|
|
'src/node_code_cache_stub.cc'
|
|
|
|
],
|
|
|
|
}],
|
2019-04-23 16:21:52 +02:00
|
|
|
['node_use_node_snapshot=="true"', {
|
2019-04-18 16:09:28 +02:00
|
|
|
'dependencies': [
|
|
|
|
'node_mksnapshot',
|
|
|
|
],
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'node_mksnapshot',
|
|
|
|
'process_outputs_as_sources': 1,
|
|
|
|
'inputs': [
|
|
|
|
'<(node_mksnapshot_exec)',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/node_snapshot.cc',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'<@(_inputs)',
|
|
|
|
'<@(_outputs)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'sources': [
|
|
|
|
'src/node_snapshot_stub.cc'
|
|
|
|
],
|
|
|
|
}],
|
2017-12-05 01:07:53 +01:00
|
|
|
],
|
2018-09-30 19:44:55 +02:00
|
|
|
}, # node_core_target_name
|
2017-12-05 01:07:53 +01:00
|
|
|
{
|
|
|
|
'target_name': '<(node_lib_target_name)',
|
|
|
|
'type': '<(node_intermediate_lib_type)',
|
2016-10-18 16:41:26 +02:00
|
|
|
'includes': [
|
2019-04-08 16:48:09 +02:00
|
|
|
'node.gypi',
|
2016-10-18 16:41:26 +02:00
|
|
|
],
|
|
|
|
|
2011-08-05 01:40:07 +02:00
|
|
|
'include_dirs': [
|
2011-08-08 21:11:48 +02:00
|
|
|
'src',
|
2017-11-06 09:59:01 +01:00
|
|
|
'<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
|
2011-08-05 01:40:07 +02:00
|
|
|
],
|
2019-01-07 20:36:35 +01:00
|
|
|
'dependencies': [ 'deps/histogram/histogram.gyp:histogram' ],
|
2011-08-05 01:40:07 +02:00
|
|
|
|
2011-08-04 02:01:30 +02:00
|
|
|
'sources': [
|
2019-03-22 10:23:51 +01:00
|
|
|
'src/api/async_resource.cc',
|
2019-01-16 20:00:55 +01:00
|
|
|
'src/api/callback.cc',
|
|
|
|
'src/api/encoding.cc',
|
|
|
|
'src/api/environment.cc',
|
|
|
|
'src/api/exceptions.cc',
|
|
|
|
'src/api/hooks.cc',
|
|
|
|
'src/api/utils.cc',
|
|
|
|
|
2017-11-14 13:34:52 +01:00
|
|
|
'src/async_wrap.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/cares_wrap.cc',
|
2016-06-29 20:20:54 +02:00
|
|
|
'src/connect_wrap.cc',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/connection_wrap.cc',
|
2018-06-07 16:54:29 +02:00
|
|
|
'src/debug_utils.cc',
|
2017-01-18 12:34:33 +01:00
|
|
|
'src/env.cc',
|
|
|
|
'src/fs_event_wrap.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/handle_wrap.cc',
|
2018-07-01 01:27:09 +02:00
|
|
|
'src/heap_utils.cc',
|
2018-10-19 21:10:59 +02:00
|
|
|
'src/js_native_api.h',
|
|
|
|
'src/js_native_api_types.h',
|
|
|
|
'src/js_native_api_v8.cc',
|
|
|
|
'src/js_native_api_v8.h',
|
|
|
|
'src/js_native_api_v8_internals.h',
|
2015-02-23 21:09:44 +01:00
|
|
|
'src/js_stream.cc',
|
2017-06-06 02:44:56 +02:00
|
|
|
'src/module_wrap.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/node.cc',
|
2017-03-20 22:55:26 +01:00
|
|
|
'src/node_api.cc',
|
2018-11-28 17:46:45 +01:00
|
|
|
'src/node_binding.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/node_buffer.cc',
|
2016-04-19 06:02:18 +02:00
|
|
|
'src/node_config.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/node_constants.cc',
|
vm, core, module: re-do vm to fix known issues
As documented in #3042 and in [1], the existing vm implementation has
many problems. All of these are solved by @brianmcd's [contextify][2]
package. This commit uses contextify as a conceptual base and its code
core to overhaul the vm module and fix its many edge cases and caveats.
Functionally, this fixes #3042. In particular:
- A context is now indistinguishable from the object it is based on
(the "sandbox"). A context is simply a sandbox that has been marked
by the vm module, via `vm.createContext`, with special internal
information that allows scripts to be run inside of it.
- Consequently, items added to the context from anywhere are
immediately visible to all code that can access that context, both
inside and outside the virtual machine.
This commit also smooths over the API very slightly:
- Parameter defaults are now uniformly triggered via `undefined`, per
ES6 semantics and previous discussion at [3].
- Several undocumented and problematic features have been removed, e.g.
the conflation of `vm.Script` with `vm` itself, and the fact that
`Script` instances also had all static `vm` methods. The API is now
exactly as documented (although arguably the existence of the
`vm.Script` export is not yet documented, just the `Script` class
itself).
In terms of implementation, this replaces node_script.cc with
node_contextify.cc, which is derived originally from [4] (see [5]) but
has since undergone extensive modifications and iterations to expose
the most useful C++ API and use the coding conventions and utilities of
Node core.
The bindings exposed by `process.binding('contextify')`
(node_contextify.cc) replace those formerly exposed by
`process.binding('evals')` (node_script.cc). They are:
- ContextifyScript(code, [filename]), with methods:
- runInThisContext()
- runInContext(sandbox, [timeout])
- makeContext(sandbox)
From this, the vm.js file builds the entire documented vm module API.
node.js and module.js were modified to use this new native binding, or
the vm module itself where possible. This introduces an extra line or
two into the stack traces of module compilation (and thus into most
stack traces), explaining the changed tests.
The tests were also updated slightly, with all vm-related simple tests
consolidated as test/simple/test-vm-* (some of them were formerly
test/simple/test-script-*). At the same time they switched from
`common.debug` to `console.error` and were updated to use
`assert.throws` instead of rolling their own error-testing methods.
New tests were also added, of course, demonstrating the new
capabilities and fixes.
[1]: http://nodejs.org/docs/v0.10.16/api/vm.html#vm_caveats
[2]: https://github.com/brianmcd/contextify
[3]: https://github.com/joyent/node/issues/5323#issuecomment-20250726
[4]: https://github.com/kkoopa/contextify/blob/bf123f3ef960f0943d1e30bda02e3163a004e964/src/contextify.cc
[5]: https://gist.github.com/domenic/6068120
2013-07-27 06:34:12 +02:00
|
|
|
'src/node_contextify.cc',
|
2018-12-15 20:13:12 +01:00
|
|
|
'src/node_credentials.cc',
|
2018-01-19 21:42:59 +01:00
|
|
|
'src/node_domain.cc',
|
2018-12-15 18:32:39 +01:00
|
|
|
'src/node_env_var.cc',
|
2018-11-03 15:45:40 +01:00
|
|
|
'src/node_errors.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/node_file.cc',
|
2018-11-30 07:39:02 +01:00
|
|
|
'src/node_http_parser_llhttp.cc',
|
|
|
|
'src/node_http_parser_traditional.cc',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/node_http2.cc',
|
|
|
|
'src/node_i18n.cc',
|
2019-04-14 08:41:04 +02:00
|
|
|
'src/node_main_instance.cc',
|
2017-09-05 22:38:32 +02:00
|
|
|
'src/node_messaging.cc',
|
2018-12-01 21:16:09 +01:00
|
|
|
'src/node_metadata.cc',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/node_native_module.cc',
|
2019-04-09 23:08:48 +02:00
|
|
|
'src/node_native_module_env.cc',
|
2018-08-10 02:45:28 +02:00
|
|
|
'src/node_options.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/node_os.cc',
|
2017-08-08 00:53:24 +02:00
|
|
|
'src/node_perf.cc',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/node_platform.cc',
|
2017-12-26 01:17:25 +01:00
|
|
|
'src/node_postmortem_metadata.cc',
|
2018-12-31 15:59:40 +01:00
|
|
|
'src/node_process_events.cc',
|
2019-01-08 17:00:33 +01:00
|
|
|
'src/node_process_methods.cc',
|
|
|
|
'src/node_process_object.cc',
|
2017-01-27 06:38:11 +01:00
|
|
|
'src/node_serdes.cc',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/node_stat_watcher.cc',
|
2018-12-19 13:33:20 +01:00
|
|
|
'src/node_symbols.cc',
|
2018-12-19 11:44:14 +01:00
|
|
|
'src/node_task_queue.cc',
|
2017-07-18 01:47:12 +02:00
|
|
|
'src/node_trace_events.cc',
|
2018-01-27 22:01:32 +01:00
|
|
|
'src/node_types.cc',
|
2016-05-31 20:52:19 +02:00
|
|
|
'src/node_url.cc',
|
2015-09-29 21:30:22 +02:00
|
|
|
'src/node_util.cc',
|
2013-10-28 14:57:47 +01:00
|
|
|
'src/node_v8.cc',
|
2012-10-08 21:24:08 +02:00
|
|
|
'src/node_watchdog.cc',
|
2017-09-01 17:03:41 +02:00
|
|
|
'src/node_worker.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',
|
2017-01-18 12:34:33 +01:00
|
|
|
'src/process_wrap.cc',
|
2018-05-13 19:39:32 +02:00
|
|
|
'src/sharedarraybuffer_metadata.cc',
|
2012-08-20 23:59:21 +02:00
|
|
|
'src/signal_wrap.cc',
|
2014-02-10 21:22:06 +01:00
|
|
|
'src/spawn_sync.cc',
|
stream_base: introduce StreamBase
StreamBase is an improved way to write C++ streams. The class itself is
for separting `StreamWrap` (with the methods like `.writeAsciiString`,
`.writeBuffer`, `.writev`, etc) from the `HandleWrap` class, making
possible to write abstract C++ streams that are not bound to any uv
socket.
The following methods are important part of the abstraction (which
mimics libuv's stream API):
* Events:
* `OnAlloc(size_t size, uv_buf_t*)`
* `OnRead(ssize_t nread, const uv_buf_t*, uv_handle_type pending)`
* `OnAfterWrite(WriteWrap*)`
* Wrappers:
* `DoShutdown(ShutdownWrap*)`
* `DoTryWrite(uv_buf_t** bufs, size_t* count)`
* `DoWrite(WriteWrap*, uv_buf_t*, size_t count, uv_stream_t* handle)`
* `Error()`
* `ClearError()`
The implementation should provide all of these methods, thus providing
the access to the underlying resource (be it uv handle, TLS socket, or
anything else).
A C++ stream may consume the input of another stream by replacing the
event callbacks and proxying the writes. This kind of API is actually
used now for the TLSWrap implementation, making it possible to wrap TLS
stream into another TLS stream. Thus legacy API calls are no longer
required in `_tls_wrap.js`.
PR-URL: https://github.com/iojs/io.js/pull/840
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
2015-02-22 19:59:07 +01:00
|
|
|
'src/stream_base.cc',
|
2018-02-13 01:23:50 +01:00
|
|
|
'src/stream_pipe.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/stream_wrap.cc',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/string_bytes.cc',
|
|
|
|
'src/string_decoder.cc',
|
2011-08-08 21:11:48 +02:00
|
|
|
'src/tcp_wrap.cc',
|
2018-05-13 17:42:22 +02:00
|
|
|
'src/timers.cc',
|
2017-01-18 12:34:33 +01:00
|
|
|
'src/tracing/agent.cc',
|
|
|
|
'src/tracing/node_trace_buffer.cc',
|
|
|
|
'src/tracing/node_trace_writer.cc',
|
|
|
|
'src/tracing/trace_event.cc',
|
2018-06-22 21:50:01 +02:00
|
|
|
'src/tracing/traced_value.cc',
|
2011-09-20 22:38:07 +02:00
|
|
|
'src/tty_wrap.cc',
|
2011-08-25 01:20:08 +02:00
|
|
|
'src/udp_wrap.cc',
|
2017-01-17 07:51:25 +01:00
|
|
|
'src/util.cc',
|
2013-07-16 23:08:25 +02:00
|
|
|
'src/uv.cc',
|
2011-08-15 18:35:48 +02:00
|
|
|
# headers to make for a more pleasant IDE experience
|
2017-08-25 21:45:00 +02:00
|
|
|
'src/aliased_buffer.h',
|
2017-11-14 13:34:52 +01:00
|
|
|
'src/async_wrap.h',
|
|
|
|
'src/async_wrap-inl.h',
|
2017-11-14 13:34:52 +01:00
|
|
|
'src/base_object.h',
|
|
|
|
'src/base_object-inl.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/base64.h',
|
2016-06-29 20:20:54 +02:00
|
|
|
'src/connect_wrap.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/connection_wrap.h',
|
2018-05-27 16:37:30 +02:00
|
|
|
'src/debug_utils.h',
|
2013-08-11 00:26:11 +02:00
|
|
|
'src/env.h',
|
|
|
|
'src/env-inl.h',
|
2011-08-15 18:35:48 +02:00
|
|
|
'src/handle_wrap.h',
|
2019-01-07 20:36:35 +01:00
|
|
|
'src/histogram.h',
|
|
|
|
'src/histogram-inl.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/http_parser_adaptor.h',
|
2015-02-23 21:09:44 +01:00
|
|
|
'src/js_stream.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/memory_tracker.h',
|
|
|
|
'src/memory_tracker-inl.h',
|
2017-06-06 02:44:56 +02:00
|
|
|
'src/module_wrap.h',
|
2011-08-15 18:35:48 +02:00
|
|
|
'src/node.h',
|
2018-11-06 12:17:05 +01:00
|
|
|
'src/node_api.h',
|
|
|
|
'src/node_api_types.h',
|
2018-11-28 17:46:45 +01:00
|
|
|
'src/node_binding.h',
|
2011-08-15 18:35:48 +02:00
|
|
|
'src/node_buffer.h',
|
|
|
|
'src/node_constants.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/node_context_data.h',
|
2017-12-09 17:32:34 +01:00
|
|
|
'src/node_contextify.h',
|
2018-11-06 12:17:05 +01:00
|
|
|
'src/node_errors.h',
|
2017-12-14 19:49:55 +01:00
|
|
|
'src/node_file.h',
|
2018-11-30 07:39:02 +01:00
|
|
|
'src/node_http_parser_impl.h',
|
http2: introducing HTTP/2
At long last: The initial *experimental* implementation of HTTP/2.
This is an accumulation of the work that has been done in the nodejs/http2
repository, squashed down to a couple of commits. The original commit
history has been preserved in the nodejs/http2 repository.
This PR introduces the nghttp2 C library as a new dependency. This library
provides the majority of the HTTP/2 protocol implementation, with the rest
of the code here providing the mapping of the library into a usable JS API.
Within src, a handful of new node_http2_*.c and node_http2_*.h files are
introduced. These provide the internal mechanisms that interface with nghttp
and define the `process.binding('http2')` interface.
The JS API is defined within `internal/http2/*.js`.
There are two APIs provided: Core and Compat.
The Core API is HTTP/2 specific and is designed to be as minimal and as
efficient as possible.
The Compat API is intended to be as close to the existing HTTP/1 API as
possible, with some exceptions.
Tests, documentation and initial benchmarks are included.
The `http2` module is gated by a new `--expose-http2` command line flag.
When used, `require('http2')` will be exposed to users. Note that there
is an existing `http2` module on npm that would be impacted by the introduction
of this module, which is the main reason for gating this behind a flag.
When using `require('http2')` the first time, a process warning will be
emitted indicating that an experimental feature is being used.
To run the benchmarks, the `h2load` tool (part of the nghttp project) is
required: `./node benchmarks/http2/simple.js benchmarker=h2load`. Only
two benchmarks are currently available.
Additional configuration options to enable verbose debugging are provided:
```
$ ./configure --debug-http2 --debug-nghttp2
$ NODE_DEBUG=http2 ./node
```
The `--debug-http2` configuration option enables verbose debug statements
from the `src/node_http2_*` files. The `--debug-nghttp2` enables the nghttp
library's own verbose debug output. The `NODE_DEBUG=http2` enables JS-level
debug output.
The following illustrates as simple HTTP/2 server and client interaction:
(The HTTP/2 client and server support both plain text and TLS connections)
```jt client = http2.connect('http://localhost:80');
const req = client.request({ ':path': '/some/path' });
req.on('data', (chunk) => { /* do something with the data */ });
req.on('end', () => {
client.destroy();
});
// Plain text (non-TLS server)
const server = http2.createServer();
server.on('stream', (stream, requestHeaders) => {
stream.respond({ ':status': 200 });
stream.write('hello ');
stream.end('world');
});
server.listen(80);
```
```js
const http2 = require('http2');
const client = http2.connect('http://localhost');
```
Author: Anna Henningsen <anna@addaleax.net>
Author: Colin Ihrig <cjihrig@gmail.com>
Author: Daniel Bevenius <daniel.bevenius@gmail.com>
Author: James M Snell <jasnell@gmail.com>
Author: Jun Mukai
Author: Kelvin Jin
Author: Matteo Collina <matteo.collina@gmail.com>
Author: Robert Kowalski <rok@kowalski.gd>
Author: Santiago Gimeno <santiago.gimeno@gmail.com>
Author: Sebastiaan Deckers <sebdeckers83@gmail.com>
Author: Yosuke Furukawa <yosuke.furukawa@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/14239
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2017-07-17 19:17:16 +02:00
|
|
|
'src/node_http2.h',
|
2017-08-25 21:45:00 +02:00
|
|
|
'src/node_http2_state.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/node_i18n.h',
|
2013-08-11 00:26:11 +02:00
|
|
|
'src/node_internals.h',
|
2019-04-14 08:41:04 +02:00
|
|
|
'src/node_main_instance.h',
|
2017-09-05 22:38:32 +02:00
|
|
|
'src/node_messaging.h',
|
2018-12-01 21:16:09 +01:00
|
|
|
'src/node_metadata.h',
|
2016-06-18 01:39:05 +02:00
|
|
|
'src/node_mutex.h',
|
2018-11-03 07:26:32 +01:00
|
|
|
'src/node_native_module.h',
|
2019-04-09 23:08:48 +02:00
|
|
|
'src/node_native_module_env.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/node_object_wrap.h',
|
2018-08-10 02:45:28 +02:00
|
|
|
'src/node_options.h',
|
|
|
|
'src/node_options-inl.h',
|
2017-08-08 00:53:24 +02:00
|
|
|
'src/node_perf.h',
|
|
|
|
'src/node_perf_common.h',
|
2018-02-21 15:24:18 +01:00
|
|
|
'src/node_platform.h',
|
2018-12-31 16:18:08 +01:00
|
|
|
'src/node_process.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/node_revert.h',
|
2011-08-15 18:35:48 +02:00
|
|
|
'src/node_root_certs.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/node_stat_watcher.h',
|
2018-11-14 15:38:12 +01:00
|
|
|
'src/node_union_bytes.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/node_url.h',
|
2011-08-15 18:35:48 +02:00
|
|
|
'src/node_version.h',
|
2019-01-16 19:34:43 +01:00
|
|
|
'src/node_v8_platform-inl.h',
|
2012-10-08 21:24:08 +02:00
|
|
|
'src/node_watchdog.h',
|
2017-09-01 17:03:41 +02:00
|
|
|
'src/node_worker.h',
|
2011-08-15 18:35:48 +02:00
|
|
|
'src/pipe_wrap.h',
|
2017-11-14 13:34:52 +01:00
|
|
|
'src/req_wrap.h',
|
|
|
|
'src/req_wrap-inl.h',
|
2018-05-13 19:39:32 +02:00
|
|
|
'src/sharedarraybuffer_metadata.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/spawn_sync.h',
|
stream_base: introduce StreamBase
StreamBase is an improved way to write C++ streams. The class itself is
for separting `StreamWrap` (with the methods like `.writeAsciiString`,
`.writeBuffer`, `.writev`, etc) from the `HandleWrap` class, making
possible to write abstract C++ streams that are not bound to any uv
socket.
The following methods are important part of the abstraction (which
mimics libuv's stream API):
* Events:
* `OnAlloc(size_t size, uv_buf_t*)`
* `OnRead(ssize_t nread, const uv_buf_t*, uv_handle_type pending)`
* `OnAfterWrite(WriteWrap*)`
* Wrappers:
* `DoShutdown(ShutdownWrap*)`
* `DoTryWrite(uv_buf_t** bufs, size_t* count)`
* `DoWrite(WriteWrap*, uv_buf_t*, size_t count, uv_stream_t* handle)`
* `Error()`
* `ClearError()`
The implementation should provide all of these methods, thus providing
the access to the underlying resource (be it uv handle, TLS socket, or
anything else).
A C++ stream may consume the input of another stream by replacing the
event callbacks and proxying the writes. This kind of API is actually
used now for the TLSWrap implementation, making it possible to wrap TLS
stream into another TLS stream. Thus legacy API calls are no longer
required in `_tls_wrap.js`.
PR-URL: https://github.com/iojs/io.js/pull/840
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
2015-02-22 19:59:07 +01:00
|
|
|
'src/stream_base.h',
|
2015-02-25 18:43:14 +01:00
|
|
|
'src/stream_base-inl.h',
|
2018-02-13 01:23:50 +01:00
|
|
|
'src/stream_pipe.h',
|
2011-08-15 18:35:48 +02:00
|
|
|
'src/stream_wrap.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/string_bytes.h',
|
|
|
|
'src/string_decoder.h',
|
|
|
|
'src/string_decoder-inl.h',
|
|
|
|
'src/string_search.h',
|
|
|
|
'src/tcp_wrap.h',
|
2017-01-17 08:12:08 +01:00
|
|
|
'src/tracing/agent.h',
|
|
|
|
'src/tracing/node_trace_buffer.h',
|
|
|
|
'src/tracing/node_trace_writer.h',
|
2017-10-30 13:45:10 +01:00
|
|
|
'src/tracing/trace_event.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/tracing/trace_event_common.h',
|
2018-06-22 21:50:01 +02:00
|
|
|
'src/tracing/traced_value.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/tty_wrap.h',
|
|
|
|
'src/udp_wrap.h',
|
2013-08-11 00:26:11 +02:00
|
|
|
'src/util.h',
|
|
|
|
'src/util-inl.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
# Dependency headers
|
2011-08-15 18:35:48 +02:00
|
|
|
'deps/http_parser/http_parser.h',
|
2015-04-03 01:13:43 +02:00
|
|
|
'deps/v8/include/v8.h',
|
2011-09-05 01:01:53 +02:00
|
|
|
# javascript files to make for an even more pleasant IDE experience
|
|
|
|
'<@(library_files)',
|
2018-11-20 03:36:32 +01:00
|
|
|
# node.gyp is added by default, common.gypi is added for change detection
|
2011-10-28 12:10:24 +02:00
|
|
|
'common.gypi',
|
2011-08-05 01:40:07 +02:00
|
|
|
],
|
|
|
|
|
2017-11-06 10:30:29 +01:00
|
|
|
'variables': {
|
|
|
|
'openssl_system_ca_path%': '',
|
|
|
|
},
|
|
|
|
|
2011-08-05 01:40:07 +02:00
|
|
|
'defines': [
|
2015-01-08 13:05:51 +01:00
|
|
|
'NODE_ARCH="<(target_arch)"',
|
|
|
|
'NODE_PLATFORM="<(OS)"',
|
|
|
|
'NODE_WANT_INTERNALS=1',
|
2015-07-01 23:47:37 +02:00
|
|
|
# Warn when using deprecated V8 APIs.
|
|
|
|
'V8_DEPRECATION_WARNINGS=1',
|
2017-11-06 10:30:29 +01:00
|
|
|
'NODE_OPENSSL_SYSTEM_CERT_PATH="<(openssl_system_ca_path)"',
|
2011-08-04 02:01:30 +02:00
|
|
|
],
|
2018-09-04 04:00:09 +02:00
|
|
|
|
|
|
|
# - "C4244: conversion from 'type1' to 'type2', possible loss of data"
|
|
|
|
# Ususaly safe. Disable for `dep`, enable for `src`
|
|
|
|
'msvs_disabled_warnings!': [4244],
|
|
|
|
|
2017-11-02 05:19:16 +01:00
|
|
|
'conditions': [
|
|
|
|
[ 'node_shared=="true" and node_module_version!="" and OS!="win"', {
|
|
|
|
'product_extension': '<(shlib_suffix)',
|
2018-02-02 19:06:33 +01:00
|
|
|
'xcode_settings': {
|
|
|
|
'LD_DYLIB_INSTALL_NAME':
|
|
|
|
'@rpath/lib<(node_core_target_name).<(shlib_suffix)'
|
|
|
|
},
|
2017-11-08 09:41:09 +01:00
|
|
|
}],
|
2017-12-05 01:07:53 +01:00
|
|
|
['node_shared=="true" and OS=="aix"', {
|
|
|
|
'product_name': 'node_base',
|
|
|
|
}],
|
2017-11-08 09:41:09 +01:00
|
|
|
[ 'v8_enable_inspector==1', {
|
2018-09-27 16:45:24 +02:00
|
|
|
'includes' : [ 'src/inspector/node_inspector.gypi' ],
|
2017-11-08 09:41:09 +01:00
|
|
|
}, {
|
|
|
|
'defines': [ 'HAVE_INSPECTOR=0' ]
|
|
|
|
}],
|
|
|
|
[ 'OS=="win"', {
|
2017-08-23 09:52:59 +02:00
|
|
|
'conditions': [
|
2017-12-05 01:07:53 +01:00
|
|
|
[ 'node_intermediate_lib_type!="static_library"', {
|
2017-08-23 09:52:59 +02:00
|
|
|
'sources': [
|
|
|
|
'src/res/node.rc',
|
|
|
|
],
|
|
|
|
}],
|
2017-11-08 09:41:09 +01:00
|
|
|
],
|
2019-04-08 20:41:52 +02:00
|
|
|
'libraries': [
|
|
|
|
'Dbghelp',
|
|
|
|
'Psapi',
|
|
|
|
],
|
2017-11-08 09:41:09 +01:00
|
|
|
}],
|
2017-12-05 01:07:53 +01:00
|
|
|
[ 'node_use_etw=="true"', {
|
|
|
|
'defines': [ 'HAVE_ETW=1' ],
|
|
|
|
'dependencies': [ 'node_etw' ],
|
|
|
|
'include_dirs': [
|
|
|
|
'src',
|
|
|
|
'tools/msvs/genfiles',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'src/node_win32_etw_provider.h',
|
|
|
|
'src/node_win32_etw_provider-inl.h',
|
|
|
|
'src/node_win32_etw_provider.cc',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/node_dtrace.h',
|
2017-12-05 01:07:53 +01:00
|
|
|
'src/node_dtrace.cc',
|
|
|
|
'tools/msvs/genfiles/node_etw_provider.h',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['node_intermediate_lib_type != "static_library"', {
|
|
|
|
'sources': [
|
|
|
|
'tools/msvs/genfiles/node_etw_provider.rc',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
2017-11-08 09:41:09 +01:00
|
|
|
[ 'node_use_dtrace=="true"', {
|
|
|
|
'defines': [ 'HAVE_DTRACE=1' ],
|
|
|
|
'dependencies': [
|
|
|
|
'node_dtrace_header',
|
|
|
|
'specialize_node_d',
|
|
|
|
],
|
|
|
|
'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
|
|
|
|
#
|
|
|
|
# DTrace is supported on linux, 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 mac and linux
|
|
|
|
# node_dtrace_provider.o All except OS X. "dtrace -G" is not
|
|
|
|
# used on OS X.
|
2018-01-23 11:49:25 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2018-11-20 03:36:32 +01:00
|
|
|
'sources': [
|
|
|
|
'src/node_dtrace.h',
|
|
|
|
'src/node_dtrace.cc',
|
|
|
|
],
|
2017-11-08 09:41:09 +01:00
|
|
|
'conditions': [
|
|
|
|
[ 'OS=="linux"', {
|
|
|
|
'sources': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'OS!="mac" and OS!="linux"', {
|
|
|
|
'sources': [
|
2018-01-23 11:49:25 +01:00
|
|
|
'src/node_dtrace_ustack.cc',
|
|
|
|
'src/node_dtrace_provider.cc',
|
2017-11-08 09:41:09 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
] ]
|
|
|
|
} ],
|
|
|
|
[ 'node_use_openssl=="true"', {
|
|
|
|
'sources': [
|
|
|
|
'src/node_crypto.cc',
|
|
|
|
'src/node_crypto_bio.cc',
|
|
|
|
'src/node_crypto_clienthello.cc',
|
|
|
|
'src/node_crypto.h',
|
|
|
|
'src/node_crypto_bio.h',
|
|
|
|
'src/node_crypto_clienthello.h',
|
2018-11-20 03:36:32 +01:00
|
|
|
'src/node_crypto_clienthello-inl.h',
|
|
|
|
'src/node_crypto_groups.h',
|
2017-11-08 09:41:09 +01:00
|
|
|
'src/tls_wrap.cc',
|
|
|
|
'src/tls_wrap.h'
|
|
|
|
],
|
|
|
|
}],
|
2018-09-05 16:06:59 +02:00
|
|
|
[ 'node_report=="true"', {
|
|
|
|
'sources': [
|
|
|
|
'src/node_report.cc',
|
|
|
|
'src/node_report_module.cc',
|
|
|
|
'src/node_report_utils.cc',
|
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
'NODE_REPORT',
|
|
|
|
'NODE_ARCH="<(target_arch)"',
|
|
|
|
'NODE_PLATFORM="<(OS)"',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
2019-04-08 20:41:52 +02:00
|
|
|
'libraries': [ 'Ws2_32' ],
|
2018-09-05 16:06:59 +02:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
2018-03-23 20:16:48 +01:00
|
|
|
[ 'node_use_large_pages=="true" and OS=="linux"', {
|
|
|
|
'defines': [ 'NODE_ENABLE_LARGE_CODE_PAGES=1' ],
|
|
|
|
# The current implementation of Large Pages is under Linux.
|
|
|
|
# Other implementations are possible but not currently supported.
|
|
|
|
'sources': [
|
|
|
|
'src/large_pages/node_large_page.cc',
|
|
|
|
'src/large_pages/node_large_page.h'
|
|
|
|
],
|
|
|
|
}],
|
2016-04-18 16:10:20 +02:00
|
|
|
[ 'use_openssl_def==1', {
|
2018-09-30 19:44:55 +02:00
|
|
|
# TODO(bnoordhuis) Make all platforms export the same list of symbols.
|
|
|
|
# Teach mkssldef.py to generate linker maps that UNIX linkers understand.
|
2016-04-18 16:10:20 +02:00
|
|
|
'variables': {
|
|
|
|
'mkssldef_flags': [
|
|
|
|
# Categories to export.
|
|
|
|
'-CAES,BF,BIO,DES,DH,DSA,EC,ECDH,ECDSA,ENGINE,EVP,HMAC,MD4,MD5,'
|
2018-03-17 05:13:47 +01:00
|
|
|
'PSK,RC2,RC4,RSA,SHA,SHA0,SHA1,SHA256,SHA512,SOCK,STDIO,TLSEXT,'
|
2019-05-06 21:59:11 +02:00
|
|
|
'UI,FP_API,TLS1_METHOD,TLS1_1_METHOD,TLS1_2_METHOD,SCRYPT,OCSP,'
|
2019-02-07 20:20:25 +01:00
|
|
|
'NEXTPROTONEG,RMD160,CAST,DEPRECATEDIN_1_1_0,DEPRECATEDIN_1_2_0',
|
2016-04-18 16:10:20 +02:00
|
|
|
# Defines.
|
|
|
|
'-DWIN32',
|
|
|
|
# Symbols to filter from the export list.
|
|
|
|
'-X^DSO',
|
|
|
|
'-X^_',
|
|
|
|
'-X^private_',
|
2016-08-05 04:36:40 +02:00
|
|
|
# Base generated DEF on zlib.def
|
|
|
|
'-Bdeps/zlib/win32/zlib.def'
|
2016-04-18 16:10:20 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
'conditions': [
|
|
|
|
['openssl_fips!=""', {
|
|
|
|
'variables': { 'mkssldef_flags': ['-DOPENSSL_FIPS'] },
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'mkssldef',
|
|
|
|
'inputs': [
|
2018-03-07 14:31:05 +01:00
|
|
|
'deps/openssl/openssl/util/libcrypto.num',
|
|
|
|
'deps/openssl/openssl/util/libssl.num',
|
2016-04-18 16:10:20 +02:00
|
|
|
],
|
|
|
|
'outputs': ['<(SHARED_INTERMEDIATE_DIR)/openssl.def'],
|
2018-09-30 19:44:55 +02:00
|
|
|
'process_outputs_as_sources': 1,
|
2016-04-18 16:10:20 +02:00
|
|
|
'action': [
|
|
|
|
'python',
|
|
|
|
'tools/mkssldef.py',
|
|
|
|
'<@(mkssldef_flags)',
|
|
|
|
'-o',
|
|
|
|
'<@(_outputs)',
|
|
|
|
'<@(_inputs)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2011-08-04 02:01:30 +02:00
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'node_js2c',
|
2017-02-02 23:23:49 +01:00
|
|
|
'process_outputs_as_sources': 1,
|
2011-08-04 02:01:30 +02:00
|
|
|
'inputs': [
|
2019-01-15 00:43:16 +01:00
|
|
|
# Put the code first so it's a dependency and can be used for invocation.
|
|
|
|
'tools/js2c.py',
|
2011-08-04 02:01:30 +02:00
|
|
|
'<@(library_files)',
|
2018-10-09 16:36:52 +02:00
|
|
|
'config.gypi',
|
2019-04-11 16:45:01 +02:00
|
|
|
'tools/js2c_macros/check_macros.py'
|
2011-08-04 02:01:30 +02:00
|
|
|
],
|
|
|
|
'outputs': [
|
2017-02-02 23:23:49 +01:00
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/node_javascript.cc',
|
2011-08-04 02:01:30 +02:00
|
|
|
],
|
2011-08-05 01:40:07 +02:00
|
|
|
'conditions': [
|
2017-12-05 01:07:53 +01:00
|
|
|
[ 'node_use_dtrace=="false" and node_use_etw=="false"', {
|
2019-04-11 16:45:01 +02:00
|
|
|
'inputs': [ 'tools/js2c_macros/notrace_macros.py' ]
|
2013-07-24 12:53:28 +02:00
|
|
|
}],
|
2018-03-02 04:04:59 +01:00
|
|
|
[ 'node_debug_lib=="false"', {
|
2019-04-11 16:45:01 +02:00
|
|
|
'inputs': [ 'tools/js2c_macros/nodcheck_macros.py' ]
|
2018-03-02 04:04:59 +01:00
|
|
|
}],
|
|
|
|
[ 'node_debug_lib=="true"', {
|
2019-04-11 16:45:01 +02:00
|
|
|
'inputs': [ 'tools/js2c_macros/dcheck_macros.py' ]
|
2012-11-21 00:27:22 +01:00
|
|
|
}]
|
|
|
|
],
|
2013-07-24 12:53:28 +02:00
|
|
|
'action': [
|
2019-01-15 00:43:16 +01:00
|
|
|
'python', '<@(_inputs)',
|
|
|
|
'--target', '<@(_outputs)',
|
2013-07-24 12:53:28 +02:00
|
|
|
],
|
2011-08-04 02:01:30 +02:00
|
|
|
},
|
|
|
|
],
|
2018-09-30 19:44:55 +02:00
|
|
|
}, # node_lib_target_name
|
|
|
|
{
|
|
|
|
# generate ETW header and resource files
|
|
|
|
'target_name': 'node_etw',
|
|
|
|
'type': 'none',
|
|
|
|
'conditions': [
|
|
|
|
[ 'node_use_etw=="true"', {
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'node_etw',
|
|
|
|
'inputs': [ 'src/res/node_etw_provider.man' ],
|
|
|
|
'outputs': [
|
|
|
|
'tools/msvs/genfiles/node_etw_provider.rc',
|
|
|
|
'tools/msvs/genfiles/node_etw_provider.h',
|
|
|
|
'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
|
|
|
|
],
|
|
|
|
'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
} ]
|
|
|
|
]
|
|
|
|
}, # node_etw
|
2012-03-28 19:26:10 +02:00
|
|
|
{
|
|
|
|
'target_name': 'node_dtrace_header',
|
|
|
|
'type': 'none',
|
|
|
|
'conditions': [
|
2014-12-11 18:04:31 +01:00
|
|
|
[ 'node_use_dtrace=="true" and OS!="linux"', {
|
2012-03-28 19:26:10 +02:00
|
|
|
'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)' ]
|
|
|
|
}
|
|
|
|
]
|
2014-12-09 20:02:39 +01:00
|
|
|
} ],
|
|
|
|
[ '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)' ]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
} ],
|
2012-03-28 19:26:10 +02:00
|
|
|
]
|
2018-09-30 19:44:55 +02:00
|
|
|
}, # node_dtrace_header
|
2012-03-28 19:26:10 +02:00
|
|
|
{
|
|
|
|
'target_name': 'node_dtrace_provider',
|
|
|
|
'type': 'none',
|
|
|
|
'conditions': [
|
2013-10-28 20:18:59 +01:00
|
|
|
[ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
|
2012-03-28 19:26:10 +02:00
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'node_dtrace_provider_o',
|
|
|
|
'inputs': [
|
2017-10-16 15:34:42 +02:00
|
|
|
'<(obj_dir)/<(node_lib_target_name)/src/node_dtrace.o',
|
2012-03-28 19:26:10 +02:00
|
|
|
],
|
|
|
|
'outputs': [
|
2017-10-16 15:34:42 +02:00
|
|
|
'<(obj_dir)/<(node_lib_target_name)/src/node_dtrace_provider.o'
|
2012-03-28 19:26:10 +02:00
|
|
|
],
|
2013-04-17 01:18:07 +02:00
|
|
|
'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
|
2014-12-03 07:55:53 +01:00
|
|
|
'<@(_inputs)', '-o', '<@(_outputs)' ]
|
2012-03-28 19:26:10 +02:00
|
|
|
}
|
|
|
|
]
|
2013-10-28 20:18:59 +01:00
|
|
|
}],
|
|
|
|
[ 'node_use_dtrace=="true" and OS=="linux"', {
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'node_dtrace_provider_o',
|
|
|
|
'inputs': [ 'src/node_provider.d' ],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
|
|
|
|
],
|
2014-12-03 07:55:53 +01:00
|
|
|
}
|
2013-10-28 20:18:59 +01:00
|
|
|
],
|
|
|
|
}],
|
2012-03-28 19:26:10 +02:00
|
|
|
]
|
2018-09-30 19:44:55 +02:00
|
|
|
}, # node_dtrace_provider
|
2012-03-28 19:26:10 +02:00
|
|
|
{
|
|
|
|
'target_name': 'node_dtrace_ustack',
|
|
|
|
'type': 'none',
|
|
|
|
'conditions': [
|
2013-10-28 20:18:59 +01:00
|
|
|
[ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
|
2012-03-28 19:26:10 +02:00
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'node_dtrace_ustack_constants',
|
|
|
|
'inputs': [
|
2017-10-16 15:34:42 +02:00
|
|
|
'<(v8_base)'
|
2012-03-28 19:26:10 +02:00
|
|
|
],
|
|
|
|
'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': [
|
2017-10-16 15:34:42 +02:00
|
|
|
'<(obj_dir)/<(node_lib_target_name)/src/node_dtrace_ustack.o'
|
2012-03-28 19:26:10 +02:00
|
|
|
],
|
2013-02-26 08:57:12 +01:00
|
|
|
'conditions': [
|
2017-03-27 11:48:21 +02:00
|
|
|
[ 'target_arch=="ia32" or target_arch=="arm"', {
|
2013-02-26 08:57:12 +01:00
|
|
|
'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
|
|
|
]
|
2014-02-20 17:52:26 +01:00
|
|
|
},
|
2012-03-28 19:26:10 +02:00
|
|
|
]
|
|
|
|
} ],
|
|
|
|
]
|
2018-09-30 19:44:55 +02:00
|
|
|
}, # node_dtrace_ustack
|
2014-02-20 17:52:26 +01:00
|
|
|
{
|
|
|
|
'target_name': 'specialize_node_d',
|
|
|
|
'type': 'none',
|
|
|
|
'conditions': [
|
|
|
|
[ 'node_use_dtrace=="true"', {
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'specialize_node_d',
|
|
|
|
'inputs': [
|
|
|
|
'src/node.d'
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/node.d',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'tools/specialize_node_d.py',
|
|
|
|
'<@(_outputs)',
|
|
|
|
'<@(_inputs)',
|
|
|
|
'<@(OS)',
|
|
|
|
'<@(target_arch)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
} ],
|
|
|
|
]
|
2018-09-30 19:44:55 +02:00
|
|
|
}, # specialize_node_d
|
2015-03-19 02:01:45 +01:00
|
|
|
{
|
|
|
|
'target_name': 'cctest',
|
|
|
|
'type': 'executable',
|
2016-10-18 16:41:26 +02:00
|
|
|
|
|
|
|
'dependencies': [
|
2018-02-05 14:57:13 +01:00
|
|
|
'<(node_lib_target_name)',
|
2019-01-07 20:36:35 +01:00
|
|
|
'deps/histogram/histogram.gyp:histogram',
|
2016-10-18 16:41:26 +02:00
|
|
|
'node_dtrace_header',
|
|
|
|
'node_dtrace_ustack',
|
|
|
|
'node_dtrace_provider',
|
|
|
|
],
|
|
|
|
|
|
|
|
'includes': [
|
|
|
|
'node.gypi'
|
|
|
|
],
|
|
|
|
|
2015-03-19 02:01:45 +01:00
|
|
|
'include_dirs': [
|
|
|
|
'src',
|
2016-10-18 16:41:26 +02:00
|
|
|
'tools/msvs/genfiles',
|
2016-11-09 23:19:35 +01:00
|
|
|
'deps/v8/include',
|
2016-10-18 16:41:26 +02:00
|
|
|
'deps/cares/include',
|
|
|
|
'deps/uv/include',
|
2019-04-14 23:24:22 +02:00
|
|
|
'test/cctest',
|
2016-10-18 16:41:26 +02:00
|
|
|
],
|
|
|
|
|
2017-07-25 12:20:40 +02:00
|
|
|
'defines': [ 'NODE_WANT_INTERNALS=1' ],
|
2016-10-18 16:41:26 +02:00
|
|
|
|
2015-03-19 02:01:45 +01:00
|
|
|
'sources': [
|
2019-04-18 16:09:28 +02:00
|
|
|
'src/node_snapshot_stub.cc',
|
2019-04-07 21:02:04 +02:00
|
|
|
'src/node_code_cache_stub.cc',
|
2019-04-14 23:24:22 +02:00
|
|
|
'test/cctest/gtest/gtest-all.cc',
|
|
|
|
'test/cctest/gtest/gtest_main.cc',
|
2017-08-25 21:45:00 +02:00
|
|
|
'test/cctest/node_test_fixture.cc',
|
2019-04-14 23:24:22 +02:00
|
|
|
'test/cctest/node_test_fixture.h',
|
2017-08-25 21:45:00 +02:00
|
|
|
'test/cctest/test_aliased_buffer.cc',
|
2017-04-05 16:05:55 +02:00
|
|
|
'test/cctest/test_base64.cc',
|
2017-12-26 01:17:25 +01:00
|
|
|
'test/cctest/test_node_postmortem_metadata.cc',
|
2017-03-21 08:06:43 +01:00
|
|
|
'test/cctest/test_environment.cc',
|
2019-03-05 20:09:43 +01:00
|
|
|
'test/cctest/test_linked_binding.cc',
|
2018-04-12 22:01:11 +02:00
|
|
|
'test/cctest/test_platform.cc',
|
2019-01-21 22:16:46 +01:00
|
|
|
'test/cctest/test_report_util.cc',
|
2018-06-22 21:50:01 +02:00
|
|
|
'test/cctest/test_traced_value.cc',
|
2016-10-18 16:41:26 +02:00
|
|
|
'test/cctest/test_util.cc',
|
2019-04-14 23:24:22 +02:00
|
|
|
'test/cctest/test_url.cc',
|
2016-10-18 16:41:26 +02:00
|
|
|
],
|
|
|
|
|
2016-02-07 17:47:14 +01:00
|
|
|
'conditions': [
|
2017-11-08 09:41:09 +01:00
|
|
|
[ 'node_use_openssl=="true"', {
|
2017-12-04 22:08:15 +01:00
|
|
|
'defines': [
|
|
|
|
'HAVE_OPENSSL=1',
|
|
|
|
],
|
2017-08-15 09:17:02 +02:00
|
|
|
}],
|
2017-01-17 20:49:26 +01:00
|
|
|
['v8_enable_inspector==1', {
|
2016-02-07 17:47:14 +01:00
|
|
|
'sources': [
|
2016-11-09 23:19:35 +01:00
|
|
|
'test/cctest/test_inspector_socket.cc',
|
|
|
|
'test/cctest/test_inspector_socket_server.cc'
|
2016-07-06 22:16:35 +02:00
|
|
|
],
|
2017-11-08 09:41:09 +01:00
|
|
|
'defines': [
|
|
|
|
'HAVE_INSPECTOR=1',
|
|
|
|
],
|
|
|
|
}, {
|
2019-04-07 21:02:04 +02:00
|
|
|
'defines': [
|
|
|
|
'HAVE_INSPECTOR=0',
|
|
|
|
]
|
2016-03-27 01:17:55 +01:00
|
|
|
}],
|
2016-10-18 16:41:26 +02:00
|
|
|
['OS=="solaris"', {
|
|
|
|
'ldflags': [ '-I<(SHARED_INTERMEDIATE_DIR)' ]
|
|
|
|
}],
|
2018-07-24 22:44:09 +02:00
|
|
|
# Skip cctest while building shared lib node for Windows
|
|
|
|
[ 'OS=="win" and node_shared=="true"', {
|
|
|
|
'type': 'none',
|
|
|
|
}],
|
2018-09-29 22:43:39 +02:00
|
|
|
[ 'node_shared=="true"', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_LDFLAGS': [ '-Wl,-rpath,@loader_path', ],
|
|
|
|
},
|
|
|
|
}],
|
2018-09-05 16:06:59 +02:00
|
|
|
[ 'node_report=="true"', {
|
|
|
|
'defines': [
|
|
|
|
'NODE_REPORT',
|
|
|
|
'NODE_ARCH="<(target_arch)"',
|
|
|
|
'NODE_PLATFORM="<(OS)"',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
2019-04-08 20:41:52 +02:00
|
|
|
'libraries': [ 'Ws2_32' ],
|
2018-09-05 16:06:59 +02:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
2018-02-05 14:57:13 +01:00
|
|
|
],
|
2018-09-30 19:44:55 +02:00
|
|
|
}, # cctest
|
2019-04-04 00:29:02 +02:00
|
|
|
# TODO(joyeecheung): do not depend on node_lib,
|
|
|
|
# instead create a smaller static library node_lib_base that does
|
|
|
|
# just enough for node_native_module.cc and the cache builder to
|
|
|
|
# compile without compiling the generated code cache C++ file.
|
|
|
|
# So generate_code_cache -> mkcodecache -> node_lib_base,
|
|
|
|
# node_lib -> node_lib_base & generate_code_cache
|
|
|
|
{
|
|
|
|
'target_name': 'mkcodecache',
|
|
|
|
'type': 'executable',
|
|
|
|
|
|
|
|
'dependencies': [
|
|
|
|
'<(node_lib_target_name)',
|
|
|
|
'deps/histogram/histogram.gyp:histogram',
|
|
|
|
],
|
|
|
|
|
|
|
|
'includes': [
|
|
|
|
'node.gypi'
|
|
|
|
],
|
|
|
|
|
|
|
|
'include_dirs': [
|
|
|
|
'src',
|
|
|
|
'tools/msvs/genfiles',
|
|
|
|
'deps/v8/include',
|
|
|
|
'deps/cares/include',
|
|
|
|
'deps/uv/include',
|
|
|
|
],
|
|
|
|
|
2019-04-07 21:02:04 +02:00
|
|
|
'defines': [
|
|
|
|
'NODE_WANT_INTERNALS=1'
|
|
|
|
],
|
2019-04-04 00:29:02 +02:00
|
|
|
'sources': [
|
2019-04-18 16:09:28 +02:00
|
|
|
'src/node_snapshot_stub.cc',
|
2019-04-07 21:02:04 +02:00
|
|
|
'src/node_code_cache_stub.cc',
|
2019-04-04 00:29:02 +02:00
|
|
|
'tools/code_cache/mkcodecache.cc',
|
2019-04-07 21:02:04 +02:00
|
|
|
'tools/code_cache/cache_builder.cc',
|
|
|
|
'tools/code_cache/cache_builder.h',
|
2019-04-04 00:29:02 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
'conditions': [
|
|
|
|
[ 'node_report=="true"', {
|
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
|
|
|
'libraries': [
|
|
|
|
'dbghelp.lib',
|
|
|
|
'PsApi.lib',
|
|
|
|
'Ws2_32.lib',
|
|
|
|
],
|
|
|
|
'dll_files': [
|
|
|
|
'dbghelp.dll',
|
|
|
|
'PsApi.dll',
|
|
|
|
'Ws2_32.dll',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2019-04-07 21:02:04 +02:00
|
|
|
}, # mkcodecache
|
2019-04-18 10:26:48 +02:00
|
|
|
{
|
|
|
|
'target_name': 'node_mksnapshot',
|
|
|
|
'type': 'executable',
|
|
|
|
|
|
|
|
'dependencies': [
|
|
|
|
'<(node_lib_target_name)',
|
|
|
|
'deps/histogram/histogram.gyp:histogram',
|
|
|
|
],
|
|
|
|
|
|
|
|
'includes': [
|
|
|
|
'node.gypi'
|
|
|
|
],
|
|
|
|
|
|
|
|
'include_dirs': [
|
|
|
|
'src',
|
|
|
|
'tools/msvs/genfiles',
|
|
|
|
'deps/v8/include',
|
|
|
|
'deps/cares/include',
|
|
|
|
'deps/uv/include',
|
|
|
|
],
|
|
|
|
|
|
|
|
'defines': [ 'NODE_WANT_INTERNALS=1' ],
|
|
|
|
|
|
|
|
'sources': [
|
2019-04-18 16:09:28 +02:00
|
|
|
'src/node_snapshot_stub.cc',
|
2019-04-18 10:26:48 +02:00
|
|
|
'src/node_code_cache_stub.cc',
|
|
|
|
'tools/snapshot/node_mksnapshot.cc',
|
|
|
|
'tools/snapshot/snapshot_builder.cc',
|
|
|
|
'tools/snapshot/snapshot_builder.h',
|
|
|
|
],
|
|
|
|
|
|
|
|
'conditions': [
|
|
|
|
[ 'node_report=="true"', {
|
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
|
|
|
'libraries': [ 'Ws2_32' ],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}, # node_mksnapshot
|
|
|
|
], # end targets
|
2015-09-29 16:22:00 +02:00
|
|
|
|
|
|
|
'conditions': [
|
2019-04-07 21:02:04 +02:00
|
|
|
['OS=="aix" and node_shared=="true"', {
|
2017-08-23 09:52:59 +02:00
|
|
|
'targets': [
|
|
|
|
{
|
2017-12-05 01:07:53 +01:00
|
|
|
'target_name': 'node_aix_shared',
|
|
|
|
'type': 'shared_library',
|
2017-08-23 09:52:59 +02:00
|
|
|
'product_name': '<(node_core_target_name)',
|
2019-04-07 21:02:04 +02:00
|
|
|
'ldflags': ['--shared'],
|
2017-12-05 01:07:53 +01:00
|
|
|
'product_extension': '<(shlib_suffix)',
|
|
|
|
'includes': [
|
|
|
|
'node.gypi'
|
|
|
|
],
|
2019-04-07 21:02:04 +02:00
|
|
|
'dependencies': ['<(node_lib_target_name)'],
|
2015-09-29 16:22:00 +02:00
|
|
|
'include_dirs': [
|
|
|
|
'src',
|
|
|
|
'deps/v8/include',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<@(library_files)',
|
|
|
|
'common.gypi',
|
|
|
|
],
|
2018-02-02 19:06:33 +01:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'ldflags': [ '-Wl,-brtl' ],
|
|
|
|
},
|
2015-09-29 16:22:00 +02:00
|
|
|
},
|
2017-12-05 01:07:53 +01:00
|
|
|
]
|
2015-09-29 16:22:00 +02:00
|
|
|
}], # end aix section
|
|
|
|
], # end conditions block
|
2011-08-04 02:01:30 +02:00
|
|
|
}
|