Skip to content

Commit

Permalink
build: allow using alternate inspector_protocol path
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Feb 18, 2025
1 parent a7f648c commit 6dd605b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions node.gni
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ declare_args() {
# The location of simdutf - use the one from node's deps by default.
node_simdutf_path = "$node_path/deps/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")

Expand Down
2 changes: 1 addition & 1 deletion src/inspector/unofficial.gni
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion unofficial.gni
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,10 @@ 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",
"$node_inspector_protocol_path",
]
include_dirs = [
"$target_gen_dir/src",
Expand Down

0 comments on commit 6dd605b

Please sign in to comment.