| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//third_party/WebKit/Source/core/core.gni") |
| 6 |
| 7 blink_core_sources("probe") { |
| 8 sources = [ |
| 9 "CoreProbes.cpp", |
| 10 "CoreProbes.h", |
| 11 ] |
| 12 } |
| 13 |
| 14 action("instrumentation_probes") { |
| 15 script = "../../platform/probe/InstrumentingProbesCodeGenerator.py" |
| 16 |
| 17 inputs = [ |
| 18 # Input file for the script. |
| 19 "CoreProbes.pidl", |
| 20 |
| 21 # Templates |
| 22 "../../platform/probe/templates/InstrumentingProbesImpl.cpp.tmpl", |
| 23 "../../platform/probe/templates/InstrumentingProbesInl.h.tmpl", |
| 24 "../../platform/probe/templates/ProbeSink.h.tmpl", |
| 25 ] |
| 26 |
| 27 outputs = [ |
| 28 "$blink_core_output_dir/CoreProbesInl.h", |
| 29 "$blink_core_output_dir/InspectorOverridesInl.h", |
| 30 "$blink_core_output_dir/CoreProbesImpl.cpp", |
| 31 "$blink_core_output_dir/CoreProbeSink.h", |
| 32 ] |
| 33 |
| 34 args = [ |
| 35 rebase_path(inputs[0], root_build_dir), |
| 36 "--output_dir", |
| 37 rebase_path(blink_core_output_dir, root_build_dir), |
| 38 ] |
| 39 } |
| 40 |
| 41 # Compiles the sources generated above. |
| 42 source_set("generated") { |
| 43 sources = get_target_outputs(":instrumentation_probes") |
| 44 |
| 45 configs -= core_config_remove |
| 46 configs += |
| 47 core_config_add + [ "//third_party/WebKit/Source/core:core_include_dirs" ] |
| 48 |
| 49 if (is_win) { |
| 50 cflags = [ "/wd4702" ] # Unreachable code. |
| 51 } |
| 52 |
| 53 deps = [ |
| 54 ":instrumentation_probes", |
| 55 "//skia", |
| 56 "//third_party/WebKit/Source/wtf", |
| 57 "//v8", |
| 58 ] |
| 59 } |
| OLD | NEW |