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

Unified Diff: third_party/WebKit/Source/core/instrumentation/BUILD.gn

Issue 2772613002: [instrumentation] Rename InspectorInstrumentation into CoreProbes (Closed)
Patch Set: sinkFor -> toCoreProbesSink Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/instrumentation/BUILD.gn
diff --git a/third_party/WebKit/Source/core/instrumentation/BUILD.gn b/third_party/WebKit/Source/core/instrumentation/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..80ff822b8362542458c663d41cf4bc31d0d012b3
--- /dev/null
+++ b/third_party/WebKit/Source/core/instrumentation/BUILD.gn
@@ -0,0 +1,60 @@
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//third_party/WebKit/Source/core/core.gni")
+
+blink_core_sources("instrumentation") {
+ sources = [
+ "CoreProbes.cpp",
+ "CoreProbes.h",
+ ]
+}
+
+action("instrumentation_probes") {
+ script = "../../platform/instrumentation/InstrumentingProbesCodeGenerator.py"
+
+ inputs = [
+ # Input file for the script.
+ "CoreProbes.pidl",
+
+ # Templates
+ "../../platform/instrumentation/templates/InstrumentingProbesImpl.cpp.tmpl",
+ "../../platform/instrumentation/templates/InstrumentingProbesInl.h.tmpl",
+ "../../platform/instrumentation/templates/ProbesSink.h.tmpl",
+ ]
+
+ outputs = [
+ "$blink_core_output_dir/InspectorInstrumentationInl.h",
+ "$blink_core_output_dir/InspectorOverridesInl.h",
+ "$blink_core_output_dir/CoreProbesImpl.cpp",
+ "$blink_core_output_dir/CoreProbesSink.h",
+ ]
+
+ args = [
+ rebase_path(inputs[0], root_build_dir),
+ "--output_dir",
+ rebase_path(blink_core_output_dir, root_build_dir),
+ ]
+}
+
+# Compiles the sources generated above.
+source_set("generated") {
+ sources = get_target_outputs(":instrumentation_probes")
+
+ configs -= core_config_remove
+ configs += core_config_add + [
+ "//third_party/WebKit/Source/core:core_include_dirs",
+ ]
+
+ if (is_win) {
+ cflags = [ "/wd4702" ] # Unreachable code.
+ }
+
+ deps = [
+ ":instrumentation_probes",
+ "//skia",
+ "//third_party/WebKit/Source/wtf",
+ "//v8",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698