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

Side by Side Diff: third_party/WebKit/Source/core/inspector/BUILD.gn

Issue 2282283002: [DevTools] Prepare inspector_protocol build to move. (Closed)
Patch Set: NOTREACHED Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/inspector.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("//third_party/WebKit/Source/bindings/bindings.gni") 5 import("//third_party/WebKit/Source/bindings/bindings.gni")
6 import("//third_party/WebKit/Source/core/core.gni") 6 import("//third_party/WebKit/Source/core/core.gni")
7 import(
8 "//third_party/WebKit/Source/platform/inspector_protocol/inspector_protocol. gni")
7 9
8 action("instrumentation_sources") { 10 action("instrumentation_sources") {
9 script = "CodeGeneratorInstrumentation.py" 11 script = "CodeGeneratorInstrumentation.py"
10 12
11 inputs = [ 13 inputs = [
12 # Input file for the script. 14 # Input file for the script.
13 "InspectorInstrumentation.idl", 15 "InspectorInstrumentation.idl",
14 ] 16 ]
15 17
16 outputs = [ 18 outputs = [
(...skipping 10 matching lines...) Expand all
27 ] 29 ]
28 } 30 }
29 31
30 # inspector protocol ----------------------------------------------------------- 32 # inspector protocol -----------------------------------------------------------
31 33
32 action("protocol_sources") { 34 action("protocol_sources") {
33 script = "../../platform/inspector_protocol/CodeGenerator.py" 35 script = "../../platform/inspector_protocol/CodeGenerator.py"
34 deps = [ 36 deps = [
35 ":protocol_version", 37 ":protocol_version",
36 ] 38 ]
37 sources = [ 39 sources = inspector_protocol_sources
38 "../../platform/inspector_protocol/Allocator_h.template",
39 "../../platform/inspector_protocol/Array_h.template",
40 "../../platform/inspector_protocol/BackendCallback_h.template",
41 "../../platform/inspector_protocol/CodeGenerator.py",
42 "../../platform/inspector_protocol/Collections_h.template",
43 "../../platform/inspector_protocol/DispatcherBase_cpp.template",
44 "../../platform/inspector_protocol/DispatcherBase_h.template",
45 "../../platform/inspector_protocol/ErrorSupport_cpp.template",
46 "../../platform/inspector_protocol/ErrorSupport_h.template",
47 "../../platform/inspector_protocol/Exported_h.template",
48 "../../platform/inspector_protocol/Forward_h.template",
49 "../../platform/inspector_protocol/FrontendChannel_h.template",
50 "../../platform/inspector_protocol/Imported_h.template",
51 "../../platform/inspector_protocol/Maybe_h.template",
52 "../../platform/inspector_protocol/Object_cpp.template",
53 "../../platform/inspector_protocol/Object_h.template",
54 "../../platform/inspector_protocol/Parser_cpp.template",
55 "../../platform/inspector_protocol/Parser_h.template",
56 "../../platform/inspector_protocol/Protocol_cpp.template",
57 "../../platform/inspector_protocol/TypeBuilder_cpp.template",
58 "../../platform/inspector_protocol/TypeBuilder_h.template",
59 "../../platform/inspector_protocol/ValueConversions_h.template",
60 "../../platform/inspector_protocol/Values_cpp.template",
61 "../../platform/inspector_protocol/Values_h.template",
62 ]
63 inputs = [ 40 inputs = [
64 "browser_protocol.json", 41 "browser_protocol.json",
65 "../../platform/v8_inspector/js_protocol.json", 42 "../../platform/v8_inspector/js_protocol.json",
66 "inspector_protocol_config.json", 43 "inspector_protocol_config.json",
67 ] 44 ]
68 outputs = [ 45 outputs = [
69 "$blink_core_output_dir/inspector/protocol/Forward.h", 46 "$blink_core_output_dir/inspector/protocol/Forward.h",
70 "$blink_core_output_dir/inspector/protocol/Protocol.cpp", 47 "$blink_core_output_dir/inspector/protocol/Protocol.cpp",
71 "$blink_core_output_dir/inspector/protocol/Protocol.h", 48 "$blink_core_output_dir/inspector/protocol/Protocol.h",
72 "$blink_core_output_dir/inspector/protocol/Accessibility.cpp", 49 "$blink_core_output_dir/inspector/protocol/Accessibility.cpp",
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 "$blink_core_output_dir/inspector/protocol/ServiceWorker.h", 96 "$blink_core_output_dir/inspector/protocol/ServiceWorker.h",
120 "$blink_core_output_dir/inspector/protocol/Storage.cpp", 97 "$blink_core_output_dir/inspector/protocol/Storage.cpp",
121 "$blink_core_output_dir/inspector/protocol/Storage.h", 98 "$blink_core_output_dir/inspector/protocol/Storage.h",
122 "$blink_core_output_dir/inspector/protocol/Tracing.cpp", 99 "$blink_core_output_dir/inspector/protocol/Tracing.cpp",
123 "$blink_core_output_dir/inspector/protocol/Tracing.h", 100 "$blink_core_output_dir/inspector/protocol/Tracing.h",
124 "$blink_core_output_dir/inspector/protocol/Worker.cpp", 101 "$blink_core_output_dir/inspector/protocol/Worker.cpp",
125 "$blink_core_output_dir/inspector/protocol/Worker.h", 102 "$blink_core_output_dir/inspector/protocol/Worker.h",
126 ] 103 ]
127 104
128 args = [ 105 args = [
106 "--jinja_dir",
107 rebase_path("../../../../", root_build_dir), # jinja is in chromium's third _party
129 "--output_base", 108 "--output_base",
130 rebase_path(blink_core_output_dir, root_build_dir), 109 rebase_path(blink_core_output_dir, root_build_dir),
131 "--config", 110 "--config",
132 rebase_path("inspector_protocol_config.json", root_build_dir), 111 rebase_path("inspector_protocol_config.json", root_build_dir),
133 ] 112 ]
134 } 113 }
135 114
115 action("protocol_compatibility_check") {
116 script = "../../platform/inspector_protocol/CheckProtocolCompatibility.py"
117
118 inputs = [
119 "browser_protocol.json",
120 "../../platform/v8_inspector/js_protocol.json",
121 ]
122 _stamp = "$blink_core_output_dir/inspector/browser_protocol.stamp"
123 outputs = [
124 _stamp,
125 ]
126
127 args = [
128 "--stamp",
129 rebase_path(_stamp, root_build_dir),
130 rebase_path("browser_protocol.json", root_build_dir),
131 rebase_path("../../platform/v8_inspector/js_protocol.json", root_build_dir),
132 ]
133 }
134
136 action("protocol_version") { 135 action("protocol_version") {
137 script = 136 deps = [
138 "../../platform/inspector_protocol/generate-inspector-protocol-version" 137 ":protocol_compatibility_check",
138 ]
139 script = "../../platform/inspector_protocol/ConcatenateProtocols.py"
139 140
140 inputs = [ 141 inputs = [
141 "browser_protocol.json", 142 "browser_protocol.json",
142 "../../platform/v8_inspector/js_protocol.json", 143 "../../platform/v8_inspector/js_protocol.json",
143 ] 144 ]
144 output_file = "$blink_core_output_dir/inspector/protocol.json" 145 output_file = "$blink_core_output_dir/inspector/protocol.json"
145 outputs = [ 146 outputs = [
146 output_file, 147 output_file,
147 ] 148 ]
148 149
149 args = [ 150 args = [
150 "--o",
151 rebase_path(output_file, root_build_dir),
152 rebase_path("browser_protocol.json", root_build_dir), 151 rebase_path("browser_protocol.json", root_build_dir),
153 rebase_path("../../platform/v8_inspector/js_protocol.json", root_build_dir), 152 rebase_path("../../platform/v8_inspector/js_protocol.json", root_build_dir),
153 rebase_path(output_file, root_build_dir),
154 ] 154 ]
155 } 155 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/inspector.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698