Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: content/browser/devtools/BUILD.gn

Issue 2867073006: Adds a /json/protocol endpoint to serve the DevTools protocol (Closed)
Patch Set: try a different dependancy Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//tools/grit/grit_rule.gni") 5 import("//tools/grit/grit_rule.gni")
6 import("//third_party/brotli/brotli.gni")
6 import("//third_party/inspector_protocol/inspector_protocol.gni") 7 import("//third_party/inspector_protocol/inspector_protocol.gni")
7 8
8 group("resources") { 9 group("resources") {
9 if (!is_android) { 10 if (!is_android) {
10 public_deps = [ 11 public_deps = [
11 ":devtools_resources", 12 ":devtools_resources",
12 ] 13 ]
13 } 14 }
14 } 15 }
15 16
17 compressed_protocol_file =
18 "$root_gen_dir/blink/core/inspector/protocol.json.bro"
19
20 compress_file_brotli("compressed_protocol_json") {
21 input_file = "$root_gen_dir/blink/core/inspector/protocol.json"
22 output_file = compressed_protocol_file
23 deps = [
24 "//third_party/WebKit/Source/core/inspector:protocol_version",
25 ]
26 }
27
16 grit("devtools_resources") { 28 grit("devtools_resources") {
17 source = "$root_gen_dir/devtools/devtools_resources.grd" 29 source = "$root_gen_dir/devtools/devtools_resources.grd"
18 source_is_generated = true 30 source_is_generated = true
19 31
20 outputs = [ 32 outputs = [
21 "grit/devtools_resources.h", 33 "grit/devtools_resources.h",
22 "devtools_resources.pak", 34 "devtools_resources.pak",
23 "grit/devtools_resources_map.cc", 35 "grit/devtools_resources_map.cc",
24 "grit/devtools_resources_map.h", 36 "grit/devtools_resources_map.h",
25 ] 37 ]
26 38
39 grit_flags = [
40 "-E",
41 "compressed_protocol_file=" +
42 rebase_path(compressed_protocol_file, root_build_dir),
43 ]
44
27 defines = 45 defines =
28 [ "SHARED_INTERMEDIATE_DIR=" + rebase_path(root_gen_dir, root_build_dir) ] 46 [ "SHARED_INTERMEDIATE_DIR=" + rebase_path(root_gen_dir, root_build_dir) ]
29 47
30 deps = [ 48 deps = [
49 ":compressed_protocol_json",
50
31 # This is the action that generates out .grd input file. 51 # This is the action that generates out .grd input file.
32 "//third_party/WebKit/public:blink_generate_devtools_grd", 52 "//third_party/WebKit/public:blink_generate_devtools_grd",
33 ] 53 ]
34 } 54 }
35 55
36 inspector_protocol_generate("protocol_sources") { 56 inspector_protocol_generate("protocol_sources") {
37 visibility = [ "//content/browser" ] 57 visibility = [ "//content/browser" ]
38 deps = [ 58 deps = [
39 "//third_party/WebKit/Source/core/inspector:protocol_version", 59 "//third_party/WebKit/Source/core/inspector:protocol_version",
40 ] 60 ]
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 "protocol/system_info.cc", 106 "protocol/system_info.cc",
87 "protocol/system_info.h", 107 "protocol/system_info.h",
88 "protocol/target.cc", 108 "protocol/target.cc",
89 "protocol/target.h", 109 "protocol/target.h",
90 "protocol/tethering.cc", 110 "protocol/tethering.cc",
91 "protocol/tethering.h", 111 "protocol/tethering.h",
92 "protocol/tracing.cc", 112 "protocol/tracing.cc",
93 "protocol/tracing.h", 113 "protocol/tracing.h",
94 ] 114 ]
95 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698