mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
build: option to use custom inspector_protocol path
PR-URL: https://github.com/nodejs/node/pull/58839 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
f8fcb1c83a
commit
ba42c72f7f
3 changed files with 6 additions and 2 deletions
3
node.gni
3
node.gni
|
@ -16,6 +16,9 @@ declare_args() {
|
|||
# The location of simdutf - use the one from node's deps by default.
|
||||
node_simdutf_path = "//third_party/simdutf"
|
||||
|
||||
# The location of inspector_protocol - use the one from node's deps by default.
|
||||
node_inspector_protocol_path = "//third_party/inspector_protocol"
|
||||
|
||||
# The NODE_MODULE_VERSION defined in node_version.h.
|
||||
node_module_version = exec_script("$node_path/tools/getmoduleversion.py", [], "value")
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ template("inspector_gn_build") {
|
|||
}
|
||||
|
||||
node_gen_dir = get_label_info("../..", "target_gen_dir")
|
||||
protocol_tool_path = "../../deps/inspector_protocol"
|
||||
protocol_tool_path = "$node_inspector_protocol_path"
|
||||
|
||||
gypi_values = exec_script(
|
||||
"../../tools/gypi_to_gn.py",
|
||||
|
|
|
@ -195,13 +195,14 @@ template("node_gn_build") {
|
|||
}
|
||||
if (node_enable_inspector) {
|
||||
deps += [
|
||||
"src/inspector:crdtp",
|
||||
"$node_inspector_protocol_path:crdtp",
|
||||
"src/inspector:node_protocol_generated_sources",
|
||||
"src/inspector:v8_inspector_compress_protocol_json",
|
||||
]
|
||||
include_dirs = [
|
||||
"$target_gen_dir/src",
|
||||
"$target_gen_dir/src/inspector",
|
||||
"$node_inspector_protocol_path",
|
||||
]
|
||||
node_inspector = exec_script(
|
||||
"./tools/gypi_to_gn.py",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue