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

Unified Diff: ipc/BUILD.gn

Issue 2847003005: Reland "Add enable_ipc_logging build argument" (Closed)
Patch Set: Reland "Add enable_ipc_logging build argument" Created 3 years, 7 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
« no previous file with comments | « content/shell/app/shell_main_delegate.cc ('k') | ipc/ipc_channel_nacl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/BUILD.gn
diff --git a/ipc/BUILD.gn b/ipc/BUILD.gn
index 7c60bb18dd12e4a5eea9f0f9064acd8aab7509f0..b0a00acf2d4d187067114b43c3a5b02d334e1edf 100644
--- a/ipc/BUILD.gn
+++ b/ipc/BUILD.gn
@@ -2,11 +2,23 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/buildflag_header.gni")
import("//build/config/nacl/config.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//testing/test.gni")
import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
+declare_args() {
+ # Enabling debug builds automatically sets enable_ipc_logging to true.
+ enable_ipc_logging = is_debug
+}
+
+buildflag_header("ipc_features") {
+ header = "ipc_features.h"
+
+ flags = [ "IPC_MESSAGE_LOG_ENABLED=$enable_ipc_logging" ]
+}
+
component("ipc") {
sources = [
"export_template.h",
@@ -96,6 +108,7 @@ component("ipc") {
defines = [ "IPC_IMPLEMENTATION" ]
public_deps = [
+ ":ipc_features",
":mojom",
":param_traits",
"//mojo/public/cpp/bindings",
« no previous file with comments | « content/shell/app/shell_main_delegate.cc ('k') | ipc/ipc_channel_nacl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698