OLD | NEW |
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 configs += [ | 89 configs += [ |
90 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 90 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
91 "//build/config/compiler:no_size_t_to_int_warning", | 91 "//build/config/compiler:no_size_t_to_int_warning", |
92 ] | 92 ] |
93 } | 93 } |
94 | 94 |
95 # instrumentation probes ------------------------------------------------------- | 95 # instrumentation probes ------------------------------------------------------- |
96 | 96 |
97 action("instrumentation_probes") { | 97 action("instrumentation_probes") { |
98 visibility = [ ":*" ] | 98 visibility = [ ":*" ] |
99 script = "InstrumentingProbesCodeGenerator.py" | 99 script = "../../platform/instrumentation/InstrumentingProbesCodeGenerator.py" |
100 | 100 |
101 inputs = [ | 101 inputs = [ |
102 # Input file for the script. | 102 # Input file for the script. |
103 "InstrumentingProbes.idl", | 103 "InspectorInstrumentation.idl", |
104 "InstrumentingProbesImpl_cpp.template", | 104 |
105 "InstrumentingProbesImpl_h.template", | 105 # Templates |
106 "InstrumentingAgents_h.template", | 106 "../../platform/instrumentation/InstrumentingProbesImpl_cpp.template", |
| 107 "../../platform/instrumentation/InstrumentingProbesImpl_h.template", |
| 108 "../../platform/instrumentation/InstrumentingAgents_h.template", |
107 ] | 109 ] |
108 | 110 |
109 outputs = [ | 111 outputs = [ |
110 "$blink_core_output_dir/InspectorInstrumentationInl.h", | 112 "$blink_core_output_dir/InspectorInstrumentationInl.h", |
111 "$blink_core_output_dir/InspectorOverridesInl.h", | 113 "$blink_core_output_dir/InspectorOverridesInl.h", |
112 "$blink_core_output_dir/InstrumentingProbesImpl.cpp", | 114 "$blink_core_output_dir/InspectorInstrumentationImpl.cpp", |
113 "$blink_core_output_dir/InstrumentingAgents.h", | 115 "$blink_core_output_dir/InspectorInstrumentationAgents.h", |
114 ] | 116 ] |
115 | 117 |
116 args = [ | 118 args = [ |
117 rebase_path("InstrumentingProbes.idl", root_build_dir), | 119 rebase_path(inputs[0], root_build_dir), |
118 "--output_dir", | 120 "--output_dir", |
119 rebase_path(blink_core_output_dir, root_build_dir), | 121 rebase_path(blink_core_output_dir, root_build_dir), |
120 ] | 122 ] |
121 } | 123 } |
122 | 124 |
123 # inspector protocol ----------------------------------------------------------- | 125 # inspector protocol ----------------------------------------------------------- |
124 | 126 |
125 inspector_protocol_generate("protocol_sources") { | 127 inspector_protocol_generate("protocol_sources") { |
126 inspector_protocol_dir = _inspector_protocol_dir | 128 inspector_protocol_dir = _inspector_protocol_dir |
127 out_dir = blink_core_output_dir | 129 out_dir = blink_core_output_dir |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 outputs = [ | 259 outputs = [ |
258 output_file, | 260 output_file, |
259 ] | 261 ] |
260 | 262 |
261 args = [ | 263 args = [ |
262 rebase_path("browser_protocol.json", root_build_dir), | 264 rebase_path("browser_protocol.json", root_build_dir), |
263 rebase_path(v8_inspector_js_protocol, root_build_dir), | 265 rebase_path(v8_inspector_js_protocol, root_build_dir), |
264 rebase_path(output_file, root_build_dir), | 266 rebase_path(output_file, root_build_dir), |
265 ] | 267 ] |
266 } | 268 } |
OLD | NEW |