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