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

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

Issue 2790973002: [instrumentation] Introduce JSON5 config files for probe generator. (Closed)
Patch Set: add missing config files 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 2017 The Chromium Authors. All rights reserved. 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 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/core/core.gni") 5 import("//third_party/WebKit/Source/core/core.gni")
6 6
7 blink_core_sources("probe") { 7 blink_core_sources("probe") {
8 sources = [ 8 sources = [
9 "CoreProbes.cpp", 9 "CoreProbes.cpp",
10 "CoreProbes.h", 10 "CoreProbes.h",
11 ] 11 ]
12 } 12 }
13 13
14 action("instrumentation_probes") { 14 action("instrumentation_probes") {
15 script = "../../platform/probe/InstrumentingProbesCodeGenerator.py" 15 script = "../../build/scripts/make_instrumenting_probes.py"
16 16
17 inputs = [ 17 inputs = [
18 # Input file for the script.
19 "CoreProbes.pidl", 18 "CoreProbes.pidl",
20 19 "CoreProbes.json5",
21 # Templates 20 "../../build/scripts/templates/InstrumentingProbesImpl.cpp.tmpl",
22 "../../platform/probe/templates/InstrumentingProbesImpl.cpp.tmpl", 21 "../../build/scripts/templates/InstrumentingProbesInl.h.tmpl",
23 "../../platform/probe/templates/InstrumentingProbesInl.h.tmpl", 22 "../../build/scripts/templates/ProbeSink.h.tmpl",
24 "../../platform/probe/templates/ProbeSink.h.tmpl",
25 ] 23 ]
26 24
27 outputs = [ 25 outputs = [
28 "$blink_core_output_dir/CoreProbesInl.h", 26 "$blink_core_output_dir/CoreProbesInl.h",
29 "$blink_core_output_dir/InspectorOverridesInl.h", 27 "$blink_core_output_dir/InspectorOverridesInl.h",
30 "$blink_core_output_dir/CoreProbesImpl.cpp", 28 "$blink_core_output_dir/CoreProbesImpl.cpp",
31 "$blink_core_output_dir/CoreProbeSink.h", 29 "$blink_core_output_dir/CoreProbeSink.h",
32 ] 30 ]
33 31
34 args = [ 32 args = [
35 rebase_path(inputs[0], root_build_dir), 33 rebase_path(inputs[0], root_build_dir),
34 "--config",
35 rebase_path("CoreProbes.json5", root_build_dir),
36 "--output_dir", 36 "--output_dir",
37 rebase_path(blink_core_output_dir, root_build_dir), 37 rebase_path(blink_core_output_dir, root_build_dir),
38 ] 38 ]
39 } 39 }
40 40
41 # Compiles the sources generated above. 41 # Compiles the sources generated above.
42 source_set("generated") { 42 source_set("generated") {
43 sources = get_target_outputs(":instrumentation_probes") 43 sources = get_target_outputs(":instrumentation_probes")
44 44
45 configs -= core_config_remove 45 configs -= core_config_remove
46 configs += 46 configs +=
47 core_config_add + [ "//third_party/WebKit/Source/core:core_include_dirs" ] 47 core_config_add + [ "//third_party/WebKit/Source/core:core_include_dirs" ]
48 48
49 if (is_win) { 49 if (is_win) {
50 cflags = [ "/wd4702" ] # Unreachable code. 50 cflags = [ "/wd4702" ] # Unreachable code.
51 } 51 }
52 52
53 deps = [ 53 deps = [
54 ":instrumentation_probes", 54 ":instrumentation_probes",
55 "//skia", 55 "//skia",
56 "//third_party/WebKit/Source/wtf", 56 "//third_party/WebKit/Source/wtf",
57 "//v8", 57 "//v8",
58 ] 58 ]
59 } 59 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/build/scripts/templates/ProbeSink.h.tmpl ('k') | third_party/WebKit/Source/core/probe/CoreProbes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698