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

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

Issue 2772613002: [instrumentation] Rename InspectorInstrumentation into CoreProbes (Closed)
Patch Set: fix typo 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/probe/BUILD.gn
diff --git a/third_party/WebKit/Source/core/probe/BUILD.gn b/third_party/WebKit/Source/core/probe/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..e6cffeb78a23df5895daf1f37f48179ee660d0ba
--- /dev/null
+++ b/third_party/WebKit/Source/core/probe/BUILD.gn
@@ -0,0 +1,59 @@
+# 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("probe") {
+ sources = [
+ "CoreProbes.cpp",
+ "CoreProbes.h",
+ ]
+}
+
+action("instrumentation_probes") {
+ script = "../../platform/probe/InstrumentingProbesCodeGenerator.py"
+
+ inputs = [
+ # Input file for the script.
+ "CoreProbes.pidl",
+
+ # Templates
+ "../../platform/probe/templates/InstrumentingProbesImpl.cpp.tmpl",
+ "../../platform/probe/templates/InstrumentingProbesInl.h.tmpl",
+ "../../platform/probe/templates/ProbeSink.h.tmpl",
+ ]
+
+ outputs = [
+ "$blink_core_output_dir/CoreProbesInl.h",
+ "$blink_core_output_dir/InspectorOverridesInl.h",
+ "$blink_core_output_dir/CoreProbesImpl.cpp",
+ "$blink_core_output_dir/CoreProbeSink.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",
+ ]
+}
« no previous file with comments | « third_party/WebKit/Source/core/paint/FramePainter.cpp ('k') | third_party/WebKit/Source/core/probe/CoreProbes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698