| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 "WorkerThreadDebugger.cpp", | 85 "WorkerThreadDebugger.cpp", |
| 86 "WorkerThreadDebugger.h", | 86 "WorkerThreadDebugger.h", |
| 87 ] | 87 ] |
| 88 | 88 |
| 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 action("instrumentation_sources") { | 95 # instrumentation probes ------------------------------------------------------- |
| 96 |
| 97 action("instrumentation_probes") { |
| 96 visibility = [ ":*" ] | 98 visibility = [ ":*" ] |
| 97 script = "CodeGeneratorInstrumentation.py" | 99 script = "InstrumentingProbesCodeGenerator.py" |
| 98 | 100 |
| 99 inputs = [ | 101 inputs = [ |
| 100 # Input file for the script. | 102 # Input file for the script. |
| 101 "InspectorInstrumentation.idl", | 103 "InstrumentingProbes.idl", |
| 104 "InstrumentingProbesImpl_cpp.template", |
| 105 "InstrumentingProbesImpl_h.template", |
| 106 "InstrumentingAgents_h.template", |
| 102 ] | 107 ] |
| 103 | 108 |
| 104 outputs = [ | 109 outputs = [ |
| 105 "$blink_core_output_dir/InspectorInstrumentationInl.h", | 110 "$blink_core_output_dir/InspectorInstrumentationInl.h", |
| 106 "$blink_core_output_dir/InspectorOverridesInl.h", | 111 "$blink_core_output_dir/InspectorOverridesInl.h", |
| 112 "$blink_core_output_dir/InstrumentingProbesImpl.cpp", |
| 107 "$blink_core_output_dir/InstrumentingAgents.h", | 113 "$blink_core_output_dir/InstrumentingAgents.h", |
| 108 "$blink_core_output_dir/InspectorInstrumentationImpl.cpp", | |
| 109 ] | 114 ] |
| 110 | 115 |
| 111 args = [ | 116 args = [ |
| 112 rebase_path("InspectorInstrumentation.idl", root_build_dir), | 117 rebase_path("InstrumentingProbes.idl", root_build_dir), |
| 113 "--output_dir", | 118 "--output_dir", |
| 114 rebase_path(blink_core_output_dir, root_build_dir), | 119 rebase_path(blink_core_output_dir, root_build_dir), |
| 115 ] | 120 ] |
| 116 } | 121 } |
| 117 | 122 |
| 118 # inspector protocol ----------------------------------------------------------- | 123 # inspector protocol ----------------------------------------------------------- |
| 119 | 124 |
| 120 inspector_protocol_generate("protocol_sources") { | 125 inspector_protocol_generate("protocol_sources") { |
| 121 inspector_protocol_dir = _inspector_protocol_dir | 126 inspector_protocol_dir = _inspector_protocol_dir |
| 122 out_dir = blink_core_output_dir | 127 out_dir = blink_core_output_dir |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 ] | 192 ] |
| 188 | 193 |
| 189 deps = [ | 194 deps = [ |
| 190 ":protocol_version", | 195 ":protocol_version", |
| 191 ] | 196 ] |
| 192 } | 197 } |
| 193 | 198 |
| 194 # Compiles the sources generated above. | 199 # Compiles the sources generated above. |
| 195 source_set("generated") { | 200 source_set("generated") { |
| 196 sources = get_target_outputs(":protocol_sources") + | 201 sources = get_target_outputs(":protocol_sources") + |
| 197 get_target_outputs(":instrumentation_sources") | 202 get_target_outputs(":instrumentation_probes") |
| 198 | 203 |
| 199 configs -= core_config_remove | 204 configs -= core_config_remove |
| 200 configs += core_config_add + [ | 205 configs += core_config_add + [ |
| 201 "../..:inside_blink", | 206 "../..:inside_blink", |
| 202 "//third_party/WebKit/Source/core:core_include_dirs", | 207 "//third_party/WebKit/Source/core:core_include_dirs", |
| 203 ] | 208 ] |
| 204 | 209 |
| 205 if (is_win) { | 210 if (is_win) { |
| 206 cflags = [ "/wd4702" ] # Unreachable code. | 211 cflags = [ "/wd4702" ] # Unreachable code. |
| 207 } | 212 } |
| 208 | 213 |
| 209 deps = [ | 214 deps = [ |
| 210 ":instrumentation_sources", | 215 ":instrumentation_probes", |
| 211 ":protocol_sources", | 216 ":protocol_sources", |
| 212 "//skia", | 217 "//skia", |
| 213 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated", | 218 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated", |
| 214 "//third_party/WebKit/Source/core:all_generators", | 219 "//third_party/WebKit/Source/core:all_generators", |
| 215 "//third_party/WebKit/Source/platform:make_platform_generated", | 220 "//third_party/WebKit/Source/platform:make_platform_generated", |
| 216 "//third_party/WebKit/Source/wtf", | 221 "//third_party/WebKit/Source/wtf", |
| 217 "//v8", | 222 "//v8", |
| 218 ] | 223 ] |
| 219 } | 224 } |
| 220 | 225 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 outputs = [ | 257 outputs = [ |
| 253 output_file, | 258 output_file, |
| 254 ] | 259 ] |
| 255 | 260 |
| 256 args = [ | 261 args = [ |
| 257 rebase_path("browser_protocol.json", root_build_dir), | 262 rebase_path("browser_protocol.json", root_build_dir), |
| 258 rebase_path(v8_inspector_js_protocol, root_build_dir), | 263 rebase_path(v8_inspector_js_protocol, root_build_dir), |
| 259 rebase_path(output_file, root_build_dir), | 264 rebase_path(output_file, root_build_dir), |
| 260 ] | 265 ] |
| 261 } | 266 } |
| OLD | NEW |