2019-07-16 17:23:04 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
|
|
|
Date: Tue, 26 Feb 2019 17:07:45 -0800
|
|
|
|
Subject: build: add GN build files
|
|
|
|
|
2019-12-13 17:18:45 +00:00
|
|
|
This adds GN build files for Node, so we don't have to build with GYP.
|
2019-07-16 17:23:04 +00:00
|
|
|
|
2024-01-18 21:16:45 +00:00
|
|
|
Note that there always GN files in upstream Node in 20/21 branches,
|
|
|
|
however those files were cherry-picked from main branch and do not
|
|
|
|
really in 20/21. We have to wait until 22 is released to be able to
|
|
|
|
build with upstream GN files.
|
|
|
|
|
2019-07-16 17:23:04 +00:00
|
|
|
diff --git a/BUILD.gn b/BUILD.gn
|
2024-05-13 08:25:48 +00:00
|
|
|
index 1ed186b597eece7c34cb69c8e1e20870555a040d..2ce1e8a7dcca2ba153d387d11970c72b5f43c167 100644
|
2024-01-18 21:16:45 +00:00
|
|
|
--- a/BUILD.gn
|
2019-07-16 17:23:04 +00:00
|
|
|
+++ b/BUILD.gn
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -1,14 +1,406 @@
|
2024-01-18 21:16:45 +00:00
|
|
|
-##############################################################################
|
|
|
|
-# #
|
|
|
|
-# DO NOT EDIT THIS FILE! #
|
|
|
|
-# #
|
|
|
|
-##############################################################################
|
2019-07-16 17:23:04 +00:00
|
|
|
+import("//v8/gni/v8.gni")
|
2023-11-30 14:51:35 +00:00
|
|
|
+import("//electron/js2c_toolchain.gni")
|
2024-01-18 21:16:45 +00:00
|
|
|
+import("electron_node.gni")
|
|
|
|
|
|
|
|
-# This file is used by GN for building, which is NOT the build system used for
|
|
|
|
-# building official binaries.
|
|
|
|
-# Please modify the gyp files if you are making changes to build system.
|
2019-07-16 17:23:04 +00:00
|
|
|
+declare_args() {
|
|
|
|
+ # Enable the V8 inspector protocol for use with node.
|
|
|
|
+ node_enable_inspector = true
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-import("unofficial.gni")
|
2019-07-16 17:23:04 +00:00
|
|
|
+ # Build node with SSL support.
|
|
|
|
+ # The variable is called "openssl" for parity with node's GYP build.
|
|
|
|
+ node_use_openssl = true
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-node_gn_build("node") {
|
2019-07-16 17:23:04 +00:00
|
|
|
+ # Use the specified path to system CA (PEM format) in addition to
|
|
|
|
+ # the BoringSSL supplied CA store or compiled-in Mozilla CA copy.
|
|
|
|
+ node_openssl_system_ca_path = ""
|
|
|
|
+
|
|
|
|
+ # Initialize v8 platform during node.js startup.
|
|
|
|
+ # NB. this must be turned off in Electron, because Electron initializes the
|
|
|
|
+ # v8 platform itself.
|
|
|
|
+ node_use_v8_platform = false
|
|
|
|
+
|
|
|
|
+ # Build with DTrace support.
|
|
|
|
+ node_use_dtrace = false
|
|
|
|
+
|
|
|
|
+ # Build with ETW support.
|
|
|
|
+ node_use_etw = false
|
|
|
|
+
|
|
|
|
+ # Build JavaScript in lib/ with DCHECK macros.
|
|
|
|
+ node_debug_lib = false
|
|
|
|
+
|
|
|
|
+ # Custom build tag.
|
|
|
|
+ node_tag = ""
|
|
|
|
+
|
|
|
|
+ # V8 options to pass, see `node --v8-options` for examples
|
|
|
|
+ node_v8_options = ""
|
|
|
|
+
|
|
|
|
+ # Provide a custom URL prefix for the `process.release` properties
|
|
|
|
+ # `sourceUrl` and `headersUrl`. When compiling a release build, this will
|
|
|
|
+ # default to https://nodejs.org/download/release/')
|
|
|
|
+ node_release_urlbase = ""
|
2019-07-16 21:38:17 +00:00
|
|
|
+
|
2022-08-17 02:50:15 +00:00
|
|
|
+ # Allows downstream packagers (eg. Linux distributions) to build Electron against system shared libraries.
|
|
|
|
+ use_system_cares = false
|
|
|
|
+ use_system_nghttp2 = false
|
|
|
|
+ use_system_llhttp = false
|
|
|
|
+ use_system_histogram = false
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+if (is_linux) {
|
|
|
|
+ import("//build/config/linux/pkg_config.gni")
|
|
|
|
+ if (use_system_cares) {
|
|
|
|
+ pkg_config("cares") {
|
|
|
|
+ packages = [ "libcares" ]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (use_system_nghttp2) {
|
|
|
|
+ pkg_config("nghttp2") {
|
|
|
|
+ packages = [ "libnghttp2" ]
|
|
|
|
+ }
|
|
|
|
+ }
|
2019-07-16 17:23:04 +00:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
+assert(!node_use_dtrace, "node_use_dtrace not supported in GN")
|
|
|
|
+assert(!node_use_etw, "node_use_etw not supported in GN")
|
|
|
|
+
|
|
|
|
+assert(!node_enable_inspector || node_use_openssl,
|
|
|
|
+ "node_enable_inspector requires node_use_openssl")
|
|
|
|
+
|
|
|
|
+config("node_internals") {
|
|
|
|
+ defines = [ "NODE_WANT_INTERNALS=1" ]
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+node_files = read_file("filenames.json", "json")
|
|
|
|
+library_files = node_files.library_files
|
2023-11-30 14:51:35 +00:00
|
|
|
+fs_files = node_files.fs_files
|
|
|
|
+original_fs_files = []
|
|
|
|
+foreach(file, fs_files) {
|
2024-05-13 08:25:48 +00:00
|
|
|
+ original_fs_files += [string_replace(string_replace(string_replace(file, "internal/fs/", "internal/original-fs/"), "lib/fs.js", "lib/original-fs.js"), "lib/fs/", "lib/original-fs/")]
|
2023-11-30 14:51:35 +00:00
|
|
|
+}
|
2019-07-16 17:23:04 +00:00
|
|
|
+
|
|
|
|
+copy("node_js2c_inputs") {
|
|
|
|
+ sources = library_files
|
|
|
|
+ outputs = [
|
|
|
|
+ "$target_gen_dir/js2c_inputs/{{source_target_relative}}",
|
|
|
|
+ ]
|
|
|
|
+}
|
|
|
|
+
|
2023-11-30 14:51:35 +00:00
|
|
|
+action("node_js2c_original_fs") {
|
|
|
|
+ script = "tools/generate_original_fs.py"
|
|
|
|
+ inputs = fs_files
|
|
|
|
+ outputs = []
|
|
|
|
+ foreach(file, fs_files + original_fs_files) {
|
|
|
|
+ outputs += ["$target_gen_dir/js2c_inputs/$file"]
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ args = [rebase_path("$target_gen_dir/js2c_inputs")] + fs_files
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+action("node_js2c_exec") {
|
2019-07-16 17:23:04 +00:00
|
|
|
+ deps = [
|
2021-10-14 14:07:36 +00:00
|
|
|
+ "//electron:generate_config_gypi",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ ":node_js2c_original_fs",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ":node_js2c_inputs",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ ":node_js2c($electron_js2c_toolchain)"
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
2021-10-14 14:07:36 +00:00
|
|
|
+ config_gypi = [ "$root_gen_dir/config.gypi" ]
|
2023-11-30 14:51:35 +00:00
|
|
|
+ inputs = library_files + get_target_outputs(":node_js2c_original_fs") + config_gypi
|
2019-07-16 17:23:04 +00:00
|
|
|
+ outputs = [
|
|
|
|
+ "$target_gen_dir/node_javascript.cc",
|
|
|
|
+ ]
|
|
|
|
+
|
2023-11-30 14:51:35 +00:00
|
|
|
+ script = "//electron/build/run-in-dir.py"
|
|
|
|
+ out_dir = get_label_info(":anything($electron_js2c_toolchain)", "root_out_dir")
|
|
|
|
+ args = [ rebase_path("$target_gen_dir/js2c_inputs"), rebase_path("$out_dir/node_js2c") ] +
|
|
|
|
+ rebase_path(outputs) + library_files + fs_files + original_fs_files + rebase_path(config_gypi)
|
2019-07-16 17:23:04 +00:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
+config("node_features") {
|
|
|
|
+ defines = []
|
|
|
|
+ if (node_enable_inspector) {
|
|
|
|
+ defines += [ "HAVE_INSPECTOR=1" ]
|
|
|
|
+ } else {
|
|
|
|
+ defines += [ "HAVE_INSPECTOR=0" ]
|
|
|
|
+ }
|
|
|
|
+ if (node_use_openssl) {
|
|
|
|
+ defines += [ "HAVE_OPENSSL=1" ]
|
|
|
|
+ } else {
|
|
|
|
+ defines += [ "HAVE_OPENSSL=0" ]
|
|
|
|
+ }
|
|
|
|
+ if (v8_enable_i18n_support) {
|
|
|
|
+ defines += [ "NODE_HAVE_I18N_SUPPORT=1" ]
|
|
|
|
+ } else {
|
|
|
|
+ defines += [ "NODE_HAVE_I18N_SUPPORT=0" ]
|
|
|
|
+ }
|
|
|
|
+ if (node_use_v8_platform) {
|
|
|
|
+ defines += [ "NODE_USE_V8_PLATFORM=1" ]
|
|
|
|
+ } else {
|
|
|
|
+ defines += [ "NODE_USE_V8_PLATFORM=0" ]
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+config("node_lib_config") {
|
|
|
|
+ include_dirs = [ "src" ]
|
|
|
|
+
|
2024-01-18 21:16:45 +00:00
|
|
|
+ cflags = [
|
|
|
|
+ "-Wno-shadow",
|
|
|
|
+ # FIXME(deepak1556): include paths should be corrected,
|
|
|
|
+ # refer https://docs.google.com/presentation/d/1oxNHaVjA9Gn_rTzX6HIpJHP7nXRua_0URXxxJ3oYRq0/edit#slide=id.g71ecd450e_2_702
|
|
|
|
+ "-Wno-microsoft-include",
|
|
|
|
+ ]
|
2019-07-16 17:23:04 +00:00
|
|
|
+
|
|
|
|
+ configs = [ ":node_features" ]
|
|
|
|
+
|
|
|
|
+ if (is_debug) {
|
|
|
|
+ defines = [ "DEBUG" ]
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+config("node_internal_config") {
|
|
|
|
+ visibility = [
|
|
|
|
+ ":*",
|
|
|
|
+ "src/inspector:*",
|
|
|
|
+ ]
|
|
|
|
+ defines = [
|
|
|
|
+ "NODE_WANT_INTERNALS=1",
|
|
|
|
+ "NODE_IMPLEMENTATION",
|
|
|
|
+ ]
|
2019-07-16 21:38:17 +00:00
|
|
|
+ if (node_module_version != "") {
|
2023-11-30 14:51:35 +00:00
|
|
|
+ defines += [ "NODE_EMBEDDER_MODULE_VERSION=" + node_module_version ]
|
2019-07-16 21:38:17 +00:00
|
|
|
+ }
|
2019-07-16 17:23:04 +00:00
|
|
|
+ if (is_component_build) {
|
|
|
|
+ defines += [
|
|
|
|
+ "NODE_SHARED_MODE",
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (target_cpu == "x86") {
|
|
|
|
+ node_arch = "ia32"
|
|
|
|
+ } else {
|
|
|
|
+ node_arch = target_cpu
|
|
|
|
+ }
|
|
|
|
+ defines += [ "NODE_ARCH=\"$node_arch\"" ]
|
|
|
|
+
|
|
|
|
+ if (target_os == "win") {
|
|
|
|
+ node_platform = "win32"
|
|
|
|
+ } else if (target_os == "mac") {
|
|
|
|
+ node_platform = "darwin"
|
|
|
|
+ } else {
|
|
|
|
+ node_platform = target_os
|
|
|
|
+ }
|
|
|
|
+ defines += [ "NODE_PLATFORM=\"$node_platform\"" ]
|
|
|
|
+
|
|
|
|
+ if (is_win) {
|
|
|
|
+ defines += [
|
|
|
|
+ "NOMINMAX",
|
|
|
|
+ "_UNICODE=1",
|
|
|
|
+ ]
|
|
|
|
+ } else {
|
|
|
|
+ defines += [ "__POSIX__" ]
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (node_tag != "") {
|
|
|
|
+ defines += [ "NODE_TAG=\"$node_tag\"" ]
|
|
|
|
+ }
|
|
|
|
+ if (node_v8_options != "") {
|
|
|
|
+ defines += [ "NODE_V8_OPTIONS=\"$node_v8_options\"" ]
|
|
|
|
+ }
|
|
|
|
+ if (node_release_urlbase != "") {
|
|
|
|
+ defines += [ "NODE_RELEASE_URLBASE=\"$node_release_urlbase\"" ]
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (node_use_openssl) {
|
|
|
|
+ defines += [
|
|
|
|
+ "NODE_OPENSSL_SYSTEM_CERT_PATH=\"$node_openssl_system_ca_path\"",
|
|
|
|
+ "EVP_CTRL_CCM_SET_TAG=EVP_CTRL_GCM_SET_TAG",
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
2022-03-30 10:51:13 +00:00
|
|
|
+executable("overlapped-checker") {
|
|
|
|
+ sources = []
|
|
|
|
+ if (is_win) {
|
|
|
|
+ sources += [ "test/overlapped-checker/main_win.c" ]
|
|
|
|
+ } else {
|
|
|
|
+ sources += [ "test/overlapped-checker/main_unix.c" ]
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
2023-11-30 14:51:35 +00:00
|
|
|
+if (current_toolchain == electron_js2c_toolchain) {
|
|
|
|
+ executable("node_js2c") {
|
|
|
|
+ defines = []
|
|
|
|
+ sources = [
|
|
|
|
+ "tools/js2c.cc",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "tools/executable_wrapper.h",
|
|
|
|
+ "src/embedded_data.cc",
|
|
|
|
+ "src/embedded_data.h",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ ]
|
2024-04-17 16:39:13 +00:00
|
|
|
+ include_dirs = [ "tools", "src" ]
|
2023-11-30 14:51:35 +00:00
|
|
|
+ deps = [
|
|
|
|
+ "deps/simdutf($electron_js2c_toolchain)",
|
|
|
|
+ "deps/uv($electron_js2c_toolchain)",
|
|
|
|
+ "//v8"
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ if (!is_win) {
|
|
|
|
+ defines += [ "NODE_JS2C_USE_STRING_LITERALS" ]
|
|
|
|
+ }
|
|
|
|
+ if (is_debug) {
|
|
|
|
+ cflags_cc = [ "-g", "-O0" ]
|
|
|
|
+ defines += [ "DEBUG" ]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
2019-07-16 17:23:04 +00:00
|
|
|
+component("node_lib") {
|
|
|
|
+ deps = [
|
2023-11-30 14:51:35 +00:00
|
|
|
+ ":node_js2c_exec",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "deps/googletest:gtest",
|
2023-04-18 20:23:11 +00:00
|
|
|
+ "deps/ada",
|
2022-11-10 21:31:20 +00:00
|
|
|
+ "deps/base64",
|
2023-02-07 20:51:07 +00:00
|
|
|
+ "deps/simdutf",
|
|
|
|
+ "deps/uvwasi",
|
2020-06-17 22:57:12 +00:00
|
|
|
+ "//third_party/zlib",
|
2019-07-16 21:38:17 +00:00
|
|
|
+ "//third_party/brotli:dec",
|
|
|
|
+ "//third_party/brotli:enc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "//v8:v8_libplatform",
|
|
|
|
+ ]
|
2022-08-17 02:50:15 +00:00
|
|
|
+ if (use_system_cares) {
|
|
|
|
+ configs += [ ":cares" ]
|
|
|
|
+ } else {
|
|
|
|
+ deps += [ "deps/cares" ]
|
|
|
|
+ }
|
|
|
|
+ if (use_system_nghttp2) {
|
|
|
|
+ configs += [ ":nghttp2" ]
|
|
|
|
+ } else {
|
|
|
|
+ deps += [ "deps/nghttp2" ]
|
|
|
|
+ }
|
2019-07-16 17:23:04 +00:00
|
|
|
+ public_deps = [
|
|
|
|
+ "deps/uv",
|
|
|
|
+ "//electron:electron_js2c",
|
|
|
|
+ "//v8",
|
|
|
|
+ ]
|
|
|
|
+ configs += [ ":node_internal_config" ]
|
|
|
|
+ public_configs = [ ":node_lib_config" ]
|
2023-04-18 20:23:11 +00:00
|
|
|
+ include_dirs = [
|
|
|
|
+ "src",
|
|
|
|
+ "deps/postject"
|
|
|
|
+ ]
|
2019-07-16 17:23:04 +00:00
|
|
|
+ libs = []
|
2022-08-17 02:50:15 +00:00
|
|
|
+ if (use_system_llhttp) {
|
|
|
|
+ libs += [ "llhttp" ]
|
|
|
|
+ } else {
|
|
|
|
+ deps += [ "deps/llhttp" ]
|
|
|
|
+ }
|
|
|
|
+ if (use_system_histogram) {
|
|
|
|
+ libs += [ "hdr_histogram" ]
|
|
|
|
+ include_dirs += [ "/usr/include/hdr" ]
|
|
|
|
+ } else {
|
|
|
|
+ deps += [ "deps/histogram" ]
|
|
|
|
+ }
|
2020-07-22 05:34:34 +00:00
|
|
|
+ frameworks = []
|
2019-07-16 17:23:04 +00:00
|
|
|
+ cflags_cc = [
|
|
|
|
+ "-Wno-deprecated-declarations",
|
|
|
|
+ "-Wno-implicit-fallthrough",
|
|
|
|
+ "-Wno-return-type",
|
|
|
|
+ "-Wno-sometimes-uninitialized",
|
|
|
|
+ "-Wno-string-plus-int",
|
|
|
|
+ "-Wno-unused-function",
|
|
|
|
+ "-Wno-unused-label",
|
|
|
|
+ "-Wno-unused-private-field",
|
|
|
|
+ "-Wno-unused-variable",
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ if (v8_enable_i18n_support) {
|
|
|
|
+ deps += [ "//third_party/icu" ]
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ sources = node_files.node_sources
|
|
|
|
+ sources += [
|
|
|
|
+ "$root_gen_dir/electron_natives.cc",
|
|
|
|
+ "$target_gen_dir/node_javascript.cc",
|
2019-07-17 21:22:27 +00:00
|
|
|
+ "src/node_snapshot_stub.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ if (is_win) {
|
|
|
|
+ libs += [ "psapi.lib" ]
|
|
|
|
+ }
|
|
|
|
+ if (is_mac) {
|
2020-07-22 05:34:34 +00:00
|
|
|
+ frameworks += [ "CoreFoundation.framework" ]
|
2019-07-16 17:23:04 +00:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (node_enable_inspector) {
|
|
|
|
+ sources += [
|
|
|
|
+ "src/inspector_agent.cc",
|
|
|
|
+ "src/inspector_agent.h",
|
|
|
|
+ "src/inspector_io.cc",
|
|
|
|
+ "src/inspector_io.h",
|
|
|
|
+ "src/inspector_js_api.cc",
|
2019-07-16 21:38:17 +00:00
|
|
|
+ "src/inspector_profiler.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/inspector_socket.cc",
|
|
|
|
+ "src/inspector_socket.h",
|
|
|
|
+ "src/inspector_socket_server.cc",
|
|
|
|
+ "src/inspector_socket_server.h",
|
|
|
|
+ ]
|
|
|
|
+ deps += [ "src/inspector" ]
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (node_use_openssl) {
|
|
|
|
+ deps += [ "//third_party/boringssl" ]
|
|
|
|
+ sources += [
|
2021-06-17 06:50:56 +00:00
|
|
|
+ "src/crypto/crypto_aes.cc",
|
|
|
|
+ "src/crypto/crypto_aes.h",
|
|
|
|
+ "src/crypto/crypto_bio.cc",
|
|
|
|
+ "src/crypto/crypto_bio.h",
|
|
|
|
+ "src/crypto/crypto_cipher.cc",
|
|
|
|
+ "src/crypto/crypto_cipher.h",
|
|
|
|
+ "src/crypto/crypto_clienthello-inl.h",
|
|
|
|
+ "src/crypto/crypto_clienthello.cc",
|
|
|
|
+ "src/crypto/crypto_clienthello.h",
|
|
|
|
+ "src/crypto/crypto_common.cc",
|
|
|
|
+ "src/crypto/crypto_common.h",
|
|
|
|
+ "src/crypto/crypto_context.cc",
|
|
|
|
+ "src/crypto/crypto_context.h",
|
|
|
|
+ "src/crypto/crypto_dh.cc",
|
|
|
|
+ "src/crypto/crypto_dh.h",
|
|
|
|
+ "src/crypto/crypto_dsa.cc",
|
|
|
|
+ "src/crypto/crypto_dsa.h",
|
|
|
|
+ "src/crypto/crypto_ec.cc",
|
|
|
|
+ "src/crypto/crypto_ec.h",
|
|
|
|
+ "src/crypto/crypto_groups.h",
|
|
|
|
+ "src/crypto/crypto_hash.cc",
|
|
|
|
+ "src/crypto/crypto_hash.h",
|
|
|
|
+ "src/crypto/crypto_hkdf.cc",
|
|
|
|
+ "src/crypto/crypto_hkdf.h",
|
|
|
|
+ "src/crypto/crypto_hmac.cc",
|
|
|
|
+ "src/crypto/crypto_hmac.h",
|
|
|
|
+ "src/crypto/crypto_keygen.cc",
|
|
|
|
+ "src/crypto/crypto_keygen.h",
|
|
|
|
+ "src/crypto/crypto_keys.cc",
|
|
|
|
+ "src/crypto/crypto_keys.h",
|
|
|
|
+ "src/crypto/crypto_pbkdf2.cc",
|
|
|
|
+ "src/crypto/crypto_pbkdf2.h",
|
|
|
|
+ "src/crypto/crypto_random.cc",
|
|
|
|
+ "src/crypto/crypto_random.h",
|
|
|
|
+ "src/crypto/crypto_rsa.cc",
|
|
|
|
+ "src/crypto/crypto_rsa.h",
|
|
|
|
+ "src/crypto/crypto_scrypt.cc",
|
|
|
|
+ "src/crypto/crypto_scrypt.h",
|
|
|
|
+ "src/crypto/crypto_sig.cc",
|
|
|
|
+ "src/crypto/crypto_sig.h",
|
|
|
|
+ "src/crypto/crypto_spkac.cc",
|
|
|
|
+ "src/crypto/crypto_spkac.h",
|
|
|
|
+ "src/crypto/crypto_timing.cc",
|
|
|
|
+ "src/crypto/crypto_timing.h",
|
|
|
|
+ "src/crypto/crypto_tls.cc",
|
|
|
|
+ "src/crypto/crypto_tls.h",
|
|
|
|
+ "src/crypto/crypto_util.cc",
|
|
|
|
+ "src/crypto/crypto_util.h",
|
|
|
|
+ "src/crypto/crypto_x509.cc",
|
|
|
|
+ "src/crypto/crypto_x509.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_crypto.cc",
|
|
|
|
+ "src/node_crypto.h",
|
|
|
|
+ ]
|
|
|
|
+ cflags_cc += [ "-Wno-sign-compare" ]
|
|
|
|
+ }
|
2024-01-18 21:16:45 +00:00
|
|
|
}
|
2023-04-18 20:23:11 +00:00
|
|
|
diff --git a/deps/ada/BUILD.gn b/deps/ada/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
index e92ac3a3beac143dced2efb05304ed8ba832b067..1ce69e9deba1a9b191e8d95f4c82e0ec1f7b50ca 100644
|
|
|
|
--- a/deps/ada/BUILD.gn
|
2023-04-18 20:23:11 +00:00
|
|
|
+++ b/deps/ada/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
@@ -1,14 +1,12 @@
|
|
|
|
-##############################################################################
|
|
|
|
-# #
|
|
|
|
-# DO NOT EDIT THIS FILE! #
|
|
|
|
-# #
|
|
|
|
-##############################################################################
|
2023-04-18 20:23:11 +00:00
|
|
|
+import("//v8/gni/v8.gni")
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-# This file is used by GN for building, which is NOT the build system used for
|
|
|
|
-# building official binaries.
|
|
|
|
-# Please modify the gyp files if you are making changes to build system.
|
2023-04-18 20:23:11 +00:00
|
|
|
+config("ada_config") {
|
|
|
|
+ include_dirs = [ "." ]
|
|
|
|
+}
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-import("unofficial.gni")
|
2023-04-18 20:23:11 +00:00
|
|
|
+static_library("ada") {
|
|
|
|
+ include_dirs = [ "." ]
|
|
|
|
+ sources = [ "ada.cpp" ]
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-ada_gn_build("ada") {
|
2023-04-18 20:23:11 +00:00
|
|
|
+ public_configs = [ ":ada_config" ]
|
2024-01-18 21:16:45 +00:00
|
|
|
}
|
|
|
|
diff --git a/deps/base64/unofficial.gni b/deps/base64/unofficial.gni
|
2024-04-17 16:39:13 +00:00
|
|
|
index 0e69d7383762f6b81c5b57698aa9d121d5a9c401..35bbeb37acc7ccb14b4b8a644ec3d4c76ca5c61c 100644
|
2024-01-18 21:16:45 +00:00
|
|
|
--- a/deps/base64/unofficial.gni
|
|
|
|
+++ b/deps/base64/unofficial.gni
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -12,6 +12,10 @@ template("base64_gn_build") {
|
2024-01-18 21:16:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ # FIXME(zcbenz): ASM on win/x86 compiles perfectly in upstream Node, figure
|
|
|
|
+ # out why it does not work in Electron's build configs.
|
2024-04-17 16:39:13 +00:00
|
|
|
+ support_x86_asm = current_cpu == "x64" || (current_cpu == "x86" && !is_win)
|
2024-01-18 21:16:45 +00:00
|
|
|
+
|
|
|
|
config("base64_internal_config") {
|
|
|
|
include_dirs = [ "base64/lib" ]
|
|
|
|
if (is_component_build) {
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -19,7 +23,7 @@ template("base64_gn_build") {
|
2024-01-18 21:16:45 +00:00
|
|
|
} else {
|
|
|
|
defines = []
|
|
|
|
}
|
2024-04-17 16:39:13 +00:00
|
|
|
- if (current_cpu == "x86" || current_cpu == "x64") {
|
2024-01-18 21:16:45 +00:00
|
|
|
+ if (support_x86_asm) {
|
|
|
|
defines += [
|
|
|
|
"HAVE_SSSE3=1",
|
|
|
|
"HAVE_SSE41=1",
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -69,7 +73,7 @@ template("base64_gn_build") {
|
2024-01-18 21:16:45 +00:00
|
|
|
source_set("base64_ssse3") {
|
|
|
|
configs += [ ":base64_internal_config" ]
|
|
|
|
sources = [ "base64/lib/arch/ssse3/codec.c" ]
|
2024-04-17 16:39:13 +00:00
|
|
|
- if (current_cpu == "x86" || current_cpu == "x64") {
|
2024-01-18 21:16:45 +00:00
|
|
|
+ if (support_x86_asm) {
|
|
|
|
if (is_clang || !is_win) {
|
|
|
|
cflags_c = [ "-mssse3" ]
|
|
|
|
}
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -79,7 +83,7 @@ template("base64_gn_build") {
|
2024-01-18 21:16:45 +00:00
|
|
|
source_set("base64_sse41") {
|
|
|
|
configs += [ ":base64_internal_config" ]
|
|
|
|
sources = [ "base64/lib/arch/sse41/codec.c" ]
|
2024-04-17 16:39:13 +00:00
|
|
|
- if (current_cpu == "x86" || current_cpu == "x64") {
|
2024-01-18 21:16:45 +00:00
|
|
|
+ if (support_x86_asm) {
|
|
|
|
if (is_clang || !is_win) {
|
|
|
|
cflags_c = [ "-msse4.1" ]
|
|
|
|
}
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -89,7 +93,7 @@ template("base64_gn_build") {
|
2024-01-18 21:16:45 +00:00
|
|
|
source_set("base64_sse42") {
|
|
|
|
configs += [ ":base64_internal_config" ]
|
|
|
|
sources = [ "base64/lib/arch/sse42/codec.c" ]
|
2024-04-17 16:39:13 +00:00
|
|
|
- if (current_cpu == "x86" || current_cpu == "x64") {
|
2024-01-18 21:16:45 +00:00
|
|
|
+ if (support_x86_asm) {
|
|
|
|
if (is_clang || !is_win) {
|
|
|
|
cflags_c = [ "-msse4.2" ]
|
|
|
|
}
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -99,7 +103,7 @@ template("base64_gn_build") {
|
2024-01-18 21:16:45 +00:00
|
|
|
source_set("base64_avx") {
|
|
|
|
configs += [ ":base64_internal_config" ]
|
|
|
|
sources = [ "base64/lib/arch/avx/codec.c" ]
|
2024-04-17 16:39:13 +00:00
|
|
|
- if (current_cpu == "x86" || current_cpu == "x64") {
|
2024-01-18 21:16:45 +00:00
|
|
|
+ if (support_x86_asm) {
|
|
|
|
if (is_clang || !is_win) {
|
|
|
|
cflags_c = [ "-mavx" ]
|
|
|
|
} else if (is_win) {
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -111,7 +115,7 @@ template("base64_gn_build") {
|
2024-01-18 21:16:45 +00:00
|
|
|
source_set("base64_avx2") {
|
|
|
|
configs += [ ":base64_internal_config" ]
|
|
|
|
sources = [ "base64/lib/arch/avx2/codec.c" ]
|
2024-04-17 16:39:13 +00:00
|
|
|
- if (current_cpu == "x86" || current_cpu == "x64") {
|
2024-01-18 21:16:45 +00:00
|
|
|
+ if (support_x86_asm) {
|
|
|
|
if (is_clang || !is_win) {
|
|
|
|
cflags_c = [ "-mavx2" ]
|
|
|
|
} else if (is_win) {
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -123,7 +127,7 @@ template("base64_gn_build") {
|
2024-01-18 21:16:45 +00:00
|
|
|
source_set("base64_avx512") {
|
|
|
|
configs += [ ":base64_internal_config" ]
|
|
|
|
sources = [ "base64/lib/arch/avx512/codec.c" ]
|
2024-04-17 16:39:13 +00:00
|
|
|
- if (current_cpu == "x86" || current_cpu == "x64") {
|
2024-01-18 21:16:45 +00:00
|
|
|
+ if (support_x86_asm) {
|
|
|
|
if (is_clang || !is_win) {
|
|
|
|
cflags_c = [
|
|
|
|
"-mavx512vl",
|
2019-07-16 17:23:04 +00:00
|
|
|
diff --git a/deps/cares/BUILD.gn b/deps/cares/BUILD.gn
|
2024-05-31 21:37:42 +00:00
|
|
|
index ac19ac73ed1e24c61cb679f3851685b79cfc8b39..3f253daee0f9b1faa50857f61d76de001bd8947e 100644
|
2024-01-18 21:16:45 +00:00
|
|
|
--- a/deps/cares/BUILD.gn
|
2019-07-16 17:23:04 +00:00
|
|
|
+++ b/deps/cares/BUILD.gn
|
2024-05-31 21:37:42 +00:00
|
|
|
@@ -1,14 +1,163 @@
|
2024-01-18 21:16:45 +00:00
|
|
|
-##############################################################################
|
|
|
|
-# #
|
|
|
|
-# DO NOT EDIT THIS FILE! #
|
|
|
|
-# #
|
|
|
|
-##############################################################################
|
2019-07-16 17:23:04 +00:00
|
|
|
+config("cares_config") {
|
2021-08-20 17:25:50 +00:00
|
|
|
+ include_dirs = [ "include", "src/lib" ]
|
2019-07-16 17:23:04 +00:00
|
|
|
+}
|
|
|
|
+static_library("cares") {
|
|
|
|
+ defines = [ "CARES_STATICLIB" ]
|
2021-12-16 22:41:25 +00:00
|
|
|
+ include_dirs = [ "include" ]
|
2019-07-16 17:23:04 +00:00
|
|
|
+ public_configs = [ ":cares_config" ]
|
|
|
|
+
|
|
|
|
+ libs = []
|
|
|
|
+ cflags_c = [
|
|
|
|
+ "-Wno-logical-not-parentheses",
|
2021-07-26 16:02:16 +00:00
|
|
|
+ "-Wno-implicit-fallthrough",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "-Wno-sign-compare",
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ sources = [
|
|
|
|
+ "include/ares.h",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "include/ares_dns.h",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "include/ares_dns_record.h",
|
2021-12-16 22:41:25 +00:00
|
|
|
+ "include/ares_nameser.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "include/ares_rules.h",
|
|
|
|
+ "include/ares_version.h",
|
2021-12-16 22:41:25 +00:00
|
|
|
+ "src/lib/ares__addrinfo2hostent.c",
|
|
|
|
+ "src/lib/ares__addrinfo_localhost.c",
|
2023-12-11 20:09:50 +00:00
|
|
|
+ "src/lib/ares__buf.c",
|
|
|
|
+ "src/lib/ares__buf.h",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "src/lib/ares__close_sockets.c",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/lib/ares__hosts_file.c",
|
2023-12-11 20:09:50 +00:00
|
|
|
+ "src/lib/ares__htable.c",
|
|
|
|
+ "src/lib/ares__htable.h",
|
|
|
|
+ "src/lib/ares__htable_asvp.c",
|
|
|
|
+ "src/lib/ares__htable_asvp.h",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/lib/ares__htable_strvp.c",
|
|
|
|
+ "src/lib/ares__htable_strvp.h",
|
|
|
|
+ "src/lib/ares__htable_szvp.c",
|
|
|
|
+ "src/lib/ares__htable_szvp.h",
|
|
|
|
+ "src/lib/ares__iface_ips.c",
|
|
|
|
+ "src/lib/ares__iface_ips.h",
|
2023-12-11 20:09:50 +00:00
|
|
|
+ "src/lib/ares__llist.c",
|
|
|
|
+ "src/lib/ares__llist.h",
|
|
|
|
+ "src/lib/ares__parse_into_addrinfo.c",
|
|
|
|
+ "src/lib/ares__slist.c",
|
|
|
|
+ "src/lib/ares__slist.h",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/lib/ares__socket.c",
|
2023-12-11 20:09:50 +00:00
|
|
|
+ "src/lib/ares__sortaddrinfo.c",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/lib/ares__threads.c",
|
|
|
|
+ "src/lib/ares__threads.h",
|
2023-12-11 20:09:50 +00:00
|
|
|
+ "src/lib/ares__timeval.c",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/lib/ares_android.c",
|
|
|
|
+ "src/lib/ares_android.h",
|
2023-12-11 20:09:50 +00:00
|
|
|
+ "src/lib/ares_cancel.c",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "src/lib/ares_create_query.c",
|
|
|
|
+ "src/lib/ares_data.c",
|
|
|
|
+ "src/lib/ares_data.h",
|
|
|
|
+ "src/lib/ares_destroy.c",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/lib/ares_dns_mapping.c",
|
|
|
|
+ "src/lib/ares_dns_name.c",
|
|
|
|
+ "src/lib/ares_dns_parse.c",
|
|
|
|
+ "src/lib/ares_dns_record.c",
|
|
|
|
+ "src/lib/ares_dns_private.h",
|
|
|
|
+ "src/lib/ares_dns_write.c",
|
|
|
|
+ "src/lib/ares_event.h",
|
|
|
|
+ "src/lib/ares_event_win32.h",
|
|
|
|
+ "src/lib/ares_event_epoll.c",
|
|
|
|
+ "src/lib/ares_event_kqueue.c",
|
|
|
|
+ "src/lib/ares_event_poll.c",
|
|
|
|
+ "src/lib/ares_event_select.c",
|
|
|
|
+ "src/lib/ares_event_thread.c",
|
|
|
|
+ "src/lib/ares_event_wake_pipe.c",
|
|
|
|
+ "src/lib/ares_event_win32.c",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "src/lib/ares_expand_name.c",
|
|
|
|
+ "src/lib/ares_expand_string.c",
|
|
|
|
+ "src/lib/ares_fds.c",
|
|
|
|
+ "src/lib/ares_free_hostent.c",
|
|
|
|
+ "src/lib/ares_free_string.c",
|
|
|
|
+ "src/lib/ares_freeaddrinfo.c",
|
|
|
|
+ "src/lib/ares_getaddrinfo.c",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/lib/ares_getenv.c",
|
2023-12-11 20:09:50 +00:00
|
|
|
+ "src/lib/ares_getenv.h",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "src/lib/ares_gethostbyaddr.c",
|
|
|
|
+ "src/lib/ares_gethostbyname.c",
|
|
|
|
+ "src/lib/ares_getnameinfo.c",
|
|
|
|
+ "src/lib/ares_getsock.c",
|
2023-12-11 20:09:50 +00:00
|
|
|
+ "src/lib/ares_inet_net_pton.h",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "src/lib/ares_init.c",
|
|
|
|
+ "src/lib/ares_library_init.c",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/lib/ares_ipv6.h",
|
|
|
|
+ "src/lib/ares_math.c",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "src/lib/ares_options.c",
|
|
|
|
+ "src/lib/ares_parse_a_reply.c",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/lib/ares_parse_aaaa_reply.c",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "src/lib/ares_parse_caa_reply.c",
|
|
|
|
+ "src/lib/ares_parse_mx_reply.c",
|
|
|
|
+ "src/lib/ares_parse_naptr_reply.c",
|
|
|
|
+ "src/lib/ares_parse_ns_reply.c",
|
|
|
|
+ "src/lib/ares_parse_ptr_reply.c",
|
|
|
|
+ "src/lib/ares_parse_soa_reply.c",
|
|
|
|
+ "src/lib/ares_parse_srv_reply.c",
|
|
|
|
+ "src/lib/ares_parse_txt_reply.c",
|
2021-12-16 22:41:25 +00:00
|
|
|
+ "src/lib/ares_parse_uri_reply.c",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/lib/ares_platform.c",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "src/lib/ares_platform.h",
|
|
|
|
+ "src/lib/ares_private.h",
|
|
|
|
+ "src/lib/ares_process.c",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/lib/ares_qcache.c",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "src/lib/ares_query.c",
|
2023-06-26 16:03:30 +00:00
|
|
|
+ "src/lib/ares_rand.c",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "src/lib/ares_search.c",
|
|
|
|
+ "src/lib/ares_send.c",
|
|
|
|
+ "src/lib/ares_setup.h",
|
|
|
|
+ "src/lib/ares_strcasecmp.c",
|
|
|
|
+ "src/lib/ares_strcasecmp.h",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/lib/ares_str.c",
|
|
|
|
+ "src/lib/ares_str.h",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "src/lib/ares_strerror.c",
|
|
|
|
+ "src/lib/ares_strsplit.c",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/lib/ares_strsplit.h",
|
|
|
|
+ "src/lib/ares_sysconfig.c",
|
|
|
|
+ "src/lib/ares_sysconfig_files.c",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "src/lib/ares_timeout.c",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/lib/ares_update_servers.c",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "src/lib/ares_version.c",
|
|
|
|
+ "src/lib/inet_net_pton.c",
|
|
|
|
+ "src/lib/inet_ntop.c",
|
|
|
|
+ "src/lib/setup_once.h",
|
|
|
|
+ "src/tools/ares_getopt.c",
|
|
|
|
+ "src/tools/ares_getopt.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ if (!is_win) {
|
|
|
|
+ defines += [
|
|
|
|
+ "_DARWIN_USE_64_BIT_INODE=1",
|
|
|
|
+ "_LARGEFILE_SOURCE",
|
|
|
|
+ "_FILE_OFFSET_BITS=64",
|
|
|
|
+ "_GNU_SOURCE",
|
|
|
|
+ ]
|
|
|
|
+ }
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-# This file is used by GN for building, which is NOT the build system used for
|
|
|
|
-# building official binaries.
|
|
|
|
-# Please modify the gyp files if you are making changes to build system.
|
2019-07-16 17:23:04 +00:00
|
|
|
+ if (is_win) {
|
|
|
|
+ defines += [ "CARES_PULL_WS2TCPIP_H=1" ]
|
|
|
|
+ include_dirs += [ "config/win32" ]
|
|
|
|
+ sources += [
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "src/lib/config-win32.h",
|
|
|
|
+ "src/lib/windows_port.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
|
|
|
+ libs += [
|
|
|
|
+ "ws2_32.lib",
|
|
|
|
+ "iphlpapi.lib",
|
|
|
|
+ ]
|
|
|
|
+ } else {
|
|
|
|
+ defines += [ "HAVE_CONFIG_H" ]
|
|
|
|
+ }
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-import("unofficial.gni")
|
2019-07-16 17:23:04 +00:00
|
|
|
+ if (is_linux) {
|
|
|
|
+ include_dirs += [ "config/linux" ]
|
|
|
|
+ sources += [ "config/linux/ares_config.h" ]
|
|
|
|
+ }
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-cares_gn_build("cares") {
|
2019-07-16 17:23:04 +00:00
|
|
|
+ if (is_mac) {
|
|
|
|
+ include_dirs += [ "config/darwin" ]
|
|
|
|
+ sources += [ "config/darwin/ares_config.h" ]
|
|
|
|
+ }
|
2024-01-18 21:16:45 +00:00
|
|
|
}
|
2021-08-20 17:25:50 +00:00
|
|
|
diff --git a/deps/googletest/BUILD.gn b/deps/googletest/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
index de13f3f653b5d53610f4611001c10dce332293c2..0daf8c006cef89e76d7eccec3e924bd2718021c9 100644
|
|
|
|
--- a/deps/googletest/BUILD.gn
|
2021-08-20 17:25:50 +00:00
|
|
|
+++ b/deps/googletest/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
@@ -1,14 +1,64 @@
|
|
|
|
-##############################################################################
|
|
|
|
-# #
|
|
|
|
-# DO NOT EDIT THIS FILE! #
|
|
|
|
-# #
|
|
|
|
-##############################################################################
|
2021-08-20 17:25:50 +00:00
|
|
|
+config("gtest_config") {
|
|
|
|
+ include_dirs = [ "include" ]
|
|
|
|
+ defines = [ "UNIT_TEST" ]
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static_library("gtest") {
|
|
|
|
+ include_dirs = [
|
|
|
|
+ "include",
|
|
|
|
+ "." # src
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ public_configs = [ ":gtest_config" ]
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-# This file is used by GN for building, which is NOT the build system used for
|
|
|
|
-# building official binaries.
|
|
|
|
-# Please modify the gyp files if you are making changes to build system.
|
2021-08-20 17:25:50 +00:00
|
|
|
+ cflags_cc = [
|
|
|
|
+ "-Wno-c++98-compat-extra-semi",
|
2021-08-24 00:52:17 +00:00
|
|
|
+ "-Wno-unused-const-variable",
|
|
|
|
+ "-Wno-unreachable-code-return",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ ]
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-import("unofficial.gni")
|
2021-08-20 17:25:50 +00:00
|
|
|
+ defines = [
|
|
|
|
+ "GTEST_HAS_POSIX_RE=0",
|
|
|
|
+ "GTEST_LANG_CXX11=1",
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ sources = [
|
|
|
|
+ "include/gtest/gtest_pred_impl.h",
|
|
|
|
+ "include/gtest/gtest_prod.h",
|
|
|
|
+ "include/gtest/gtest-death-test.h",
|
|
|
|
+ "include/gtest/gtest-matchers.h",
|
|
|
|
+ "include/gtest/gtest-message.h",
|
|
|
|
+ "include/gtest/gtest-param-test.h",
|
|
|
|
+ "include/gtest/gtest-printers.h",
|
|
|
|
+ "include/gtest/gtest-spi.h",
|
|
|
|
+ "include/gtest/gtest-test-part.h",
|
|
|
|
+ "include/gtest/gtest-typed-test.h",
|
|
|
|
+ "include/gtest/gtest.h",
|
|
|
|
+ "include/gtest/internal/gtest-death-test-internal.h",
|
|
|
|
+ "include/gtest/internal/gtest-filepath.h",
|
|
|
|
+ "include/gtest/internal/gtest-internal.h",
|
|
|
|
+ "include/gtest/internal/gtest-param-util.h",
|
|
|
|
+ "include/gtest/internal/gtest-port-arch.h",
|
|
|
|
+ "include/gtest/internal/gtest-port.h",
|
|
|
|
+ "include/gtest/internal/gtest-string.h",
|
|
|
|
+ "include/gtest/internal/gtest-type-util.h",
|
|
|
|
+ "include/gtest/internal/custom/gtest-port.h",
|
|
|
|
+ "include/gtest/internal/custom/gtest-printers.h",
|
|
|
|
+ "include/gtest/internal/custom/gtest.h",
|
|
|
|
+ "src/gtest-all.cc",
|
|
|
|
+ "src/gtest-death-test.cc",
|
|
|
|
+ "src/gtest-filepath.cc",
|
|
|
|
+ "src/gtest-internal-inl.h",
|
|
|
|
+ "src/gtest-matchers.cc",
|
|
|
|
+ "src/gtest-port.cc",
|
|
|
|
+ "src/gtest-printers.cc",
|
|
|
|
+ "src/gtest-test-part.cc",
|
|
|
|
+ "src/gtest-typed-test.cc",
|
|
|
|
+ "src/gtest.cc",
|
|
|
|
+ ]
|
|
|
|
+}
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-googletest_gn_build("googletest") {
|
2021-08-20 17:25:50 +00:00
|
|
|
+static_library("gtest_main") {
|
|
|
|
+ deps = [ ":gtest" ]
|
|
|
|
+ sources = [ "src/gtest_main.cc" ]
|
2024-01-18 21:16:45 +00:00
|
|
|
}
|
2019-07-16 17:23:04 +00:00
|
|
|
diff --git a/deps/histogram/BUILD.gn b/deps/histogram/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
index e2f3ee37137a6b7d45cbe79f8b9ba7f693ffc4d3..85467b372f01cf602af45fa2f0d599acabfc2310 100644
|
|
|
|
--- a/deps/histogram/BUILD.gn
|
2019-07-16 17:23:04 +00:00
|
|
|
+++ b/deps/histogram/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
@@ -1,14 +1,19 @@
|
|
|
|
-##############################################################################
|
|
|
|
-# #
|
|
|
|
-# DO NOT EDIT THIS FILE! #
|
|
|
|
-# #
|
|
|
|
-##############################################################################
|
2019-07-16 17:23:04 +00:00
|
|
|
+config("histogram_config") {
|
2023-08-08 22:52:51 +00:00
|
|
|
+ include_dirs = [ "include" ]
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-# This file is used by GN for building, which is NOT the build system used for
|
|
|
|
-# building official binaries.
|
|
|
|
-# Please modify the gyp files if you are making changes to build system.
|
2019-07-16 17:23:04 +00:00
|
|
|
+ cflags = [
|
|
|
|
+ "-Wno-implicit-function-declaration",
|
|
|
|
+ "-Wno-incompatible-pointer-types",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "-Wno-unused-function",
|
|
|
|
+ "-Wno-atomic-alignment",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
|
|
|
+}
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-import("unofficial.gni")
|
2019-07-16 17:23:04 +00:00
|
|
|
+static_library("histogram") {
|
|
|
|
+ public_configs = [ ":histogram_config" ]
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-histogram_gn_build("histogram") {
|
2019-07-16 17:23:04 +00:00
|
|
|
+ sources = [
|
|
|
|
+ "src/hdr_histogram.c",
|
|
|
|
+ "src/hdr_histogram.h",
|
|
|
|
+ ]
|
2024-01-18 21:16:45 +00:00
|
|
|
}
|
2019-07-16 17:23:04 +00:00
|
|
|
diff --git a/deps/llhttp/BUILD.gn b/deps/llhttp/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
index 64a2a4799d5530276f46aa1faa63ece063390ada..fb000f8ee7647c375bc190d1729d67bb7770d109 100644
|
|
|
|
--- a/deps/llhttp/BUILD.gn
|
2019-07-16 17:23:04 +00:00
|
|
|
+++ b/deps/llhttp/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
@@ -1,14 +1,15 @@
|
|
|
|
-##############################################################################
|
|
|
|
-# #
|
|
|
|
-# DO NOT EDIT THIS FILE! #
|
|
|
|
-# #
|
|
|
|
-##############################################################################
|
|
|
|
-
|
|
|
|
-# This file is used by GN for building, which is NOT the build system used for
|
|
|
|
-# building official binaries.
|
|
|
|
-# Please modify the gyp files if you are making changes to build system.
|
|
|
|
-
|
|
|
|
-import("unofficial.gni")
|
2019-07-16 17:23:04 +00:00
|
|
|
+config("llhttp_config") {
|
|
|
|
+ include_dirs = [ "include" ]
|
2020-04-06 20:09:52 +00:00
|
|
|
+ cflags = [ "-Wno-unreachable-code" ]
|
2019-07-16 17:23:04 +00:00
|
|
|
+}
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-llhttp_gn_build("llhttp") {
|
2019-07-16 17:23:04 +00:00
|
|
|
+static_library("llhttp") {
|
|
|
|
+ include_dirs = [ "include" ]
|
|
|
|
+ public_configs = [ ":llhttp_config" ]
|
2021-07-26 16:02:16 +00:00
|
|
|
+ cflags_c = [ "-Wno-implicit-fallthrough" ]
|
2019-07-16 17:23:04 +00:00
|
|
|
+ sources = [
|
|
|
|
+ "src/api.c",
|
|
|
|
+ "src/http.c",
|
|
|
|
+ "src/llhttp.c",
|
|
|
|
+ ]
|
2024-01-18 21:16:45 +00:00
|
|
|
}
|
2019-07-16 17:23:04 +00:00
|
|
|
diff --git a/deps/nghttp2/BUILD.gn b/deps/nghttp2/BUILD.gn
|
2024-04-17 16:39:13 +00:00
|
|
|
index 274352b0e2449f8db49d9a49c6b92a69f97e8363..f04c7ca24af6cdbe8d739bcd55172110963888e9 100644
|
2024-01-18 21:16:45 +00:00
|
|
|
--- a/deps/nghttp2/BUILD.gn
|
2019-07-16 17:23:04 +00:00
|
|
|
+++ b/deps/nghttp2/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
@@ -1,14 +1,51 @@
|
|
|
|
-##############################################################################
|
|
|
|
-# #
|
|
|
|
-# DO NOT EDIT THIS FILE! #
|
|
|
|
-# #
|
|
|
|
-##############################################################################
|
|
|
|
-
|
|
|
|
-# This file is used by GN for building, which is NOT the build system used for
|
|
|
|
-# building official binaries.
|
|
|
|
-# Please modify the gyp files if you are making changes to build system.
|
2019-07-16 17:23:04 +00:00
|
|
|
+config("nghttp2_config") {
|
|
|
|
+ defines = [ "NGHTTP2_STATICLIB" ]
|
|
|
|
+ include_dirs = [ "lib/includes" ]
|
|
|
|
+}
|
|
|
|
+static_library("nghttp2") {
|
|
|
|
+ public_configs = [ ":nghttp2_config" ]
|
|
|
|
+ defines = [
|
|
|
|
+ "_U_",
|
|
|
|
+ "BUILDING_NGHTTP2",
|
|
|
|
+ "NGHTTP2_STATICLIB",
|
2022-08-29 10:23:47 +00:00
|
|
|
+ "HAVE_CONFIG_H",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
|
|
|
+ include_dirs = [ "lib/includes" ]
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-import("unofficial.gni")
|
2019-07-16 17:23:04 +00:00
|
|
|
+ cflags_c = [
|
|
|
|
+ "-Wno-implicit-function-declaration",
|
2021-07-26 16:02:16 +00:00
|
|
|
+ "-Wno-implicit-fallthrough",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "-Wno-string-plus-int",
|
2021-08-24 00:52:17 +00:00
|
|
|
+ "-Wno-unreachable-code-return",
|
2021-11-24 08:45:59 +00:00
|
|
|
+ "-Wno-unused-but-set-variable",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-nghttp2_gn_build("nghttp2") {
|
2019-07-16 17:23:04 +00:00
|
|
|
+ sources = [
|
|
|
|
+ "lib/nghttp2_buf.c",
|
|
|
|
+ "lib/nghttp2_callbacks.c",
|
|
|
|
+ "lib/nghttp2_debug.c",
|
2023-01-11 10:33:48 +00:00
|
|
|
+ "lib/nghttp2_extpri.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "lib/nghttp2_frame.c",
|
|
|
|
+ "lib/nghttp2_hd.c",
|
|
|
|
+ "lib/nghttp2_hd_huffman.c",
|
|
|
|
+ "lib/nghttp2_hd_huffman_data.c",
|
|
|
|
+ "lib/nghttp2_helper.c",
|
|
|
|
+ "lib/nghttp2_http.c",
|
|
|
|
+ "lib/nghttp2_map.c",
|
|
|
|
+ "lib/nghttp2_mem.c",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "lib/nghttp2_alpn.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "lib/nghttp2_option.c",
|
|
|
|
+ "lib/nghttp2_outbound_item.c",
|
|
|
|
+ "lib/nghttp2_pq.c",
|
|
|
|
+ "lib/nghttp2_priority_spec.c",
|
|
|
|
+ "lib/nghttp2_queue.c",
|
2023-10-16 15:13:35 +00:00
|
|
|
+ "lib/nghttp2_ratelim.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "lib/nghttp2_rcbuf.c",
|
|
|
|
+ "lib/nghttp2_session.c",
|
|
|
|
+ "lib/nghttp2_stream.c",
|
|
|
|
+ "lib/nghttp2_submit.c",
|
2023-10-16 15:13:35 +00:00
|
|
|
+ "lib/nghttp2_time.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "lib/nghttp2_version.c",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "lib/sfparse.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
2024-01-18 21:16:45 +00:00
|
|
|
}
|
|
|
|
diff --git a/deps/simdjson/BUILD.gn b/deps/simdjson/BUILD.gn
|
|
|
|
index d0580ccf354d2000fb0075fd3bb4579f93477927..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644
|
|
|
|
--- a/deps/simdjson/BUILD.gn
|
|
|
|
+++ b/deps/simdjson/BUILD.gn
|
|
|
|
@@ -1,14 +0,0 @@
|
|
|
|
-##############################################################################
|
|
|
|
-# #
|
|
|
|
-# DO NOT EDIT THIS FILE! #
|
|
|
|
-# #
|
|
|
|
-##############################################################################
|
|
|
|
-
|
|
|
|
-# This file is used by GN for building, which is NOT the build system used for
|
|
|
|
-# building official binaries.
|
|
|
|
-# Please modify the gyp files if you are making changes to build system.
|
|
|
|
-
|
|
|
|
-import("unofficial.gni")
|
|
|
|
-
|
|
|
|
-simdjson_gn_build("simdjson") {
|
|
|
|
-}
|
2023-02-07 20:51:07 +00:00
|
|
|
diff --git a/deps/simdutf/BUILD.gn b/deps/simdutf/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
index 119d49456911e99944294bd00b3f182a8f0e35b5..ce38c3633a228306622a7237067393d25332c59c 100644
|
|
|
|
--- a/deps/simdutf/BUILD.gn
|
2023-02-07 20:51:07 +00:00
|
|
|
+++ b/deps/simdutf/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
@@ -1,14 +1,21 @@
|
|
|
|
-##############################################################################
|
|
|
|
-# #
|
|
|
|
-# DO NOT EDIT THIS FILE! #
|
|
|
|
-# #
|
|
|
|
-##############################################################################
|
2023-02-07 20:51:07 +00:00
|
|
|
+config("simdutf_config") {
|
|
|
|
+ include_dirs = [ "." ]
|
|
|
|
+}
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-# This file is used by GN for building, which is NOT the build system used for
|
|
|
|
-# building official binaries.
|
|
|
|
-# Please modify the gyp files if you are making changes to build system.
|
2023-02-07 20:51:07 +00:00
|
|
|
+static_library("simdutf") {
|
|
|
|
+ include_dirs = [ "." ]
|
|
|
|
+ sources = [
|
|
|
|
+ "simdutf.cpp",
|
|
|
|
+ ]
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-import("unofficial.gni")
|
2023-02-07 20:51:07 +00:00
|
|
|
+ public_configs = [ ":simdutf_config" ]
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-simdutf_gn_build("simdutf") {
|
2023-02-07 20:51:07 +00:00
|
|
|
+ cflags_cc = [
|
|
|
|
+ "-Wno-ambiguous-reversed-operator",
|
|
|
|
+ "-Wno-c++98-compat-extra-semi",
|
2024-01-18 21:16:45 +00:00
|
|
|
+ "-Wno-unreachable-code",
|
2023-02-07 20:51:07 +00:00
|
|
|
+ "-Wno-unreachable-code-break",
|
|
|
|
+ "-Wno-unused-const-variable",
|
|
|
|
+ "-Wno-unused-function",
|
|
|
|
+ ]
|
2024-01-18 21:16:45 +00:00
|
|
|
}
|
2019-07-16 17:23:04 +00:00
|
|
|
diff --git a/deps/uv/BUILD.gn b/deps/uv/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
index 8e6ac27048b5965e20f35c7a63e469beb6fa5970..7518168141db7958550c7f5dc1ed17ccdbbe4a60 100644
|
|
|
|
--- a/deps/uv/BUILD.gn
|
2019-07-16 17:23:04 +00:00
|
|
|
+++ b/deps/uv/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
@@ -1,14 +1,194 @@
|
|
|
|
-##############################################################################
|
|
|
|
-# #
|
|
|
|
-# DO NOT EDIT THIS FILE! #
|
|
|
|
-# #
|
|
|
|
-##############################################################################
|
2019-07-16 17:23:04 +00:00
|
|
|
+config("libuv_config") {
|
|
|
|
+ include_dirs = [ "include" ]
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-# This file is used by GN for building, which is NOT the build system used for
|
|
|
|
-# building official binaries.
|
|
|
|
-# Please modify the gyp files if you are making changes to build system.
|
2019-07-16 17:23:04 +00:00
|
|
|
+ defines = []
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-import("unofficial.gni")
|
2019-07-16 17:23:04 +00:00
|
|
|
+ if (is_linux) {
|
|
|
|
+ defines += [ "_POSIX_C_SOURCE=200112" ]
|
|
|
|
+ }
|
|
|
|
+ if (!is_win) {
|
|
|
|
+ defines += [
|
|
|
|
+ "_LARGEFILE_SOURCE",
|
|
|
|
+ "_FILE_OFFSET_BITS=64",
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ if (is_mac) {
|
|
|
|
+ defines += [ "_DARWIN_USE_64_BIT_INODE=1" ]
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static_library("uv") {
|
|
|
|
+ include_dirs = [
|
|
|
|
+ "include",
|
|
|
|
+ "src",
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ public_configs = [ ":libuv_config" ]
|
|
|
|
+
|
|
|
|
+ ldflags = []
|
|
|
|
+
|
|
|
|
+ defines = []
|
|
|
|
+
|
2019-07-16 21:38:17 +00:00
|
|
|
+ # This only has an effect on Windows, where it will cause libuv's symbols to be exported in node.lib
|
|
|
|
+ defines += [ "BUILDING_UV_SHARED=1" ]
|
|
|
|
+
|
2019-07-16 17:23:04 +00:00
|
|
|
+ cflags_c = [
|
2020-09-17 22:08:57 +00:00
|
|
|
+ "-Wno-incompatible-pointer-types",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "-Wno-bitwise-op-parentheses",
|
2021-07-26 16:02:16 +00:00
|
|
|
+ "-Wno-implicit-fallthrough",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "-Wno-implicit-function-declaration",
|
|
|
|
+ "-Wno-missing-braces",
|
|
|
|
+ "-Wno-sign-compare",
|
|
|
|
+ "-Wno-sometimes-uninitialized",
|
|
|
|
+ "-Wno-string-conversion",
|
|
|
|
+ "-Wno-switch",
|
|
|
|
+ "-Wno-unused-function",
|
2023-09-20 20:13:43 +00:00
|
|
|
+ "-Wno-unused-result",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "-Wno-unused-variable",
|
2020-04-06 20:09:52 +00:00
|
|
|
+ "-Wno-unreachable-code",
|
2021-08-24 00:52:17 +00:00
|
|
|
+ "-Wno-unreachable-code-return",
|
2021-11-24 08:45:59 +00:00
|
|
|
+ "-Wno-unused-but-set-variable",
|
2022-01-10 22:31:39 +00:00
|
|
|
+ "-Wno-shadow",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ libs = []
|
|
|
|
+
|
|
|
|
+ sources = [
|
|
|
|
+ "include/uv.h",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "include/uv/tree.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "include/uv/errno.h",
|
|
|
|
+ "include/uv/threadpool.h",
|
|
|
|
+ "include/uv/version.h",
|
|
|
|
+ "src/fs-poll.c",
|
|
|
|
+ "src/heap-inl.h",
|
|
|
|
+ "src/idna.c",
|
|
|
|
+ "src/idna.h",
|
|
|
|
+ "src/inet.c",
|
|
|
|
+ "src/queue.h",
|
2021-07-26 16:02:16 +00:00
|
|
|
+ "src/random.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/strscpy.c",
|
|
|
|
+ "src/strscpy.h",
|
2023-05-22 11:00:45 +00:00
|
|
|
+ "src/strtok.c",
|
|
|
|
+ "src/strtok.h",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/thread-common.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/threadpool.c",
|
|
|
|
+ "src/timer.c",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/uv-data-getter-setters.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/uv-common.c",
|
|
|
|
+ "src/uv-common.h",
|
|
|
|
+ "src/version.c",
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ if (is_win) {
|
|
|
|
+ defines += [ "_GNU_SOURCE" ]
|
|
|
|
+ sources += [
|
|
|
|
+ "include/uv/win.h",
|
|
|
|
+ "src/win/async.c",
|
|
|
|
+ "src/win/atomicops-inl.h",
|
|
|
|
+ "src/win/core.c",
|
|
|
|
+ "src/win/detect-wakeup.c",
|
|
|
|
+ "src/win/dl.c",
|
|
|
|
+ "src/win/error.c",
|
|
|
|
+ "src/win/fs.c",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/win/fs-event.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/win/getaddrinfo.c",
|
|
|
|
+ "src/win/getnameinfo.c",
|
|
|
|
+ "src/win/handle.c",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/win/handle-inl.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/win/internal.h",
|
|
|
|
+ "src/win/loop-watcher.c",
|
|
|
|
+ "src/win/pipe.c",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/win/thread.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/win/poll.c",
|
|
|
|
+ "src/win/process.c",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/win/process-stdio.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/win/req-inl.h",
|
|
|
|
+ "src/win/signal.c",
|
|
|
|
+ "src/win/snprintf.c",
|
|
|
|
+ "src/win/stream.c",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/win/stream-inl.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/win/tcp.c",
|
|
|
|
+ "src/win/tty.c",
|
|
|
|
+ "src/win/udp.c",
|
|
|
|
+ "src/win/util.c",
|
|
|
|
+ "src/win/winapi.c",
|
|
|
|
+ "src/win/winapi.h",
|
|
|
|
+ "src/win/winsock.c",
|
|
|
|
+ "src/win/winsock.h",
|
|
|
|
+ ]
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-uv_gn_build("uv") {
|
2019-07-16 17:23:04 +00:00
|
|
|
+ libs += [
|
|
|
|
+ "advapi32.lib",
|
|
|
|
+ "iphlpapi.lib",
|
|
|
|
+ "psapi.lib",
|
|
|
|
+ "shell32.lib",
|
|
|
|
+ "user32.lib",
|
|
|
|
+ "userenv.lib",
|
|
|
|
+ "ws2_32.lib",
|
|
|
|
+ ]
|
|
|
|
+ } else {
|
|
|
|
+ sources += [
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "include/uv/unix.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "include/uv/linux.h",
|
|
|
|
+ "include/uv/sunos.h",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "include/uv/darwin.h",
|
|
|
|
+ "include/uv/bsd.h",
|
|
|
|
+ "include/uv/aix.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/unix/async.c",
|
|
|
|
+ "src/unix/core.c",
|
|
|
|
+ "src/unix/dl.c",
|
|
|
|
+ "src/unix/fs.c",
|
|
|
|
+ "src/unix/getaddrinfo.c",
|
|
|
|
+ "src/unix/getnameinfo.c",
|
|
|
|
+ "src/unix/internal.h",
|
|
|
|
+ "src/unix/loop.c",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/unix/loop-watcher.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/unix/pipe.c",
|
|
|
|
+ "src/unix/poll.c",
|
|
|
|
+ "src/unix/process.c",
|
2021-07-26 16:02:16 +00:00
|
|
|
+ "src/unix/random-devurandom.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/unix/signal.c",
|
|
|
|
+ "src/unix/stream.c",
|
|
|
|
+ "src/unix/tcp.c",
|
|
|
|
+ "src/unix/thread.c",
|
|
|
|
+ "src/unix/tty.c",
|
|
|
|
+ "src/unix/udp.c",
|
|
|
|
+ ]
|
|
|
|
+ libs += [ "m" ]
|
|
|
|
+ ldflags += [ "-pthread" ]
|
|
|
|
+ }
|
|
|
|
+ if (is_mac || is_linux) {
|
|
|
|
+ sources += [ "src/unix/proctitle.c" ]
|
|
|
|
+ }
|
|
|
|
+ if (is_mac) {
|
|
|
|
+ sources += [
|
|
|
|
+ "src/unix/darwin-proctitle.c",
|
|
|
|
+ "src/unix/darwin.c",
|
|
|
|
+ "src/unix/fsevents.c",
|
2021-07-26 16:02:16 +00:00
|
|
|
+ "src/unix/random-getentropy.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
|
|
|
+ defines += [
|
|
|
|
+ "_DARWIN_USE_64_BIT_INODE=1",
|
|
|
|
+ "_DARWIN_UNLIMITED_SELECT=1",
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ if (is_linux) {
|
|
|
|
+ defines += [ "_GNU_SOURCE" ]
|
|
|
|
+ sources += [
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/unix/linux.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/unix/procfs-exepath.c",
|
2020-02-24 21:02:04 +00:00
|
|
|
+ "src/unix/random-getrandom.c",
|
|
|
|
+ "src/unix/random-sysctl-linux.c",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
|
|
|
+ libs += [
|
|
|
|
+ "dl",
|
|
|
|
+ "rt",
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ if (is_mac) { # is_bsd
|
|
|
|
+ sources += [
|
|
|
|
+ "src/unix/bsd-ifaddrs.c",
|
|
|
|
+ "src/unix/kqueue.c",
|
|
|
|
+ ]
|
|
|
|
+ }
|
2024-01-18 21:16:45 +00:00
|
|
|
}
|
2020-02-24 21:02:04 +00:00
|
|
|
diff --git a/deps/uvwasi/BUILD.gn b/deps/uvwasi/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
index 4f8fb081df805a786e523e5f0ffbb0096fdeca99..d9fcf8dc972b1caa2b7a130b1144c685316035cd 100644
|
|
|
|
--- a/deps/uvwasi/BUILD.gn
|
2020-02-24 21:02:04 +00:00
|
|
|
+++ b/deps/uvwasi/BUILD.gn
|
2024-01-18 21:16:45 +00:00
|
|
|
@@ -1,14 +1,39 @@
|
|
|
|
-##############################################################################
|
|
|
|
-# #
|
|
|
|
-# DO NOT EDIT THIS FILE! #
|
|
|
|
-# #
|
|
|
|
-##############################################################################
|
2020-02-24 21:02:04 +00:00
|
|
|
+config("uvwasi_config") {
|
|
|
|
+ include_dirs = [ "include" ]
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static_library("uvwasi") {
|
|
|
|
+ include_dirs = [
|
|
|
|
+ "include",
|
|
|
|
+ "src",
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ defines = []
|
|
|
|
+ if (is_linux) {
|
|
|
|
+ defines += [
|
|
|
|
+ "_GNU_SOURCE",
|
|
|
|
+ "_POSIX_C_SOURCE=200112"
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ deps = [ "../../deps/uv" ]
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-# This file is used by GN for building, which is NOT the build system used for
|
|
|
|
-# building official binaries.
|
|
|
|
-# Please modify the gyp files if you are making changes to build system.
|
2020-02-24 21:02:04 +00:00
|
|
|
+ public_configs = [ ":uvwasi_config" ]
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-import("unofficial.gni")
|
2020-02-24 21:02:04 +00:00
|
|
|
+ cflags_c = []
|
|
|
|
+ if (!is_win) {
|
|
|
|
+ cflags_c += [ "-fvisibility=hidden" ]
|
|
|
|
+ }
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-uvwasi_gn_build("uvwasi") {
|
2020-02-24 21:02:04 +00:00
|
|
|
+ sources = [
|
|
|
|
+ "src/clocks.c",
|
|
|
|
+ "src/fd_table.c",
|
2020-06-17 22:57:12 +00:00
|
|
|
+ "src/path_resolver.c",
|
2020-06-19 00:37:23 +00:00
|
|
|
+ "src/poll_oneoff.c",
|
2023-12-11 20:09:50 +00:00
|
|
|
+ "src/sync_helpers.c",
|
2020-02-24 21:02:04 +00:00
|
|
|
+ "src/uv_mapping.c",
|
|
|
|
+ "src/uvwasi.c",
|
2020-04-14 16:59:03 +00:00
|
|
|
+ "src/wasi_rights.c",
|
2020-06-19 00:37:23 +00:00
|
|
|
+ "src/wasi_serdes.c"
|
2020-02-24 21:02:04 +00:00
|
|
|
+ ]
|
2024-01-18 21:16:45 +00:00
|
|
|
}
|
|
|
|
diff --git a/electron_node.gni b/electron_node.gni
|
|
|
|
new file mode 100644
|
|
|
|
index 0000000000000000000000000000000000000000..af9cbada10203b387fb9732b346583b1c4349223
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/electron_node.gni
|
|
|
|
@@ -0,0 +1,4 @@
|
|
|
|
+declare_args() {
|
|
|
|
+ # Allows embedders to override the NODE_MODULE_VERSION define
|
|
|
|
+ node_module_version = ""
|
2020-02-24 21:02:04 +00:00
|
|
|
+}
|
2019-07-16 17:23:04 +00:00
|
|
|
diff --git a/filenames.json b/filenames.json
|
|
|
|
new file mode 100644
|
2024-05-31 21:37:42 +00:00
|
|
|
index 0000000000000000000000000000000000000000..1a9cba024f1762b0dfe31da92213b51e112101ec
|
2019-07-16 17:23:04 +00:00
|
|
|
--- /dev/null
|
|
|
|
+++ b/filenames.json
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -0,0 +1,739 @@
|
2019-07-16 17:23:04 +00:00
|
|
|
+// This file is automatically generated by generate_gn_filenames_json.py
|
|
|
|
+// DO NOT EDIT
|
|
|
|
+{
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "fs_files": [
|
|
|
|
+ "lib/internal/fs/cp/cp-sync.js",
|
|
|
|
+ "lib/internal/fs/cp/cp.js",
|
|
|
|
+ "lib/internal/fs/dir.js",
|
|
|
|
+ "lib/internal/fs/promises.js",
|
|
|
|
+ "lib/internal/fs/read/context.js",
|
|
|
|
+ "lib/internal/fs/recursive_watch.js",
|
|
|
|
+ "lib/internal/fs/rimraf.js",
|
|
|
|
+ "lib/internal/fs/streams.js",
|
|
|
|
+ "lib/internal/fs/sync_write_stream.js",
|
|
|
|
+ "lib/internal/fs/utils.js",
|
|
|
|
+ "lib/internal/fs/watchers.js",
|
2024-05-13 08:25:48 +00:00
|
|
|
+ "lib/fs.js",
|
|
|
|
+ "lib/fs/promises.js"
|
2023-11-30 14:51:35 +00:00
|
|
|
+ ],
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "headers": [
|
|
|
|
+ {
|
|
|
|
+ "dest_dir": "include/node/",
|
|
|
|
+ "files": [
|
|
|
|
+ "src/js_native_api.h",
|
|
|
|
+ "src/js_native_api_types.h",
|
|
|
|
+ "src/node.h",
|
|
|
|
+ "src/node_api.h",
|
|
|
|
+ "src/node_api_types.h",
|
|
|
|
+ "src/node_buffer.h",
|
2019-07-16 21:38:17 +00:00
|
|
|
+ "src/node_object_wrap.h"
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "dest_dir": "include/node//",
|
|
|
|
+ "files": [
|
2021-09-01 19:55:07 +00:00
|
|
|
+ "//v8/include/v8-array-buffer.h",
|
|
|
|
+ "//v8/include/v8-callbacks.h",
|
|
|
|
+ "//v8/include/v8-container.h",
|
|
|
|
+ "//v8/include/v8-context.h",
|
|
|
|
+ "//v8/include/v8-cppgc.h",
|
|
|
|
+ "//v8/include/v8-data.h",
|
|
|
|
+ "//v8/include/v8-date.h",
|
|
|
|
+ "//v8/include/v8-debug.h",
|
|
|
|
+ "//v8/include/v8-embedder-heap.h",
|
2022-01-10 22:31:39 +00:00
|
|
|
+ "//v8/include/v8-embedder-state-scope.h",
|
2021-09-01 19:55:07 +00:00
|
|
|
+ "//v8/include/v8-exception.h",
|
|
|
|
+ "//v8/include/v8-extension.h",
|
|
|
|
+ "//v8/include/v8-external.h",
|
|
|
|
+ "//v8/include/v8-forward.h",
|
|
|
|
+ "//v8/include/v8-function-callback.h",
|
|
|
|
+ "//v8/include/v8-function.h",
|
2023-03-31 02:03:58 +00:00
|
|
|
+ "//v8/include/v8-handle-base.h",
|
2021-09-01 19:55:07 +00:00
|
|
|
+ "//v8/include/v8-initialization.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "//v8/include/v8-internal.h",
|
2021-09-01 19:55:07 +00:00
|
|
|
+ "//v8/include/v8-isolate.h",
|
|
|
|
+ "//v8/include/v8-json.h",
|
|
|
|
+ "//v8/include/v8-local-handle.h",
|
|
|
|
+ "//v8/include/v8-locker.h",
|
|
|
|
+ "//v8/include/v8-maybe.h",
|
|
|
|
+ "//v8/include/v8-memory-span.h",
|
|
|
|
+ "//v8/include/v8-message.h",
|
|
|
|
+ "//v8/include/v8-microtask-queue.h",
|
|
|
|
+ "//v8/include/v8-microtask.h",
|
|
|
|
+ "//v8/include/v8-object.h",
|
|
|
|
+ "//v8/include/v8-persistent-handle.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "//v8/include/v8-platform.h",
|
2021-09-01 19:55:07 +00:00
|
|
|
+ "//v8/include/v8-primitive-object.h",
|
|
|
|
+ "//v8/include/v8-primitive.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "//v8/include/v8-profiler.h",
|
2021-09-01 19:55:07 +00:00
|
|
|
+ "//v8/include/v8-promise.h",
|
|
|
|
+ "//v8/include/v8-proxy.h",
|
|
|
|
+ "//v8/include/v8-regexp.h",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "//v8/include/v8-sandbox.h",
|
2021-09-01 19:55:07 +00:00
|
|
|
+ "//v8/include/v8-script.h",
|
|
|
|
+ "//v8/include/v8-snapshot.h",
|
2023-04-12 11:37:48 +00:00
|
|
|
+ "//v8/include/v8-source-location.h",
|
2021-09-01 19:55:07 +00:00
|
|
|
+ "//v8/include/v8-statistics.h",
|
|
|
|
+ "//v8/include/v8-template.h",
|
|
|
|
+ "//v8/include/v8-traced-handle.h",
|
|
|
|
+ "//v8/include/v8-typed-array.h",
|
|
|
|
+ "//v8/include/v8-unwinder.h",
|
|
|
|
+ "//v8/include/v8-value-serializer.h",
|
|
|
|
+ "//v8/include/v8-value.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "//v8/include/v8-version.h",
|
2021-09-01 19:55:07 +00:00
|
|
|
+ "//v8/include/v8-wasm.h",
|
|
|
|
+ "//v8/include/v8-weak-callback-info.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "//v8/include/v8.h",
|
|
|
|
+ "//v8/include/v8config.h"
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "dest_dir": "include/node//libplatform/",
|
|
|
|
+ "files": [
|
|
|
|
+ "//v8/include/libplatform/libplatform-export.h",
|
|
|
|
+ "//v8/include/libplatform/libplatform.h",
|
|
|
|
+ "//v8/include/libplatform/v8-tracing.h"
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "dest_dir": "include/node//cppgc/",
|
|
|
|
+ "files": [
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "//v8/include/cppgc/allocation.h",
|
|
|
|
+ "//v8/include/cppgc/common.h",
|
|
|
|
+ "//v8/include/cppgc/cross-thread-persistent.h",
|
|
|
|
+ "//v8/include/cppgc/custom-space.h",
|
|
|
|
+ "//v8/include/cppgc/default-platform.h",
|
|
|
|
+ "//v8/include/cppgc/ephemeron-pair.h",
|
|
|
|
+ "//v8/include/cppgc/explicit-management.h",
|
|
|
|
+ "//v8/include/cppgc/garbage-collected.h",
|
|
|
|
+ "//v8/include/cppgc/heap-consistency.h",
|
|
|
|
+ "//v8/include/cppgc/heap-handle.h",
|
|
|
|
+ "//v8/include/cppgc/heap-state.h",
|
|
|
|
+ "//v8/include/cppgc/heap-statistics.h",
|
|
|
|
+ "//v8/include/cppgc/heap.h",
|
|
|
|
+ "//v8/include/cppgc/liveness-broker.h",
|
|
|
|
+ "//v8/include/cppgc/macros.h",
|
|
|
|
+ "//v8/include/cppgc/member.h",
|
|
|
|
+ "//v8/include/cppgc/name-provider.h",
|
|
|
|
+ "//v8/include/cppgc/object-size-trait.h",
|
|
|
|
+ "//v8/include/cppgc/persistent.h",
|
|
|
|
+ "//v8/include/cppgc/platform.h",
|
|
|
|
+ "//v8/include/cppgc/prefinalizer.h",
|
|
|
|
+ "//v8/include/cppgc/process-heap-statistics.h",
|
|
|
|
+ "//v8/include/cppgc/sentinel-pointer.h",
|
|
|
|
+ "//v8/include/cppgc/source-location.h",
|
|
|
|
+ "//v8/include/cppgc/testing.h",
|
|
|
|
+ "//v8/include/cppgc/trace-trait.h",
|
|
|
|
+ "//v8/include/cppgc/type-traits.h",
|
|
|
|
+ "//v8/include/cppgc/visitor.h"
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "dest_dir": "include/node//cppgc/internal/",
|
|
|
|
+ "files": [
|
|
|
|
+ "//v8/include/cppgc/internal/api-constants.h",
|
|
|
|
+ "//v8/include/cppgc/internal/atomic-entry-flag.h",
|
|
|
|
+ "//v8/include/cppgc/internal/base-page-handle.h",
|
|
|
|
+ "//v8/include/cppgc/internal/caged-heap-local-data.h",
|
|
|
|
+ "//v8/include/cppgc/internal/caged-heap.h",
|
|
|
|
+ "//v8/include/cppgc/internal/compiler-specific.h",
|
|
|
|
+ "//v8/include/cppgc/internal/finalizer-trait.h",
|
|
|
|
+ "//v8/include/cppgc/internal/gc-info.h",
|
|
|
|
+ "//v8/include/cppgc/internal/logging.h",
|
|
|
|
+ "//v8/include/cppgc/internal/member-storage.h",
|
|
|
|
+ "//v8/include/cppgc/internal/name-trait.h",
|
|
|
|
+ "//v8/include/cppgc/internal/persistent-node.h",
|
|
|
|
+ "//v8/include/cppgc/internal/pointer-policies.h",
|
|
|
|
+ "//v8/include/cppgc/internal/write-barrier.h"
|
2021-08-20 17:25:50 +00:00
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "dest_dir": "include/node//",
|
|
|
|
+ "files": [
|
|
|
|
+ "deps/uv/include/uv.h"
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "dest_dir": "include/node//uv/",
|
|
|
|
+ "files": [
|
|
|
|
+ "deps/uv/include/uv/aix.h",
|
|
|
|
+ "deps/uv/include/uv/bsd.h",
|
|
|
|
+ "deps/uv/include/uv/darwin.h",
|
|
|
|
+ "deps/uv/include/uv/errno.h",
|
|
|
|
+ "deps/uv/include/uv/linux.h",
|
|
|
|
+ "deps/uv/include/uv/os390.h",
|
|
|
|
+ "deps/uv/include/uv/posix.h",
|
|
|
|
+ "deps/uv/include/uv/sunos.h",
|
|
|
|
+ "deps/uv/include/uv/threadpool.h",
|
|
|
|
+ "deps/uv/include/uv/tree.h",
|
|
|
|
+ "deps/uv/include/uv/unix.h",
|
|
|
|
+ "deps/uv/include/uv/version.h",
|
|
|
|
+ "deps/uv/include/uv/win.h"
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "library_files": [
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/_http_agent.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/_http_client.js",
|
|
|
|
+ "lib/_http_common.js",
|
|
|
|
+ "lib/_http_incoming.js",
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/_http_outgoing.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/_http_server.js",
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/_stream_duplex.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/_stream_passthrough.js",
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/_stream_readable.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/_stream_transform.js",
|
|
|
|
+ "lib/_stream_wrap.js",
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/_stream_writable.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/_tls_common.js",
|
|
|
|
+ "lib/_tls_wrap.js",
|
|
|
|
+ "lib/assert.js",
|
|
|
|
+ "lib/assert/strict.js",
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/async_hooks.js",
|
|
|
|
+ "lib/buffer.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/child_process.js",
|
|
|
|
+ "lib/cluster.js",
|
|
|
|
+ "lib/console.js",
|
|
|
|
+ "lib/constants.js",
|
|
|
|
+ "lib/crypto.js",
|
|
|
|
+ "lib/dgram.js",
|
|
|
|
+ "lib/diagnostics_channel.js",
|
|
|
|
+ "lib/dns.js",
|
|
|
|
+ "lib/dns/promises.js",
|
|
|
|
+ "lib/domain.js",
|
|
|
|
+ "lib/events.js",
|
|
|
|
+ "lib/http.js",
|
|
|
|
+ "lib/http2.js",
|
|
|
|
+ "lib/https.js",
|
|
|
|
+ "lib/inspector.js",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "lib/inspector/promises.js",
|
2021-05-19 13:48:46 +00:00
|
|
|
+ "lib/internal/abort_controller.js",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "lib/internal/assert.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/assert/assertion_error.js",
|
|
|
|
+ "lib/internal/assert/calltracker.js",
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/internal/async_hooks.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/blob.js",
|
|
|
|
+ "lib/internal/blocklist.js",
|
|
|
|
+ "lib/internal/bootstrap/node.js",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "lib/internal/bootstrap/realm.js",
|
2024-01-18 21:16:45 +00:00
|
|
|
+ "lib/internal/bootstrap/shadow_realm.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/bootstrap/switches/does_not_own_process_state.js",
|
|
|
|
+ "lib/internal/bootstrap/switches/does_own_process_state.js",
|
|
|
|
+ "lib/internal/bootstrap/switches/is_main_thread.js",
|
|
|
|
+ "lib/internal/bootstrap/switches/is_not_main_thread.js",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "lib/internal/bootstrap/web/exposed-wildcard.js",
|
|
|
|
+ "lib/internal/bootstrap/web/exposed-window-or-worker.js",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "lib/internal/buffer.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/child_process.js",
|
|
|
|
+ "lib/internal/child_process/serialization.js",
|
|
|
|
+ "lib/internal/cli_table.js",
|
|
|
|
+ "lib/internal/cluster/child.js",
|
|
|
|
+ "lib/internal/cluster/primary.js",
|
|
|
|
+ "lib/internal/cluster/round_robin_handle.js",
|
|
|
|
+ "lib/internal/cluster/shared_handle.js",
|
|
|
|
+ "lib/internal/cluster/utils.js",
|
|
|
|
+ "lib/internal/cluster/worker.js",
|
|
|
|
+ "lib/internal/console/constructor.js",
|
|
|
|
+ "lib/internal/console/global.js",
|
|
|
|
+ "lib/internal/constants.js",
|
2021-06-17 06:50:56 +00:00
|
|
|
+ "lib/internal/crypto/aes.js",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "lib/internal/crypto/certificate.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/crypto/cfrg.js",
|
|
|
|
+ "lib/internal/crypto/cipher.js",
|
|
|
|
+ "lib/internal/crypto/diffiehellman.js",
|
2021-06-17 06:50:56 +00:00
|
|
|
+ "lib/internal/crypto/ec.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/crypto/hash.js",
|
|
|
|
+ "lib/internal/crypto/hashnames.js",
|
|
|
|
+ "lib/internal/crypto/hkdf.js",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "lib/internal/crypto/keygen.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/crypto/keys.js",
|
2021-06-17 06:50:56 +00:00
|
|
|
+ "lib/internal/crypto/mac.js",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "lib/internal/crypto/pbkdf2.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/crypto/random.js",
|
|
|
|
+ "lib/internal/crypto/rsa.js",
|
|
|
|
+ "lib/internal/crypto/scrypt.js",
|
|
|
|
+ "lib/internal/crypto/sig.js",
|
|
|
|
+ "lib/internal/crypto/util.js",
|
2021-06-17 06:50:56 +00:00
|
|
|
+ "lib/internal/crypto/webcrypto.js",
|
2023-08-08 22:52:51 +00:00
|
|
|
+ "lib/internal/crypto/webidl.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/crypto/x509.js",
|
2021-08-20 17:25:50 +00:00
|
|
|
+ "lib/internal/debugger/inspect.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/debugger/inspect_client.js",
|
|
|
|
+ "lib/internal/debugger/inspect_repl.js",
|
|
|
|
+ "lib/internal/dgram.js",
|
|
|
|
+ "lib/internal/dns/callback_resolver.js",
|
|
|
|
+ "lib/internal/dns/promises.js",
|
|
|
|
+ "lib/internal/dns/utils.js",
|
|
|
|
+ "lib/internal/encoding.js",
|
|
|
|
+ "lib/internal/error_serdes.js",
|
|
|
|
+ "lib/internal/errors.js",
|
|
|
|
+ "lib/internal/event_target.js",
|
2024-05-31 21:37:42 +00:00
|
|
|
+ "lib/internal/events/abort_listener.js",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "lib/internal/events/symbols.js",
|
2023-01-11 10:33:48 +00:00
|
|
|
+ "lib/internal/file.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/fixed_queue.js",
|
|
|
|
+ "lib/internal/freelist.js",
|
|
|
|
+ "lib/internal/freeze_intrinsics.js",
|
|
|
|
+ "lib/internal/heap_utils.js",
|
|
|
|
+ "lib/internal/histogram.js",
|
|
|
|
+ "lib/internal/http.js",
|
|
|
|
+ "lib/internal/http2/compat.js",
|
|
|
|
+ "lib/internal/http2/core.js",
|
|
|
|
+ "lib/internal/http2/util.js",
|
|
|
|
+ "lib/internal/idna.js",
|
|
|
|
+ "lib/internal/inspector_async_hook.js",
|
|
|
|
+ "lib/internal/js_stream_socket.js",
|
|
|
|
+ "lib/internal/legacy/processbinding.js",
|
|
|
|
+ "lib/internal/linkedlist.js",
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/internal/main/check_syntax.js",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "lib/internal/main/embedding.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/main/eval_stdin.js",
|
|
|
|
+ "lib/internal/main/eval_string.js",
|
|
|
|
+ "lib/internal/main/inspect.js",
|
|
|
|
+ "lib/internal/main/mksnapshot.js",
|
|
|
|
+ "lib/internal/main/print_help.js",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "lib/internal/main/prof_process.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/main/repl.js",
|
|
|
|
+ "lib/internal/main/run_main_module.js",
|
2022-08-29 13:55:36 +00:00
|
|
|
+ "lib/internal/main/test_runner.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/main/watch_mode.js",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "lib/internal/main/worker_thread.js",
|
2023-01-11 10:33:48 +00:00
|
|
|
+ "lib/internal/mime.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/modules/cjs/loader.js",
|
2022-03-23 22:59:54 +00:00
|
|
|
+ "lib/internal/modules/esm/assert.js",
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/internal/modules/esm/create_dynamic_module.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/modules/esm/fetch_module.js",
|
|
|
|
+ "lib/internal/modules/esm/formats.js",
|
|
|
|
+ "lib/internal/modules/esm/get_format.js",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "lib/internal/modules/esm/hooks.js",
|
2022-03-23 22:59:54 +00:00
|
|
|
+ "lib/internal/modules/esm/initialize_import_meta.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/modules/esm/load.js",
|
|
|
|
+ "lib/internal/modules/esm/loader.js",
|
|
|
|
+ "lib/internal/modules/esm/module_job.js",
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/internal/modules/esm/module_map.js",
|
2022-11-10 21:31:20 +00:00
|
|
|
+ "lib/internal/modules/esm/package_config.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/modules/esm/resolve.js",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "lib/internal/modules/esm/shared_constants.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/modules/esm/translators.js",
|
2023-04-18 20:23:11 +00:00
|
|
|
+ "lib/internal/modules/esm/utils.js",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "lib/internal/modules/esm/worker.js",
|
|
|
|
+ "lib/internal/modules/helpers.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/modules/package_json_reader.js",
|
|
|
|
+ "lib/internal/modules/run_main.js",
|
2024-01-18 21:16:45 +00:00
|
|
|
+ "lib/internal/navigator.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/net.js",
|
|
|
|
+ "lib/internal/options.js",
|
|
|
|
+ "lib/internal/per_context/domexception.js",
|
|
|
|
+ "lib/internal/per_context/messageport.js",
|
|
|
|
+ "lib/internal/per_context/primordials.js",
|
|
|
|
+ "lib/internal/perf/event_loop_delay.js",
|
|
|
|
+ "lib/internal/perf/event_loop_utilization.js",
|
2021-06-17 06:50:56 +00:00
|
|
|
+ "lib/internal/perf/nodetiming.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/perf/observe.js",
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/internal/perf/performance.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/perf/performance_entry.js",
|
|
|
|
+ "lib/internal/perf/resource_timing.js",
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/internal/perf/timerify.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/perf/usertiming.js",
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/internal/perf/utils.js",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "lib/internal/policy/manifest.js",
|
|
|
|
+ "lib/internal/policy/sri.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/priority_queue.js",
|
|
|
|
+ "lib/internal/process/execution.js",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "lib/internal/process/per_thread.js",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "lib/internal/process/permission.js",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "lib/internal/process/policy.js",
|
2022-11-10 21:31:20 +00:00
|
|
|
+ "lib/internal/process/pre_execution.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/process/promises.js",
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/internal/process/report.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/process/signal.js",
|
|
|
|
+ "lib/internal/process/task_queues.js",
|
|
|
|
+ "lib/internal/process/warning.js",
|
2021-07-15 15:25:00 +00:00
|
|
|
+ "lib/internal/process/worker_thread_only.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/promise_hooks.js",
|
|
|
|
+ "lib/internal/querystring.js",
|
|
|
|
+ "lib/internal/readline/callbacks.js",
|
|
|
|
+ "lib/internal/readline/emitKeypressEvents.js",
|
|
|
|
+ "lib/internal/readline/interface.js",
|
|
|
|
+ "lib/internal/readline/promises.js",
|
|
|
|
+ "lib/internal/readline/utils.js",
|
|
|
|
+ "lib/internal/repl.js",
|
|
|
|
+ "lib/internal/repl/await.js",
|
|
|
|
+ "lib/internal/repl/history.js",
|
|
|
|
+ "lib/internal/repl/utils.js",
|
|
|
|
+ "lib/internal/socket_list.js",
|
|
|
|
+ "lib/internal/socketaddress.js",
|
|
|
|
+ "lib/internal/source_map/prepare_stack_trace.js",
|
|
|
|
+ "lib/internal/source_map/source_map.js",
|
|
|
|
+ "lib/internal/source_map/source_map_cache.js",
|
|
|
|
+ "lib/internal/stream_base_commons.js",
|
|
|
|
+ "lib/internal/streams/add-abort-signal.js",
|
|
|
|
+ "lib/internal/streams/compose.js",
|
|
|
|
+ "lib/internal/streams/destroy.js",
|
|
|
|
+ "lib/internal/streams/duplex.js",
|
|
|
|
+ "lib/internal/streams/duplexify.js",
|
|
|
|
+ "lib/internal/streams/end-of-stream.js",
|
|
|
|
+ "lib/internal/streams/from.js",
|
|
|
|
+ "lib/internal/streams/lazy_transform.js",
|
|
|
|
+ "lib/internal/streams/legacy.js",
|
|
|
|
+ "lib/internal/streams/operators.js",
|
|
|
|
+ "lib/internal/streams/passthrough.js",
|
|
|
|
+ "lib/internal/streams/pipeline.js",
|
|
|
|
+ "lib/internal/streams/readable.js",
|
|
|
|
+ "lib/internal/streams/state.js",
|
|
|
|
+ "lib/internal/streams/transform.js",
|
|
|
|
+ "lib/internal/streams/utils.js",
|
|
|
|
+ "lib/internal/streams/writable.js",
|
|
|
|
+ "lib/internal/test/binding.js",
|
|
|
|
+ "lib/internal/test/transfer.js",
|
2023-03-13 13:51:03 +00:00
|
|
|
+ "lib/internal/test_runner/coverage.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/test_runner/harness.js",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "lib/internal/test_runner/mock/mock.js",
|
|
|
|
+ "lib/internal/test_runner/mock/mock_timers.js",
|
2023-03-13 13:51:03 +00:00
|
|
|
+ "lib/internal/test_runner/reporter/dot.js",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "lib/internal/test_runner/reporter/junit.js",
|
2024-01-18 21:16:45 +00:00
|
|
|
+ "lib/internal/test_runner/reporter/lcov.js",
|
2023-03-13 13:51:03 +00:00
|
|
|
+ "lib/internal/test_runner/reporter/spec.js",
|
|
|
|
+ "lib/internal/test_runner/reporter/tap.js",
|
2023-08-08 22:52:51 +00:00
|
|
|
+ "lib/internal/test_runner/reporter/v8-serializer.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/test_runner/runner.js",
|
|
|
|
+ "lib/internal/test_runner/test.js",
|
2023-03-13 13:51:03 +00:00
|
|
|
+ "lib/internal/test_runner/tests_stream.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/test_runner/utils.js",
|
|
|
|
+ "lib/internal/timers.js",
|
|
|
|
+ "lib/internal/tls/secure-context.js",
|
|
|
|
+ "lib/internal/tls/secure-pair.js",
|
|
|
|
+ "lib/internal/trace_events_async_hooks.js",
|
|
|
|
+ "lib/internal/tty.js",
|
|
|
|
+ "lib/internal/url.js",
|
|
|
|
+ "lib/internal/util.js",
|
|
|
|
+ "lib/internal/util/colors.js",
|
|
|
|
+ "lib/internal/util/comparisons.js",
|
|
|
|
+ "lib/internal/util/debuglog.js",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "lib/internal/util/embedding.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/util/inspect.js",
|
|
|
|
+ "lib/internal/util/inspector.js",
|
|
|
|
+ "lib/internal/util/iterable_weak_map.js",
|
|
|
|
+ "lib/internal/util/parse_args/parse_args.js",
|
|
|
|
+ "lib/internal/util/parse_args/utils.js",
|
|
|
|
+ "lib/internal/util/types.js",
|
|
|
|
+ "lib/internal/v8/startup_snapshot.js",
|
|
|
|
+ "lib/internal/v8_prof_polyfill.js",
|
|
|
|
+ "lib/internal/v8_prof_processor.js",
|
|
|
|
+ "lib/internal/validators.js",
|
2023-01-11 10:33:48 +00:00
|
|
|
+ "lib/internal/vm.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/vm/module.js",
|
|
|
|
+ "lib/internal/wasm_web_api.js",
|
|
|
|
+ "lib/internal/watch_mode/files_watcher.js",
|
|
|
|
+ "lib/internal/watchdog.js",
|
2023-08-08 22:52:51 +00:00
|
|
|
+ "lib/internal/webidl.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/internal/webstreams/adapters.js",
|
|
|
|
+ "lib/internal/webstreams/compression.js",
|
|
|
|
+ "lib/internal/webstreams/encoding.js",
|
|
|
|
+ "lib/internal/webstreams/queuingstrategies.js",
|
|
|
|
+ "lib/internal/webstreams/readablestream.js",
|
|
|
|
+ "lib/internal/webstreams/transfer.js",
|
|
|
|
+ "lib/internal/webstreams/transformstream.js",
|
|
|
|
+ "lib/internal/webstreams/util.js",
|
|
|
|
+ "lib/internal/webstreams/writablestream.js",
|
|
|
|
+ "lib/internal/worker.js",
|
|
|
|
+ "lib/internal/worker/io.js",
|
|
|
|
+ "lib/internal/worker/js_transferable.js",
|
|
|
|
+ "lib/module.js",
|
|
|
|
+ "lib/net.js",
|
|
|
|
+ "lib/os.js",
|
|
|
|
+ "lib/path.js",
|
|
|
|
+ "lib/path/posix.js",
|
|
|
|
+ "lib/path/win32.js",
|
|
|
|
+ "lib/perf_hooks.js",
|
|
|
|
+ "lib/process.js",
|
|
|
|
+ "lib/punycode.js",
|
|
|
|
+ "lib/querystring.js",
|
|
|
|
+ "lib/readline.js",
|
|
|
|
+ "lib/readline/promises.js",
|
|
|
|
+ "lib/repl.js",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "lib/sea.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/stream.js",
|
|
|
|
+ "lib/stream/consumers.js",
|
|
|
|
+ "lib/stream/promises.js",
|
|
|
|
+ "lib/stream/web.js",
|
|
|
|
+ "lib/string_decoder.js",
|
|
|
|
+ "lib/sys.js",
|
|
|
|
+ "lib/test.js",
|
2023-08-08 22:52:51 +00:00
|
|
|
+ "lib/test/reporters.js",
|
2022-11-21 15:55:01 +00:00
|
|
|
+ "lib/timers.js",
|
|
|
|
+ "lib/timers/promises.js",
|
|
|
|
+ "lib/tls.js",
|
|
|
|
+ "lib/trace_events.js",
|
|
|
|
+ "lib/tty.js",
|
|
|
|
+ "lib/url.js",
|
|
|
|
+ "lib/util.js",
|
|
|
|
+ "lib/util/types.js",
|
|
|
|
+ "lib/v8.js",
|
|
|
|
+ "lib/vm.js",
|
|
|
|
+ "lib/wasi.js",
|
|
|
|
+ "lib/worker_threads.js",
|
|
|
|
+ "lib/zlib.js",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "deps/v8/tools/splaytree.mjs",
|
|
|
|
+ "deps/v8/tools/codemap.mjs",
|
|
|
|
+ "deps/v8/tools/consarray.mjs",
|
|
|
|
+ "deps/v8/tools/csvparser.mjs",
|
|
|
|
+ "deps/v8/tools/profile.mjs",
|
|
|
|
+ "deps/v8/tools/profile_view.mjs",
|
|
|
|
+ "deps/v8/tools/logreader.mjs",
|
|
|
|
+ "deps/v8/tools/arguments.mjs",
|
|
|
|
+ "deps/v8/tools/tickprocessor.mjs",
|
|
|
|
+ "deps/v8/tools/sourcemap.mjs",
|
|
|
|
+ "deps/v8/tools/tickprocessor-driver.mjs",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "deps/acorn/acorn/dist/acorn.js",
|
2019-07-16 21:38:17 +00:00
|
|
|
+ "deps/acorn/acorn-walk/dist/walk.js",
|
2023-08-08 22:52:51 +00:00
|
|
|
+ "deps/minimatch/index.js",
|
2020-10-19 20:28:28 +00:00
|
|
|
+ "deps/cjs-module-lexer/lexer.js",
|
2022-05-09 22:55:49 +00:00
|
|
|
+ "deps/cjs-module-lexer/dist/lexer.js",
|
|
|
|
+ "deps/undici/undici.js"
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ],
|
|
|
|
+ "node_sources": [
|
2019-07-16 21:38:17 +00:00
|
|
|
+ "src/api/async_resource.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/api/callback.cc",
|
2021-06-17 06:50:56 +00:00
|
|
|
+ "src/api/embed_helpers.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/api/encoding.cc",
|
|
|
|
+ "src/api/environment.cc",
|
|
|
|
+ "src/api/exceptions.cc",
|
|
|
|
+ "src/api/hooks.cc",
|
|
|
|
+ "src/api/utils.cc",
|
|
|
|
+ "src/async_wrap.cc",
|
2023-01-11 10:33:48 +00:00
|
|
|
+ "src/base_object.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/cares_wrap.cc",
|
2022-11-10 21:31:20 +00:00
|
|
|
+ "src/cleanup_queue.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/connect_wrap.cc",
|
|
|
|
+ "src/connection_wrap.cc",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/dataqueue/queue.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/debug_utils.cc",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/embedded_data.cc",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/encoding_binding.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/env.cc",
|
|
|
|
+ "src/fs_event_wrap.cc",
|
|
|
|
+ "src/handle_wrap.cc",
|
|
|
|
+ "src/heap_utils.cc",
|
2020-04-30 15:20:46 +00:00
|
|
|
+ "src/histogram.cc",
|
2024-05-31 21:37:42 +00:00
|
|
|
+ "src/internal_only_v8.cc",
|
2019-07-16 17:23:04 +00: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",
|
|
|
|
+ "src/js_stream.cc",
|
2020-06-17 22:57:12 +00:00
|
|
|
+ "src/json_utils.cc",
|
2020-09-17 22:08:57 +00:00
|
|
|
+ "src/js_udp_wrap.cc",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/json_parser.h",
|
|
|
|
+ "src/json_parser.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/module_wrap.cc",
|
|
|
|
+ "src/node.cc",
|
|
|
|
+ "src/node_api.cc",
|
|
|
|
+ "src/node_binding.cc",
|
2021-06-17 06:50:56 +00:00
|
|
|
+ "src/node_blob.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_buffer.cc",
|
2022-11-10 21:31:20 +00:00
|
|
|
+ "src/node_builtins.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_config.cc",
|
|
|
|
+ "src/node_constants.cc",
|
|
|
|
+ "src/node_contextify.cc",
|
|
|
|
+ "src/node_credentials.cc",
|
2019-10-18 23:52:15 +00:00
|
|
|
+ "src/node_dir.cc",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/node_dotenv.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_env_var.cc",
|
|
|
|
+ "src/node_errors.cc",
|
2021-06-17 06:50:56 +00:00
|
|
|
+ "src/node_external_reference.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_file.cc",
|
2020-09-17 22:08:57 +00:00
|
|
|
+ "src/node_http_parser.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_http2.cc",
|
|
|
|
+ "src/node_i18n.cc",
|
2019-07-16 21:38:17 +00:00
|
|
|
+ "src/node_main_instance.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_messaging.cc",
|
|
|
|
+ "src/node_metadata.cc",
|
|
|
|
+ "src/node_options.cc",
|
|
|
|
+ "src/node_os.cc",
|
|
|
|
+ "src/node_perf.cc",
|
|
|
|
+ "src/node_platform.cc",
|
|
|
|
+ "src/node_postmortem_metadata.cc",
|
|
|
|
+ "src/node_process_events.cc",
|
|
|
|
+ "src/node_process_methods.cc",
|
|
|
|
+ "src/node_process_object.cc",
|
2023-01-11 10:33:48 +00:00
|
|
|
+ "src/node_realm.cc",
|
2020-06-17 22:57:12 +00:00
|
|
|
+ "src/node_report.cc",
|
|
|
|
+ "src/node_report_module.cc",
|
|
|
|
+ "src/node_report_utils.cc",
|
2023-04-18 20:23:11 +00:00
|
|
|
+ "src/node_sea.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_serdes.cc",
|
2023-01-11 10:33:48 +00:00
|
|
|
+ "src/node_shadow_realm.cc",
|
2021-06-17 06:50:56 +00:00
|
|
|
+ "src/node_snapshotable.cc",
|
2020-06-17 22:57:12 +00:00
|
|
|
+ "src/node_sockaddr.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_stat_watcher.cc",
|
|
|
|
+ "src/node_symbols.cc",
|
|
|
|
+ "src/node_task_queue.cc",
|
|
|
|
+ "src/node_trace_events.cc",
|
|
|
|
+ "src/node_types.cc",
|
|
|
|
+ "src/node_url.cc",
|
|
|
|
+ "src/node_util.cc",
|
|
|
|
+ "src/node_v8.cc",
|
2020-02-24 21:02:04 +00:00
|
|
|
+ "src/node_wasi.cc",
|
2022-11-10 21:31:20 +00:00
|
|
|
+ "src/node_wasm_web_api.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_watchdog.cc",
|
|
|
|
+ "src/node_worker.cc",
|
|
|
|
+ "src/node_zlib.cc",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/path.cc",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/permission/child_process_permission.cc",
|
|
|
|
+ "src/permission/fs_permission.cc",
|
|
|
|
+ "src/permission/inspector_permission.cc",
|
|
|
|
+ "src/permission/permission.cc",
|
|
|
|
+ "src/permission/worker_permission.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/pipe_wrap.cc",
|
|
|
|
+ "src/process_wrap.cc",
|
|
|
|
+ "src/signal_wrap.cc",
|
|
|
|
+ "src/spawn_sync.cc",
|
|
|
|
+ "src/stream_base.cc",
|
|
|
|
+ "src/stream_pipe.cc",
|
|
|
|
+ "src/stream_wrap.cc",
|
|
|
|
+ "src/string_bytes.cc",
|
|
|
|
+ "src/string_decoder.cc",
|
|
|
|
+ "src/tcp_wrap.cc",
|
|
|
|
+ "src/timers.cc",
|
2021-05-19 13:48:46 +00:00
|
|
|
+ "src/timer_wrap.cc",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/tracing/agent.cc",
|
|
|
|
+ "src/tracing/node_trace_buffer.cc",
|
|
|
|
+ "src/tracing/node_trace_writer.cc",
|
|
|
|
+ "src/tracing/trace_event.cc",
|
|
|
|
+ "src/tracing/traced_value.cc",
|
|
|
|
+ "src/tty_wrap.cc",
|
|
|
|
+ "src/udp_wrap.cc",
|
|
|
|
+ "src/util.cc",
|
|
|
|
+ "src/uv.cc",
|
|
|
|
+ "src/aliased_buffer.h",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/aliased_buffer-inl.h",
|
2020-09-17 22:08:57 +00:00
|
|
|
+ "src/aliased_struct.h",
|
|
|
|
+ "src/aliased_struct-inl.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/async_wrap.h",
|
|
|
|
+ "src/async_wrap-inl.h",
|
|
|
|
+ "src/base_object.h",
|
|
|
|
+ "src/base_object-inl.h",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/base_object_types.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/base64.h",
|
2020-12-16 21:38:45 +00:00
|
|
|
+ "src/base64-inl.h",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/blob_serializer_deserializer.h",
|
|
|
|
+ "src/blob_serializer_deserializer-inl.h",
|
2020-06-22 17:35:10 +00:00
|
|
|
+ "src/callback_queue.h",
|
|
|
|
+ "src/callback_queue-inl.h",
|
2022-11-10 21:31:20 +00:00
|
|
|
+ "src/cleanup_queue.h",
|
|
|
|
+ "src/cleanup_queue-inl.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/connect_wrap.h",
|
|
|
|
+ "src/connection_wrap.h",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/dataqueue/queue.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/debug_utils.h",
|
2020-04-14 16:59:03 +00:00
|
|
|
+ "src/debug_utils-inl.h",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/embeded_data.h",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/encoding_binding.h",
|
2023-01-11 10:33:48 +00:00
|
|
|
+ "src/env_properties.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/env.h",
|
|
|
|
+ "src/env-inl.h",
|
|
|
|
+ "src/handle_wrap.h",
|
|
|
|
+ "src/histogram.h",
|
|
|
|
+ "src/histogram-inl.h",
|
|
|
|
+ "src/js_stream.h",
|
2020-06-17 22:57:12 +00:00
|
|
|
+ "src/json_utils.h",
|
|
|
|
+ "src/large_pages/node_large_page.cc",
|
|
|
|
+ "src/large_pages/node_large_page.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/memory_tracker.h",
|
|
|
|
+ "src/memory_tracker-inl.h",
|
|
|
|
+ "src/module_wrap.h",
|
|
|
|
+ "src/node.h",
|
|
|
|
+ "src/node_api.h",
|
|
|
|
+ "src/node_api_types.h",
|
|
|
|
+ "src/node_binding.h",
|
2021-06-17 06:50:56 +00:00
|
|
|
+ "src/node_blob.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_buffer.h",
|
2022-11-10 21:31:20 +00:00
|
|
|
+ "src/node_builtins.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_constants.h",
|
|
|
|
+ "src/node_context_data.h",
|
|
|
|
+ "src/node_contextify.h",
|
2019-10-18 23:52:15 +00:00
|
|
|
+ "src/node_dir.h",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/node_dotenv.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_errors.h",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/node_exit_code.h",
|
2021-06-17 06:50:56 +00:00
|
|
|
+ "src/node_external_reference.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_file.h",
|
2020-02-24 21:02:04 +00:00
|
|
|
+ "src/node_file-inl.h",
|
2020-09-17 22:08:57 +00:00
|
|
|
+ "src/node_http_common.h",
|
|
|
|
+ "src/node_http_common-inl.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_http2.h",
|
|
|
|
+ "src/node_http2_state.h",
|
|
|
|
+ "src/node_i18n.h",
|
|
|
|
+ "src/node_internals.h",
|
2019-07-16 21:38:17 +00:00
|
|
|
+ "src/node_main_instance.h",
|
2020-02-24 21:02:04 +00:00
|
|
|
+ "src/node_mem.h",
|
|
|
|
+ "src/node_mem-inl.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_messaging.h",
|
|
|
|
+ "src/node_metadata.h",
|
|
|
|
+ "src/node_mutex.h",
|
|
|
|
+ "src/node_object_wrap.h",
|
|
|
|
+ "src/node_options.h",
|
|
|
|
+ "src/node_options-inl.h",
|
|
|
|
+ "src/node_perf.h",
|
|
|
|
+ "src/node_perf_common.h",
|
|
|
|
+ "src/node_platform.h",
|
|
|
|
+ "src/node_process.h",
|
2021-06-28 16:05:38 +00:00
|
|
|
+ "src/node_process-inl.h",
|
2023-01-11 10:33:48 +00:00
|
|
|
+ "src/node_realm.h",
|
|
|
|
+ "src/node_realm-inl.h",
|
2020-06-17 22:57:12 +00:00
|
|
|
+ "src/node_report.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_revert.h",
|
|
|
|
+ "src/node_root_certs.h",
|
2023-04-18 20:23:11 +00:00
|
|
|
+ "src/node_sea.h",
|
2023-01-11 10:33:48 +00:00
|
|
|
+ "src/node_shadow_realm.h",
|
2021-06-17 06:50:56 +00:00
|
|
|
+ "src/node_snapshotable.h",
|
2022-08-29 13:55:36 +00:00
|
|
|
+ "src/node_snapshot_builder.h",
|
2020-06-17 22:57:12 +00:00
|
|
|
+ "src/node_sockaddr.h",
|
|
|
|
+ "src/node_sockaddr-inl.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_stat_watcher.h",
|
|
|
|
+ "src/node_union_bytes.h",
|
|
|
|
+ "src/node_url.h",
|
|
|
|
+ "src/node_version.h",
|
2021-05-19 13:48:46 +00:00
|
|
|
+ "src/node_v8.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_v8_platform-inl.h",
|
2020-02-24 21:02:04 +00:00
|
|
|
+ "src/node_wasi.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/node_watchdog.h",
|
|
|
|
+ "src/node_worker.h",
|
2024-04-17 16:39:13 +00:00
|
|
|
+ "src/path.h",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/permission/child_process_permission.h",
|
|
|
|
+ "src/permission/fs_permission.h",
|
|
|
|
+ "src/permission/inspector_permission.h",
|
|
|
|
+ "src/permission/permission.h",
|
|
|
|
+ "src/permission/worker_permission.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/pipe_wrap.h",
|
|
|
|
+ "src/req_wrap.h",
|
|
|
|
+ "src/req_wrap-inl.h",
|
|
|
|
+ "src/spawn_sync.h",
|
|
|
|
+ "src/stream_base.h",
|
|
|
|
+ "src/stream_base-inl.h",
|
|
|
|
+ "src/stream_pipe.h",
|
|
|
|
+ "src/stream_wrap.h",
|
|
|
|
+ "src/string_bytes.h",
|
|
|
|
+ "src/string_decoder.h",
|
|
|
|
+ "src/string_decoder-inl.h",
|
|
|
|
+ "src/string_search.h",
|
|
|
|
+ "src/tcp_wrap.h",
|
2023-11-30 14:51:35 +00:00
|
|
|
+ "src/timers.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/tracing/agent.h",
|
|
|
|
+ "src/tracing/node_trace_buffer.h",
|
|
|
|
+ "src/tracing/node_trace_writer.h",
|
|
|
|
+ "src/tracing/trace_event.h",
|
|
|
|
+ "src/tracing/trace_event_common.h",
|
|
|
|
+ "src/tracing/traced_value.h",
|
2021-05-19 13:48:46 +00:00
|
|
|
+ "src/timer_wrap.h",
|
2022-03-23 22:59:54 +00:00
|
|
|
+ "src/timer_wrap-inl.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "src/tty_wrap.h",
|
|
|
|
+ "src/udp_wrap.h",
|
|
|
|
+ "src/util.h",
|
|
|
|
+ "src/util-inl.h",
|
2023-04-18 20:23:11 +00:00
|
|
|
+ "//v8/include/v8.h",
|
|
|
|
+ "deps/postject/postject-api.h"
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
|
|
|
+}
|
|
|
|
diff --git a/src/inspector/BUILD.gn b/src/inspector/BUILD.gn
|
2024-04-17 16:39:13 +00:00
|
|
|
index 909fd14345fcd988c381e640280f4b33f2e0c351..800431e6659f95f0495cb90b8fa2cccbc9f34661 100644
|
2024-01-18 21:16:45 +00:00
|
|
|
--- a/src/inspector/BUILD.gn
|
2019-07-16 17:23:04 +00:00
|
|
|
+++ b/src/inspector/BUILD.gn
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -1,14 +1,202 @@
|
2024-01-18 21:16:45 +00:00
|
|
|
-##############################################################################
|
|
|
|
-# #
|
|
|
|
-# DO NOT EDIT THIS FILE! #
|
|
|
|
-# #
|
|
|
|
-##############################################################################
|
2019-07-16 17:23:04 +00:00
|
|
|
+import("//v8/gni/v8.gni")
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-# This file is used by GN for building, which is NOT the build system used for
|
|
|
|
-# building official binaries.
|
|
|
|
-# Please modify the gyp files if you are making changes to build system.
|
2019-07-16 17:23:04 +00:00
|
|
|
+inspector_protocol_dir = "../../tools/inspector_protocol"
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-import("unofficial.gni")
|
2019-07-16 17:23:04 +00:00
|
|
|
+_protocol_generated = [
|
|
|
|
+ "protocol/Forward.h",
|
|
|
|
+ "protocol/Protocol.cpp",
|
|
|
|
+ "protocol/Protocol.h",
|
|
|
|
+ "protocol/NodeWorker.cpp",
|
|
|
|
+ "protocol/NodeWorker.h",
|
|
|
|
+ "protocol/NodeTracing.cpp",
|
|
|
|
+ "protocol/NodeTracing.h",
|
2019-07-17 21:22:27 +00:00
|
|
|
+ "protocol/NodeRuntime.cpp",
|
|
|
|
+ "protocol/NodeRuntime.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+]
|
2024-01-18 21:16:45 +00:00
|
|
|
|
|
|
|
-inspector_gn_build("inspector") {
|
2019-07-16 17:23:04 +00:00
|
|
|
+# These are from node_protocol_config.json
|
|
|
|
+# These convoluted path hacks are to work around the fact that node.js is very
|
|
|
|
+# confused about what paths are in its includes, without changing node at all.
|
|
|
|
+# Hopefully, keying everything in this file off the paths that are in
|
|
|
|
+# node_protocol_config.json will mean that the paths stay in sync.
|
|
|
|
+inspector_protocol_package = "src/node/inspector/protocol"
|
|
|
|
+inspector_protocol_output = "node/inspector/protocol"
|
|
|
|
+
|
|
|
|
+config("inspector_config") {
|
|
|
|
+ include_dirs = [
|
|
|
|
+ "$target_gen_dir",
|
|
|
|
+ "$target_gen_dir/src",
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ configs = [ "../..:node_features" ]
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+source_set("inspector") {
|
|
|
|
+ sources = [
|
|
|
|
+ "main_thread_interface.cc",
|
|
|
|
+ "main_thread_interface.h",
|
|
|
|
+ "node_string.cc",
|
|
|
|
+ "node_string.h",
|
2019-07-17 21:22:27 +00:00
|
|
|
+ "runtime_agent.cc",
|
|
|
|
+ "runtime_agent.h",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "tracing_agent.cc",
|
|
|
|
+ "tracing_agent.h",
|
|
|
|
+ "worker_agent.cc",
|
|
|
|
+ "worker_agent.h",
|
|
|
|
+ "worker_inspector.cc",
|
|
|
|
+ "worker_inspector.h",
|
|
|
|
+ ]
|
|
|
|
+ sources += rebase_path(_protocol_generated,
|
|
|
|
+ ".",
|
|
|
|
+ "$target_gen_dir/$inspector_protocol_package/..")
|
|
|
|
+ include_dirs = [
|
|
|
|
+ "//v8/include",
|
|
|
|
+ "..",
|
|
|
|
+ ]
|
|
|
|
+ deps = [
|
|
|
|
+ ":protocol_generated_sources",
|
|
|
|
+ ":v8_inspector_compress_protocol_json",
|
|
|
|
+ "../../deps/uv",
|
2023-04-18 20:23:11 +00:00
|
|
|
+ "../../deps/simdutf",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "//third_party/icu:icuuc",
|
|
|
|
+ ]
|
2024-01-18 21:16:45 +00:00
|
|
|
+ configs += [
|
|
|
|
+ "../..:node_internal_config",
|
|
|
|
+ "../..:node_lib_config",
|
|
|
|
+ ]
|
2019-07-16 17:23:04 +00:00
|
|
|
+ public_configs = [ ":inspector_config" ]
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+# This based on the template from //v8/../inspector_protocol.gni
|
|
|
|
+action("protocol_generated_sources") {
|
|
|
|
+ # This is to ensure that the output directory exists--the code generator
|
|
|
|
+ # doesn't create it.
|
|
|
|
+ write_file("$target_gen_dir/$inspector_protocol_package/.dummy", "")
|
|
|
|
+ script = "$inspector_protocol_dir/code_generator.py"
|
|
|
|
+
|
|
|
|
+ inputs = [
|
|
|
|
+ "$target_gen_dir/node_protocol_config.json",
|
2019-07-16 21:38:17 +00:00
|
|
|
+ "$target_gen_dir/src/node_protocol.json",
|
|
|
|
+ "$inspector_protocol_dir/lib/base_string_adapter_cc.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/base_string_adapter_h.template",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ "$inspector_protocol_dir/lib/Allocator_h.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/DispatcherBase_cpp.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/DispatcherBase_h.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/ErrorSupport_cpp.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/ErrorSupport_h.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/Forward_h.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/FrontendChannel_h.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/Maybe_h.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/Object_cpp.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/Object_h.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/Parser_cpp.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/Parser_h.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/Protocol_cpp.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/ValueConversions_h.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/Values_cpp.template",
|
|
|
|
+ "$inspector_protocol_dir/lib/Values_h.template",
|
|
|
|
+ "$inspector_protocol_dir/templates/Exported_h.template",
|
|
|
|
+ "$inspector_protocol_dir/templates/Imported_h.template",
|
|
|
|
+ "$inspector_protocol_dir/templates/TypeBuilder_cpp.template",
|
|
|
|
+ "$inspector_protocol_dir/templates/TypeBuilder_h.template",
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ deps = [
|
|
|
|
+ ":node_protocol_config",
|
|
|
|
+ ":node_protocol_json",
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ args = [
|
|
|
|
+ "--jinja_dir",
|
|
|
|
+ rebase_path("//third_party/", root_build_dir), # jinja is in chromium's third_party
|
|
|
|
+ "--output_base",
|
|
|
|
+ rebase_path("$target_gen_dir/src", root_build_dir),
|
|
|
|
+ "--config",
|
|
|
|
+ rebase_path("$target_gen_dir/node_protocol_config.json", root_build_dir),
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ outputs =
|
|
|
|
+ get_path_info(rebase_path(rebase_path(_protocol_generated,
|
|
|
|
+ ".",
|
|
|
|
+ "$inspector_protocol_output/.."),
|
|
|
|
+ ".",
|
|
|
|
+ "$target_gen_dir/src"),
|
|
|
|
+ "abspath")
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+template("generate_protocol_json") {
|
|
|
|
+ copy_target_name = target_name + "_copy"
|
|
|
|
+ copy(copy_target_name) {
|
|
|
|
+ sources = invoker.sources
|
|
|
|
+ outputs = [
|
|
|
|
+ "$target_gen_dir/{{source_file_part}}",
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ copied_pdl = get_target_outputs(":$copy_target_name")
|
|
|
|
+ action(target_name) {
|
|
|
|
+ deps = [
|
|
|
|
+ ":$copy_target_name",
|
|
|
|
+ ]
|
|
|
|
+ sources = copied_pdl
|
|
|
|
+ outputs = invoker.outputs
|
chore: bump chromium to 92.0.4475.0 (master) (#28462)
* chore: bump chromium in DEPS to 91.0.4464.0
* chore: rebuild chromium/dcheck.patch with import-patches -3
Mechanical only; no code changes
* chore: remove content_browser_main_loop.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
The function being patched (BrowserMainLoop::MainMessageLoopRun()) no
longer exists.
NB: if removing this introduces regressions the likely fix will be to
add a similar patch for ShellBrowserMainParts::WillRunMainMessageLoop()
which has similar code and was added at the same time this was removed.
* chore: rebuild chromium/put_back_deleted_colors_for_autofill.patch with import-patches -3
Mechanical only; no code changes
* chore: rebuild chromium/disable_color_correct_rendering.patch with import-patches -3
Mechanical only; no code changes
* chore: rebuild chromium/eat_allow_disabling_blink_scheduler_throttling_per_renderview.patch with patch
Mechanical only; no code changes
* chore: rebuild chromium/gpu_notify_when_dxdiag_request_fails.patch with import-patches -3
Mechanical only; no code changes
* chore: rebuild chromium/ui_gtk_public_header.patch manually
no code changes
* chore: rebuild chromium/web_contents.patch with import-patches -3
Mechanical only; no code changes
* chore: remove v8/skip_global_registration_of_shared_arraybuffer_backing_stores.patch
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/2763874
This patch has been merged upstream
* chore: export patches
* chore: update add_trustedauthclient_to_urlloaderfactory.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2757969
Sync with removal of render_frame_id_
* chore: sync chromium/put_back_deleted_colors_for_autofill.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2785841
SkColorFromColorId() no longer takes theme, scheme args
* chore: sync chromium/put_back_deleted_colors_for_autofill.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2772143
Change new calls to GetDarkSchemeColor to fit our patched call signature
* chore: update add_trustedauthclient_to_urlloaderfactory.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2757969
Sync with removal of render_frame_id_ in our mojom
* chore: update chromium/frame_host_manager.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2740008
UrlInfo ctor now takes UrlInfo::OriginIsolationRequest instead of a bool
* chore: update chromium/revert_remove_contentrendererclient_shouldfork.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2755314
Upstream has removed `history_list_length_` which we were comparing to 0
to calculate our `is_initial_navigation` bool when calling ShouldFork().
ShouldFork() is ours and none of the code paths actually use that param,
so this commit removes it altogether.
* chore: update permissions_to_register
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2789074
Replace all uses of APIPermission::ID enum with Mojo type
* refactor: update return type of PreMainMessageLoopRun()
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
Used to return void; now returns an int errorcode.
Note: 2725153 also has some nice doc updates about Browser's "stages"
* refactor: sync ElectronBrowserMainParts to MainParts changes
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
RunMainMessageLoopParts has been replaced with WillRunMainMessageLoop
so `BrowserMainLoop::result_code_` is no longer available to us for our
exit_code_ pointer.
This variable held a dual role: (1) of course, hold the exit code, but
also (2) was a nullptr before the message loop was ready, indicating to
anyone calling SetExitCode() that we were still in startup and could
just exit() without any extra steps. exit_code_ still fulfills these two
roles but is now a base::Optional.
* chore: update ElectronBrowserMainParts::PreDefaultMainMessageLoopRun
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
BrowserMainParts::BrowsePreDefaultMainMesssageLoopRun() has been
removed; move that work to the new WillRunMainMessageLoop().
* refactor: stop using CallbackList; it has been removed.
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2785973
* refactor: update use of threadpools.
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2773408
The upstream code is still in flux (e.g. reverts and re-lands) but the
tl;dr for this commit is (1) include thread_pool.h if you're using it
and (2) don't instantiate pools directly.
* refactor: remove routing_id from CreateLoaderAndStart
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2762858
NB: One logic branch in ProxyingURLLoaderFactory::CreateLoaderAndStart
calls std::make_unique<InProgressRequest>, which needs a routing_id.
This PR uses the member field `routing_id_` since there's no longer one
being passed into CreateLoaderAndStart.
* refactor: sync to upstream ParittionOptions churn
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771318
PartitionOptions' enums have changed.
* refactor: update Manifest::Location usage
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771320
tldr: s/Manifest::FOO/ManifestLocation::kFoo/
* chore: bump chromium in DEPS to 91.0.4465.0
* update patches
* refactor: update extensions::Manifest to upstream
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771320
- extensions::Manifest::COMPONENT
+ extensions::mojom::ManifestLocation::kExternalComponent
* refactor: sync with upstream UrlInfo ctor changes
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2740008
UrlInfo ctor now takes UrlInfo::OriginIsolationRequest instead of a bool
* chore: update invocation of convert_protocol_to_json.py
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2792623
python3 is being used in parts of the upstream build, but the copy of
convert_protocol_to_json.py invoked in v8/third_party/inspector_protocol
is not python3-friendly. Node has a py2+3-friendly version of it in its
tools directory, so call it instead.
* chore: use extensions::mojom::APIPermissionID
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2791122
tldr:
- extensions::APIPermission::kFoo
+ extensions::mojom::APIPermissionID::kFoo
* chore: Remove support for TLS1.0/1.1 in SSLVersionMin policy
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2765737
Remove TLS v1.0 & 1.1 from our SSLProtocolVersionFromString() function.
This is the same change made upstream at
https://chromium-review.googlesource.com/c/chromium/src/+/2765737/8/chrome/browser/ssl/ssl_config_service_manager_pref.cc
* fixup! chore: update ElectronBrowserMainParts::PreDefaultMainMessageLoopRun
* chore: Use IDType for permission change subscriptions.
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2791431
tldr: {Subscribe,Unsubscribe}PermissionStatusChange's tag type used to
be an int; now it's the new SubscriptionId type (which is an IdType64).
* chore: sync PowerMonitor code to upstream refactor
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2752635
tldr: PowerMonitor has been split into PowerStateObserver,
PowerSuspendObserver, and PowerThermalObserver to reduce number of tasks
posted to consumers who only need notifications for one of those things
instead of all of them.
* chore: use PartitionOptions's new Cookies field
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771318
* Revert "refactor: remove routing_id from CreateLoaderAndStart"
This reverts commit 8c9773b87a3c84f9073a47089eb2b6889d745245.
8c9773b was only a partial fix; reverting to start & try again.
* update patches
* chore: bump chromium in DEPS to 91.0.4466.0
* chore: update chromium/accelerator.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2795472
tldr: sync patch with upstream renamed variable & macro names.
* chore: update chromium/gtk_visibility.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2796200
tldr: no code changes; just updating the diff to apply cleanly.
note: ooh upstream Wayland hacking!
* chore: update chromium/picture-in-picture.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2710023
tldr: no code changes; just updating the diff to apply cleanly.
* chore: update chromium/worker_feat_add_hook_to_notify_script_ready.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2775573
tldr: no code changes; just updating the diff to apply cleanly.
* chore: export_all_patches
* chore: update chromium/feat_add_set_theme_source_to_allow_apps_to.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2796511
tldr: NotifyObservers has been renamed to NotifyOnNativeThemeUpdated,
so update the invocation in our patch.
* chore: update ElectronBrowserClient w/upstream API
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2797454
tldr: GetDevToolsManagerDelegate() was returning an owned raw pointer.
Replaced it with CreateDevToolsManagerDelegate() which uses unique_ptr<>.
* chore: handle new content::PermissionType::FILE_HANDLING in toV8()
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2762201
`file-handling` string confirmed in https://chromium-review.googlesource.com/c/chromium/src/+/2762201/18/chrome/browser/ui/webui/settings/site_settings_helper.cc
* refactor: remove routing_id from CreateLoaderAndStart pt 1
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2762858
Part 1: the easiest ones
* 2796724: Support Python3
https://chromium-review.googlesource.com/c/infra/luci/python-adb/+/2796724
* chore: bump chromium in DEPS to 91.0.4468.0
* 2668974: WebShare: Implement SharingServicePicker
https://chromium-review.googlesource.com/c/chromium/src/+/2668974
* 2802766: Apply modernize-make-unique to media/
https://chromium-review.googlesource.com/c/chromium/src/+/2802766
* 2802823: Apply modernize-make-unique to gpu/
https://chromium-review.googlesource.com/c/chromium/src/+/2802823
* 2803041: Apply modernize-make-unique to remaining files
https://chromium-review.googlesource.com/c/chromium/src/+/2803041
* 2798873: Convert GtkKeyBindingsHandler build checks to runtime checks
https://chromium-review.googlesource.com/c/chromium/src/+/2798873
* 2733595: [ch-r] Parse ACCEPT_CH H2/3 frame and restart with new headers if needed
https://chromium-review.googlesource.com/c/chromium/src/+/2733595
* chore: update patch indices
* 2795107: Remove unused PermissionRequest IDs.
https://chromium-review.googlesource.com/c/chromium/src/+/2795107
* chore: bump chromium in DEPS to 91.0.4469.0
* chore: fixup patch indices
* chore: bump chromium in DEPS to 91.0.4469.5
* PiP 1.5: Add microphone, camera, and hang up buttons to the PiP window
https://chromium-review.googlesource.com/c/chromium/src/+/2710023
* fixup! refactor: remove routing_id from CreateLoaderAndStart
* refactor: use URLLoaderNetworkServiceObserver for auth requests from SimpleURLLoader
* fixup! chore: fixup patch indices
* 2724817: Expand scope of wasm-eval to all URLs
https://chromium-review.googlesource.com/c/chromium/src/+/2724817
* Fixup patch after rebase
* chore: bump chromium in DEPS to 91.0.4472.0
* 2797341: [ozone/x11] Enabled the global shortcut listener.
https://chromium-review.googlesource.com/c/chromium/src/+/2797341
* 2805553: Reland Add GTK ColorMixers to ColorPipeline P1
https://chromium-review.googlesource.com/c/chromium/src/+/2805553
* 2804366: PiP 1.5: Label back to tab button with origin and center it
https://chromium-review.googlesource.com/c/chromium/src/+/2804366
* 2784730: Fix crash on AX mode change in NativeViewHost without a Widget
https://chromium-review.googlesource.com/c/chromium/src/+/2784730
* chore: update patch indices
* 2810174: Add PdfAnnotationsEnabled policy.
https://chromium-review.googlesource.com/c/chromium/src/+/2810174
* 2807829: Allow capturers to indicate if they want a WakeLock or not.
https://chromium-review.googlesource.com/c/chromium/src/+/2807829
* chore: bump chromium in DEPS to 92.0.4473.0
* chore: bump chromium in DEPS to 92.0.4474.0
* chore: bump chromium in DEPS to 92.0.4475.0
* chore: update patches
* chore: updates patches
* chore: update is_media_key patch to handle new ozone impl
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2797341
* fix: ExecuteJavascript requests now need to be flagged as non-bf-aware
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2787195
* chore: icon_util_x11 is now icon_util_linux
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2791362
* build: update sysroots
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2628496
* build: fix missing symbols on linux build
* use_ozone and use_x11 are not exclusive
* new button view to build for pip
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2797341
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2804366
* chore: fix broken gtk_util color patch
* chore: remove patch conflict
* build: update linux manifests
* chore: build bttlb on all platforms for pip
* chore: add thread_pool include for views delegate win
* chore: fix lint
* chore: add node patches for V8 changes
* build: add missing base include on windows
* fix: update frame host manager patch for new state transitions
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2714464
* chore: update windows zip manifests
* chore: update mac zip manifests
* chore: fix patch linting
* refactor: implement missing URLLoaderNetworkServiceObserver methods
It is against The Mojo Rules to leave hanging callbacks. These always
have to be called.
Refs: https://github.com/electron/electron/commit/186528aab9f8e29d658f07d220bb7f627980edda
* spec: fix locale test on local linux
* fix: pass the exit code correctly in new PreMainMessageLoopRun
Refs: https://github.com/electron/electron/commit/2622e91c4493ceb032e2f80cb484885bb8f97475
* fix: ensure we early-exit when request_handler_ is not provided
Refs: https://github.com/electron/electron/commit/93077afbfb6db248a0c0cc447d7ad2c9ccfda1d5
* fix: strongly set result_code in the BrowserMainLoop
* fix: invalid usage of non-targetted PostTask
You must always either use a host threadpool or specify a target
thread. In this case we did neither after this refactor.
Refs: https://github.com/electron/electron/pull/28462/commits/4e33ee0ad35a710bd34641cb0376bdee6aea2d1f
* chore: fix gn check
* chore: remove stray .rej files in patch
* chore: add mojo error code to url loader failure
* build: ensure CI is truthy in arm test env
* fix: handle windowCaptureMacV2 being enabled when fetching media source id
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2709931
Co-authored-by: Charles Kerr <charles@charleskerr.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com>
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
Co-authored-by: Samuel Attard <sattard@slack-corp.com>
2021-04-15 17:44:35 +00:00
|
|
|
+ script = "$inspector_protocol_dir/convert_protocol_to_json.py"
|
2019-07-16 17:23:04 +00:00
|
|
|
+ args = rebase_path(sources + outputs, root_build_dir)
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+copy("node_protocol_config") {
|
|
|
|
+ sources = [
|
|
|
|
+ "node_protocol_config.json",
|
|
|
|
+ ]
|
|
|
|
+ outputs = [
|
|
|
|
+ "$target_gen_dir/{{source_file_part}}",
|
|
|
|
+ ]
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+generate_protocol_json("node_protocol_json") {
|
|
|
|
+ sources = [
|
|
|
|
+ "node_protocol.pdl",
|
|
|
|
+ ]
|
|
|
|
+ outputs = [
|
2019-07-16 21:38:17 +00:00
|
|
|
+ "$target_gen_dir/src/node_protocol.json",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+generate_protocol_json("v8_protocol_json") {
|
|
|
|
+ sources = [
|
2019-07-16 21:38:17 +00:00
|
|
|
+ "//v8/include/js_protocol.pdl",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
|
|
|
+ outputs = [
|
|
|
|
+ "$target_gen_dir/js_protocol.json",
|
|
|
|
+ ]
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+action("concatenate_protocols") {
|
|
|
|
+ deps = [
|
|
|
|
+ ":node_protocol_json",
|
|
|
|
+ ":v8_protocol_json",
|
|
|
|
+ ]
|
|
|
|
+ inputs = [
|
|
|
|
+ "$target_gen_dir/js_protocol.json",
|
2019-07-16 21:38:17 +00:00
|
|
|
+ "$target_gen_dir/src/node_protocol.json",
|
2019-07-16 17:23:04 +00:00
|
|
|
+ ]
|
|
|
|
+ outputs = [
|
|
|
|
+ "$target_gen_dir/concatenated_protocol.json",
|
|
|
|
+ ]
|
|
|
|
+ script = "//v8/third_party/inspector_protocol/concatenate_protocols.py"
|
|
|
|
+ args = rebase_path(inputs + outputs, root_build_dir)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+action("v8_inspector_compress_protocol_json") {
|
|
|
|
+ deps = [
|
|
|
|
+ ":concatenate_protocols",
|
|
|
|
+ ]
|
|
|
|
+ inputs = [
|
|
|
|
+ "$target_gen_dir/concatenated_protocol.json",
|
|
|
|
+ ]
|
|
|
|
+ outputs = [
|
|
|
|
+ "$target_gen_dir/v8_inspector_protocol_json.h",
|
|
|
|
+ ]
|
|
|
|
+ script = "../../tools/compress_json.py"
|
|
|
|
+ args = rebase_path(inputs + outputs, root_build_dir)
|
2024-01-18 21:16:45 +00:00
|
|
|
}
|
2023-11-30 14:51:35 +00:00
|
|
|
diff --git a/src/node_builtins.cc b/src/node_builtins.cc
|
2024-04-17 16:39:13 +00:00
|
|
|
index bbb63df7899d4b9bf80e13eee78453352dd5c75b..804296db12f7864f72648f5f36834a924503e4a6 100644
|
2023-11-30 14:51:35 +00:00
|
|
|
--- a/src/node_builtins.cc
|
|
|
|
+++ b/src/node_builtins.cc
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -765,6 +765,7 @@ void BuiltinLoader::RegisterExternalReferences(
|
2023-11-30 14:51:35 +00:00
|
|
|
registry->Register(GetNatives);
|
|
|
|
|
|
|
|
RegisterExternalReferencesForInternalizedBuiltinCode(registry);
|
|
|
|
+ EmbedderRegisterExternalReferencesForInternalizedBuiltinCode(registry);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace builtins
|
|
|
|
diff --git a/src/node_builtins.h b/src/node_builtins.h
|
2024-04-17 16:39:13 +00:00
|
|
|
index 75a7f3dd89e096d13ad7d70ed29d301cd56315b5..9a20a275fbe5df9f384b7b1d1d26806e7cd05384 100644
|
2023-11-30 14:51:35 +00:00
|
|
|
--- a/src/node_builtins.h
|
|
|
|
+++ b/src/node_builtins.h
|
|
|
|
@@ -74,6 +74,8 @@ using BuiltinCodeCacheMap =
|
|
|
|
// Generated by tools/js2c.py as node_javascript.cc
|
|
|
|
void RegisterExternalReferencesForInternalizedBuiltinCode(
|
|
|
|
ExternalReferenceRegistry* registry);
|
|
|
|
+void EmbedderRegisterExternalReferencesForInternalizedBuiltinCode(
|
|
|
|
+ ExternalReferenceRegistry* registry);
|
2019-07-16 21:38:17 +00:00
|
|
|
|
2023-11-30 14:51:35 +00:00
|
|
|
// Handles compilation and caching of built-in JavaScript modules and
|
|
|
|
// bootstrap scripts, whose source are bundled into the binary as static data.
|
2019-07-16 17:23:04 +00:00
|
|
|
diff --git a/tools/generate_gn_filenames_json.py b/tools/generate_gn_filenames_json.py
|
|
|
|
new file mode 100755
|
2024-02-29 09:31:13 +00:00
|
|
|
index 0000000000000000000000000000000000000000..7848ddb1841b6d4f36e9376c73564eb4ff6d7c08
|
2019-07-16 17:23:04 +00:00
|
|
|
--- /dev/null
|
|
|
|
+++ b/tools/generate_gn_filenames_json.py
|
2024-02-29 09:31:13 +00:00
|
|
|
@@ -0,0 +1,90 @@
|
2022-04-12 11:21:55 +00:00
|
|
|
+#!/usr/bin/env python3
|
2019-07-16 17:23:04 +00:00
|
|
|
+import json
|
|
|
|
+import os
|
|
|
|
+import sys
|
|
|
|
+
|
|
|
|
+import install
|
2021-08-20 17:25:50 +00:00
|
|
|
+
|
|
|
|
+from utils import SearchFiles
|
2019-07-16 17:23:04 +00:00
|
|
|
+
|
|
|
|
+def LoadPythonDictionary(path):
|
|
|
|
+ file_string = open(path).read()
|
|
|
|
+ try:
|
|
|
|
+ file_data = eval(file_string, {'__builtins__': None}, None)
|
2021-08-20 17:25:50 +00:00
|
|
|
+ except SyntaxError as e:
|
2019-07-16 17:23:04 +00:00
|
|
|
+ e.filename = path
|
|
|
|
+ raise
|
2021-08-20 17:25:50 +00:00
|
|
|
+ except Exception as e:
|
2019-07-16 17:23:04 +00:00
|
|
|
+ raise Exception("Unexpected error while reading %s: %s" % (path, str(e)))
|
|
|
|
+
|
|
|
|
+ assert isinstance(file_data, dict), "%s does not eval to a dictionary" % path
|
|
|
|
+
|
|
|
|
+ return file_data
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+FILENAMES_JSON_HEADER = '''
|
|
|
|
+// This file is automatically generated by generate_gn_filenames_json.py
|
|
|
|
+// DO NOT EDIT
|
|
|
|
+'''.lstrip()
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+if __name__ == '__main__':
|
|
|
|
+ node_root_dir = os.path.dirname(os.path.dirname(__file__))
|
|
|
|
+ node_gyp_path = os.path.join(node_root_dir, 'node.gyp')
|
|
|
|
+ out = {}
|
|
|
|
+ node_gyp = LoadPythonDictionary(node_gyp_path)
|
|
|
|
+ node_lib_target = next(
|
|
|
|
+ t for t in node_gyp['targets']
|
|
|
|
+ if t['target_name'] == '<(node_lib_target_name)')
|
2020-09-23 19:48:23 +00:00
|
|
|
+ node_source_blocklist = {
|
2019-07-16 17:23:04 +00:00
|
|
|
+ '<@(library_files)',
|
2021-07-15 15:25:00 +00:00
|
|
|
+ '<@(deps_files)',
|
2023-11-30 14:51:35 +00:00
|
|
|
+ '<@(node_sources)',
|
2019-07-16 17:23:04 +00:00
|
|
|
+ 'common.gypi',
|
|
|
|
+ '<(SHARED_INTERMEDIATE_DIR)/node_javascript.cc',
|
|
|
|
+ }
|
2020-09-23 19:48:23 +00:00
|
|
|
+
|
|
|
|
+ def filter_v8_files(files):
|
|
|
|
+ if any(f.startswith('deps/v8/') for f in files):
|
2024-02-29 09:31:13 +00:00
|
|
|
+ files = [f.replace('deps/v8/', '../../v8/', 1) if f.endswith('js') else f.replace('deps/v8/', '//v8/') for f in files]
|
2023-01-11 10:33:48 +00:00
|
|
|
+
|
|
|
|
+ if any(f == '<@(node_builtin_shareable_builtins)' for f in files):
|
|
|
|
+ files.remove('<@(node_builtin_shareable_builtins)')
|
|
|
|
+ shared_builtins = ['deps/cjs-module-lexer/lexer.js', 'deps/cjs-module-lexer/dist/lexer.js', 'deps/undici/undici.js']
|
|
|
|
+ files.extend(shared_builtins)
|
|
|
|
+
|
2020-09-23 19:48:23 +00:00
|
|
|
+ return files
|
|
|
|
+
|
2023-11-30 14:51:35 +00:00
|
|
|
+ def filter_fs_files(files):
|
|
|
|
+ return [f for f in files if f.startswith('lib/internal/fs/')] + ['lib/fs.js']
|
|
|
|
+
|
2021-08-20 17:25:50 +00:00
|
|
|
+ lib_files = SearchFiles('lib', 'js')
|
2021-07-15 15:25:00 +00:00
|
|
|
+ out['library_files'] = filter_v8_files(lib_files)
|
|
|
|
+ out['library_files'] += filter_v8_files(node_gyp['variables']['deps_files'])
|
2023-11-30 14:51:35 +00:00
|
|
|
+ out['node_sources'] = node_gyp['variables']['node_sources']
|
|
|
|
+
|
|
|
|
+ out['fs_files'] = filter_fs_files(out['library_files'])
|
|
|
|
+ # fs files are handled separately
|
|
|
|
+ out['library_files'] = [f for f in out['library_files'] if f not in out['fs_files']]
|
2020-09-23 19:48:23 +00:00
|
|
|
+
|
|
|
|
+ blocklisted_sources = [
|
2019-07-16 17:23:04 +00:00
|
|
|
+ f for f in node_lib_target['sources']
|
2020-09-23 19:48:23 +00:00
|
|
|
+ if f not in node_source_blocklist]
|
2023-11-30 14:51:35 +00:00
|
|
|
+ out['node_sources'] += filter_v8_files(blocklisted_sources)
|
2019-07-16 17:23:04 +00:00
|
|
|
+
|
|
|
|
+ out['headers'] = []
|
|
|
|
+ def add_headers(files, dest_dir):
|
|
|
|
+ if 'src/node.h' in files:
|
2019-07-16 21:38:17 +00:00
|
|
|
+ files = [f for f in files if f.endswith('.h') and f != 'src/node_version.h']
|
2019-12-13 20:13:12 +00:00
|
|
|
+ elif any(f.startswith('../../v8/') for f in files):
|
|
|
|
+ files = [f.replace('../../v8/', '//v8/', 1) for f in files]
|
2021-06-17 06:50:56 +00:00
|
|
|
+ if files:
|
|
|
|
+ hs = {'files': sorted(files), 'dest_dir': dest_dir}
|
|
|
|
+ out['headers'].append(hs)
|
2019-07-16 17:23:04 +00:00
|
|
|
+
|
|
|
|
+ install.variables = {'node_shared_libuv': 'false'}
|
|
|
|
+ install.headers(add_headers)
|
|
|
|
+ with open(os.path.join(node_root_dir, 'filenames.json'), 'w') as f:
|
|
|
|
+ f.write(FILENAMES_JSON_HEADER)
|
|
|
|
+ f.write(json.dumps(out, sort_keys=True, indent=2, separators=(',', ': ')))
|
|
|
|
+ f.write('\n')
|
2023-11-30 14:51:35 +00:00
|
|
|
diff --git a/tools/generate_original_fs.py b/tools/generate_original_fs.py
|
|
|
|
new file mode 100644
|
2024-05-13 08:25:48 +00:00
|
|
|
index 0000000000000000000000000000000000000000..9be3ac447f9a4dde23fefc26e0b922b4ba88f083
|
2023-11-30 14:51:35 +00:00
|
|
|
--- /dev/null
|
|
|
|
+++ b/tools/generate_original_fs.py
|
2024-02-05 08:51:04 +00:00
|
|
|
@@ -0,0 +1,19 @@
|
2023-11-30 14:51:35 +00:00
|
|
|
+import os
|
|
|
|
+import sys
|
|
|
|
+
|
|
|
|
+node_root_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
|
|
|
+out_dir = sys.argv[1]
|
|
|
|
+fs_files = sys.argv[2:]
|
|
|
|
+
|
|
|
|
+for fs_file in fs_files:
|
|
|
|
+ with open(os.path.join(node_root_dir, fs_file), 'r') as f:
|
|
|
|
+ contents = f.read()
|
2024-05-13 08:25:48 +00:00
|
|
|
+ original_fs_file = fs_file.replace('internal/fs/', 'internal/original-fs/').replace('lib/fs.js', 'lib/original-fs.js').replace('lib/fs/', 'lib/original-fs/')
|
2023-11-30 14:51:35 +00:00
|
|
|
+
|
|
|
|
+ with open(os.path.join(out_dir, fs_file), 'w') as original_f:
|
|
|
|
+ original_f.write(contents)
|
|
|
|
+
|
|
|
|
+ with open(os.path.join(out_dir, original_fs_file), 'w') as transformed_f:
|
2024-02-05 08:51:04 +00:00
|
|
|
+ transformed_contents = contents.replace('internal/fs/', 'internal/original-fs/').replace('require(\'fs', 'require(\'original-fs')
|
2023-11-30 14:51:35 +00:00
|
|
|
+ transformed_f.write(transformed_contents)
|
2024-02-05 08:51:04 +00:00
|
|
|
+
|
2019-12-13 20:13:12 +00:00
|
|
|
diff --git a/tools/install.py b/tools/install.py
|
2024-05-31 21:37:42 +00:00
|
|
|
index b132c7bf26c02886a7ab341a1973bf449744ba0f..171b383a4b6c2528d11dd5f89a6837fd071bcf4b 100755
|
2019-12-13 20:13:12 +00:00
|
|
|
--- a/tools/install.py
|
|
|
|
+++ b/tools/install.py
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -284,6 +284,7 @@ def headers(options, action):
|
|
|
|
'include/v8-promise.h',
|
|
|
|
'include/v8-proxy.h',
|
|
|
|
'include/v8-regexp.h',
|
|
|
|
+ "include/v8-sandbox.h",
|
|
|
|
'include/v8-script.h',
|
|
|
|
'include/v8-snapshot.h',
|
|
|
|
'include/v8-statistics.h',
|
|
|
|
@@ -390,7 +391,7 @@ def parse_options(args):
|
|
|
|
parser.add_argument('--build-dir', help='the location of built binaries',
|
|
|
|
default='out/Release')
|
|
|
|
parser.add_argument('--v8-dir', help='the location of V8',
|
|
|
|
- default='deps/v8')
|
|
|
|
+ default='../../v8')
|
|
|
|
parser.add_argument('--config-gypi-path', help='the location of config.gypi',
|
|
|
|
default='config.gypi')
|
|
|
|
parser.add_argument('--is-win', help='build for Windows target',
|
2023-11-30 14:51:35 +00:00
|
|
|
diff --git a/tools/js2c.cc b/tools/js2c.cc
|
|
|
|
old mode 100644
|
|
|
|
new mode 100755
|
2024-05-31 21:37:42 +00:00
|
|
|
index e0f3d8844718ab8a6478c40ff713c1fd6bcff95a..c73a5b666dbaf555c749d836c20a7ae19a840847
|
2023-11-30 14:51:35 +00:00
|
|
|
--- a/tools/js2c.cc
|
|
|
|
+++ b/tools/js2c.cc
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -30,6 +30,7 @@ namespace js2c {
|
2023-11-30 14:51:35 +00:00
|
|
|
int Main(int argc, char* argv[]);
|
|
|
|
|
|
|
|
static bool is_verbose = false;
|
|
|
|
+static bool only_js = false;
|
|
|
|
|
|
|
|
void Debug(const char* format, ...) {
|
|
|
|
va_list arguments;
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -196,6 +197,7 @@ const char* kTemplate = R"(
|
2023-11-30 14:51:35 +00:00
|
|
|
#include "node_builtins.h"
|
|
|
|
#include "node_external_reference.h"
|
|
|
|
#include "node_internals.h"
|
|
|
|
+#include "node_threadsafe_cow-inl.h"
|
|
|
|
|
|
|
|
namespace node {
|
|
|
|
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -211,7 +213,11 @@ const ThreadsafeCopyOnWrite<BuiltinSourceMap> global_source_map {
|
2023-11-30 14:51:35 +00:00
|
|
|
} // anonymous namespace
|
|
|
|
|
|
|
|
void BuiltinLoader::LoadJavaScriptSource() {
|
|
|
|
- source_ = global_source_map;
|
|
|
|
+ BuiltinSourceMap map = *source_.read();
|
|
|
|
+ BuiltinSourceMap new_map = *global_source_map.read();
|
|
|
|
+
|
|
|
|
+ map.merge(new_map);
|
|
|
|
+ source_ = ThreadsafeCopyOnWrite<BuiltinSourceMap>(map);
|
|
|
|
}
|
|
|
|
|
|
|
|
void RegisterExternalReferencesForInternalizedBuiltinCode(
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -228,6 +234,45 @@ UnionBytes BuiltinLoader::GetConfig() {
|
2023-11-30 14:51:35 +00:00
|
|
|
} // namespace node
|
|
|
|
)";
|
|
|
|
|
|
|
|
+const char* kEmbedderTemplate = R"(
|
|
|
|
+#include "env-inl.h"
|
|
|
|
+#include "node_builtins.h"
|
|
|
|
+#include "node_external_reference.h"
|
|
|
|
+#include "node_internals.h"
|
|
|
|
+#include "node_threadsafe_cow-inl.h"
|
|
|
|
+
|
|
|
|
+namespace node {
|
|
|
|
+
|
|
|
|
+namespace builtins {
|
|
|
|
+
|
|
|
|
+%.*s
|
|
|
|
+namespace {
|
|
|
|
+const ThreadsafeCopyOnWrite<BuiltinSourceMap> global_source_map {
|
|
|
|
+ BuiltinSourceMap {
|
|
|
|
+%.*s
|
|
|
|
+ } // BuiltinSourceMap
|
|
|
|
+
|
|
|
|
+}; // ThreadsafeCopyOnWrite
|
|
|
|
+} // anonymous namespace
|
|
|
|
+
|
|
|
|
+void BuiltinLoader::LoadEmbedderJavaScriptSource() {
|
|
|
|
+ BuiltinSourceMap map = *source_.read();
|
|
|
|
+ BuiltinSourceMap new_map = *global_source_map.read();
|
|
|
|
+
|
|
|
|
+ map.merge(new_map);
|
|
|
|
+ source_ = ThreadsafeCopyOnWrite<BuiltinSourceMap>(map);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void EmbedderRegisterExternalReferencesForInternalizedBuiltinCode(
|
|
|
|
+ ExternalReferenceRegistry* registry) {
|
|
|
|
+%.*s
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+} // namespace builtins
|
|
|
|
+
|
|
|
|
+} // namespace node
|
|
|
|
+)";
|
|
|
|
+
|
|
|
|
Fragment Format(const Fragments& definitions,
|
|
|
|
const Fragments& initializers,
|
|
|
|
const Fragments& registrations) {
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -237,13 +282,12 @@ Fragment Format(const Fragments& definitions,
|
2023-11-30 14:51:35 +00:00
|
|
|
size_t init_size = init_buf.size();
|
|
|
|
std::vector<char> reg_buf = Join(registrations, "\n");
|
|
|
|
size_t reg_size = reg_buf.size();
|
|
|
|
-
|
|
|
|
- size_t result_size =
|
|
|
|
- def_size + init_size + reg_size + strlen(kTemplate) + 100;
|
|
|
|
+ size_t result_size = def_size + init_size + reg_size +
|
|
|
|
+ strlen(only_js ? kEmbedderTemplate: kTemplate) + 300;
|
|
|
|
std::vector<char> result(result_size, 0);
|
|
|
|
int r = snprintf(result.data(),
|
|
|
|
result_size,
|
|
|
|
- kTemplate,
|
|
|
|
+ only_js ? kEmbedderTemplate: kTemplate,
|
|
|
|
static_cast<int>(def_buf.size()),
|
|
|
|
def_buf.data(),
|
|
|
|
static_cast<int>(init_buf.size()),
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -834,12 +878,15 @@ int JS2C(const FileList& js_files,
|
2023-11-30 14:51:35 +00:00
|
|
|
}
|
|
|
|
}
|
2020-02-24 21:02:04 +00:00
|
|
|
|
2023-11-30 14:51:35 +00:00
|
|
|
+ if (!only_js) {
|
|
|
|
assert(FilenameIsConfigGypi(config));
|
|
|
|
// "config.gypi" -> config_raw.
|
|
|
|
int r = AddGypi("config", config, &definitions);
|
|
|
|
if (r != 0) {
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
Fragment out = Format(definitions, initializers, registrations);
|
|
|
|
return WriteIfChanged(out, dest);
|
|
|
|
}
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -865,6 +912,8 @@ int Main(int argc, char* argv[]) {
|
2023-11-30 14:51:35 +00:00
|
|
|
std::string arg(argv[i]);
|
|
|
|
if (arg == "--verbose") {
|
|
|
|
is_verbose = true;
|
|
|
|
+ } else if (arg == "--only-js") {
|
|
|
|
+ only_js = true;
|
|
|
|
} else if (arg == "--root") {
|
|
|
|
if (i == argc - 1) {
|
|
|
|
fprintf(stderr, "--root must be followed by a path\n");
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -913,6 +962,14 @@ int Main(int argc, char* argv[]) {
|
2023-11-30 14:51:35 +00:00
|
|
|
}
|
|
|
|
}
|
2019-07-16 17:23:04 +00:00
|
|
|
|
2023-11-30 14:51:35 +00:00
|
|
|
+ if (only_js) {
|
|
|
|
+ auto js_it = file_map.find(".js");
|
|
|
|
+
|
|
|
|
+ assert(file_map.size() == 1);
|
|
|
|
+ assert(js_it != file_map.end());
|
|
|
|
+
|
|
|
|
+ return JS2C(js_it->second, FileList(), std::string(), output);
|
|
|
|
+ } else {
|
|
|
|
// Should have exactly 3 types: `.js`, `.mjs` and `.gypi`.
|
|
|
|
assert(file_map.size() == 3);
|
|
|
|
auto gypi_it = file_map.find(".gypi");
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -932,6 +989,7 @@ int Main(int argc, char* argv[]) {
|
2023-11-30 14:51:35 +00:00
|
|
|
std::sort(mjs_it->second.begin(), mjs_it->second.end());
|
|
|
|
|
|
|
|
return JS2C(js_it->second, mjs_it->second, gypi_it->second[0], output);
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
} // namespace js2c
|
|
|
|
} // namespace node
|
2024-04-17 16:39:13 +00:00
|
|
|
@@ -940,4 +998,4 @@ NODE_MAIN(int argc, node::argv_type raw_argv[]) {
|
2023-11-30 14:51:35 +00:00
|
|
|
char** argv;
|
|
|
|
node::FixupMain(argc, raw_argv, &argv);
|
|
|
|
return node::js2c::Main(argc, argv);
|
|
|
|
-}
|
|
|
|
+}
|
|
|
|
\ No newline at end of file
|