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

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

Issue 2772613002: [instrumentation] Rename InspectorInstrumentation into CoreProbes (Closed)
Patch Set: sinkFor -> toCoreProbesSink Created 3 years, 8 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("//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("//third_party/inspector_protocol/inspector_protocol.gni") 7 import("//third_party/inspector_protocol/inspector_protocol.gni")
8 import("//v8/gni/v8.gni") 8 import("//v8/gni/v8.gni")
9 9
10 _inspector_protocol_dir = "//third_party/inspector_protocol" 10 _inspector_protocol_dir = "//third_party/inspector_protocol"
(...skipping 25 matching lines...) Expand all
36 "InspectorDOMAgent.cpp", 36 "InspectorDOMAgent.cpp",
37 "InspectorDOMAgent.h", 37 "InspectorDOMAgent.h",
38 "InspectorDOMDebuggerAgent.cpp", 38 "InspectorDOMDebuggerAgent.cpp",
39 "InspectorDOMDebuggerAgent.h", 39 "InspectorDOMDebuggerAgent.h",
40 "InspectorHighlight.cpp", 40 "InspectorHighlight.cpp",
41 "InspectorHighlight.h", 41 "InspectorHighlight.h",
42 "InspectorHistory.cpp", 42 "InspectorHistory.cpp",
43 "InspectorHistory.h", 43 "InspectorHistory.h",
44 "InspectorInputAgent.cpp", 44 "InspectorInputAgent.cpp",
45 "InspectorInputAgent.h", 45 "InspectorInputAgent.h",
46 "InspectorInstrumentation.cpp",
47 "InspectorInstrumentation.h",
48 "InspectorLayerTreeAgent.cpp", 46 "InspectorLayerTreeAgent.cpp",
49 "InspectorLayerTreeAgent.h", 47 "InspectorLayerTreeAgent.h",
50 "InspectorLogAgent.cpp", 48 "InspectorLogAgent.cpp",
51 "InspectorLogAgent.h", 49 "InspectorLogAgent.h",
52 "InspectorMemoryAgent.cpp", 50 "InspectorMemoryAgent.cpp",
53 "InspectorMemoryAgent.h", 51 "InspectorMemoryAgent.h",
54 "InspectorNetworkAgent.cpp", 52 "InspectorNetworkAgent.cpp",
55 "InspectorNetworkAgent.h", 53 "InspectorNetworkAgent.h",
56 "InspectorOverlayHost.cpp", 54 "InspectorOverlayHost.cpp",
57 "InspectorOverlayHost.h", 55 "InspectorOverlayHost.h",
(...skipping 28 matching lines...) Expand all
86 "WorkerThreadDebugger.cpp", 84 "WorkerThreadDebugger.cpp",
87 "WorkerThreadDebugger.h", 85 "WorkerThreadDebugger.h",
88 ] 86 ]
89 87
90 configs += [ 88 configs += [
91 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 89 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
92 "//build/config/compiler:no_size_t_to_int_warning", 90 "//build/config/compiler:no_size_t_to_int_warning",
93 ] 91 ]
94 } 92 }
95 93
96 # instrumentation probes -------------------------------------------------------
97
98 action("instrumentation_probes") {
99 visibility = [ ":*" ]
100 script = "../../platform/instrumentation/InstrumentingProbesCodeGenerator.py"
101
102 inputs = [
103 # Input file for the script.
104 "InspectorInstrumentation.idl",
105
106 # Templates
107 "../../platform/instrumentation/InstrumentingProbesImpl_cpp.template",
108 "../../platform/instrumentation/InstrumentingProbesImpl_h.template",
109 "../../platform/instrumentation/InstrumentingAgents_h.template",
110 ]
111
112 outputs = [
113 "$blink_core_output_dir/InspectorInstrumentationInl.h",
114 "$blink_core_output_dir/InspectorOverridesInl.h",
115 "$blink_core_output_dir/InspectorInstrumentationImpl.cpp",
116 "$blink_core_output_dir/InspectorInstrumentationAgents.h",
117 ]
118
119 args = [
120 rebase_path(inputs[0], root_build_dir),
121 "--output_dir",
122 rebase_path(blink_core_output_dir, root_build_dir),
123 ]
124 }
125
126 # inspector protocol ----------------------------------------------------------- 94 # inspector protocol -----------------------------------------------------------
127 95
128 inspector_protocol_generate("protocol_sources") { 96 inspector_protocol_generate("protocol_sources") {
129 inspector_protocol_dir = _inspector_protocol_dir 97 inspector_protocol_dir = _inspector_protocol_dir
130 out_dir = blink_core_output_dir 98 out_dir = blink_core_output_dir
131 99
132 config_file = "inspector_protocol_config.json" 100 config_file = "inspector_protocol_config.json"
133 _imported = rebase_path(v8_inspector_js_protocol, root_build_dir) 101 _imported = rebase_path(v8_inspector_js_protocol, root_build_dir)
134 config_values = [ "imported.path=$_imported" ] 102 config_values = [ "imported.path=$_imported" ]
135 103
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 "inspector/protocol/Tracing.h", 162 "inspector/protocol/Tracing.h",
195 ] 163 ]
196 164
197 deps = [ 165 deps = [
198 ":protocol_version", 166 ":protocol_version",
199 ] 167 ]
200 } 168 }
201 169
202 # Compiles the sources generated above. 170 # Compiles the sources generated above.
203 source_set("generated") { 171 source_set("generated") {
204 sources = get_target_outputs(":protocol_sources") + 172 sources = get_target_outputs(":protocol_sources")
205 get_target_outputs(":instrumentation_probes")
206 173
207 configs -= core_config_remove 174 configs -= core_config_remove
208 configs += core_config_add + [ 175 configs += core_config_add + [
209 "../..:inside_blink", 176 "../..:inside_blink",
210 "//third_party/WebKit/Source/core:core_include_dirs", 177 "//third_party/WebKit/Source/core:core_include_dirs",
211 ] 178 ]
212 179
213 if (is_win) { 180 if (is_win) {
214 cflags = [ "/wd4702" ] # Unreachable code. 181 cflags = [ "/wd4702" ] # Unreachable code.
215 } 182 }
216 183
217 deps = [ 184 deps = [
218 ":instrumentation_probes",
219 ":protocol_sources", 185 ":protocol_sources",
220 "//skia", 186 "//skia",
221 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated", 187 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated",
222 "//third_party/WebKit/Source/core:all_generators", 188 "//third_party/WebKit/Source/core:all_generators",
223 "//third_party/WebKit/Source/platform:make_platform_generated", 189 "//third_party/WebKit/Source/platform:make_platform_generated",
224 "//third_party/WebKit/Source/wtf", 190 "//third_party/WebKit/Source/wtf",
225 "//v8", 191 "//v8",
226 ] 192 ]
227 } 193 }
228 194
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 outputs = [ 226 outputs = [
261 output_file, 227 output_file,
262 ] 228 ]
263 229
264 args = [ 230 args = [
265 rebase_path("browser_protocol.json", root_build_dir), 231 rebase_path("browser_protocol.json", root_build_dir),
266 rebase_path(v8_inspector_js_protocol, root_build_dir), 232 rebase_path(v8_inspector_js_protocol, root_build_dir),
267 rebase_path(output_file, root_build_dir), 233 rebase_path(output_file, root_build_dir),
268 ] 234 ]
269 } 235 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698