Skip to content

Commit ba42c72

Browse files
codebytereaduh95
authored andcommitted
build: option to use custom inspector_protocol path
PR-URL: #58839 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent f8fcb1c commit ba42c72

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

node.gni

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ declare_args() {
1616
# The location of simdutf - use the one from node's deps by default.
1717
node_simdutf_path = "//third_party/simdutf"
1818

19+
# The location of inspector_protocol - use the one from node's deps by default.
20+
node_inspector_protocol_path = "//third_party/inspector_protocol"
21+
1922
# The NODE_MODULE_VERSION defined in node_version.h.
2023
node_module_version = exec_script("$node_path/tools/getmoduleversion.py", [], "value")
2124

src/inspector/unofficial.gni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ template("inspector_gn_build") {
1313
}
1414

1515
node_gen_dir = get_label_info("../..", "target_gen_dir")
16-
protocol_tool_path = "../../deps/inspector_protocol"
16+
protocol_tool_path = "$node_inspector_protocol_path"
1717

1818
gypi_values = exec_script(
1919
"../../tools/gypi_to_gn.py",

unofficial.gni

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,14 @@ template("node_gn_build") {
195195
}
196196
if (node_enable_inspector) {
197197
deps += [
198-
"src/inspector:crdtp",
198+
"$node_inspector_protocol_path:crdtp",
199199
"src/inspector:node_protocol_generated_sources",
200200
"src/inspector:v8_inspector_compress_protocol_json",
201201
]
202202
include_dirs = [
203203
"$target_gen_dir/src",
204204
"$target_gen_dir/src/inspector",
205+
"$node_inspector_protocol_path",
205206
]
206207
node_inspector = exec_script(
207208
"./tools/gypi_to_gn.py",

0 commit comments

Comments
 (0)