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

Side by Side Diff: ipc/BUILD.gn

Issue 2770653002: Add enable_ipc_logging build argument (Closed)
Patch Set: Fix build of content_shell 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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("//build/buildflag_header.gni")
5 import("//build/config/nacl/config.gni") 6 import("//build/config/nacl/config.gni")
6 import("//mojo/public/tools/bindings/mojom.gni") 7 import("//mojo/public/tools/bindings/mojom.gni")
7 import("//testing/test.gni") 8 import("//testing/test.gni")
8 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") 9 import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
9 10
11 declare_args() {
12 # Enabling debug builds automatically sets enable_ipc_logging to true.
13 enable_ipc_logging = is_debug
14 }
15
16 buildflag_header("ipc_features") {
17 header = "ipc_features.h"
18
19 flags = [ "IPC_MESSAGE_LOG_ENABLED=$enable_ipc_logging" ]
20 }
21
10 component("ipc") { 22 component("ipc") {
11 sources = [ 23 sources = [
12 "export_template.h", 24 "export_template.h",
13 "handle_attachment_win.cc", 25 "handle_attachment_win.cc",
14 "handle_attachment_win.h", 26 "handle_attachment_win.h",
15 "handle_win.cc", 27 "handle_win.cc",
16 "handle_win.h", 28 "handle_win.h",
17 "ipc_channel.cc", 29 "ipc_channel.cc",
18 "ipc_channel.h", 30 "ipc_channel.h",
19 "ipc_channel_common.cc", 31 "ipc_channel_common.cc",
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } else { 103 } else {
92 sources -= [ 104 sources -= [
93 "ipc_channel_nacl.cc", 105 "ipc_channel_nacl.cc",
94 "ipc_channel_nacl.h", 106 "ipc_channel_nacl.h",
95 ] 107 ]
96 } 108 }
97 109
98 defines = [ "IPC_IMPLEMENTATION" ] 110 defines = [ "IPC_IMPLEMENTATION" ]
99 111
100 public_deps = [ 112 public_deps = [
113 ":ipc_features",
101 ":mojom", 114 ":mojom",
102 ":param_traits", 115 ":param_traits",
103 "//mojo/public/cpp/bindings", 116 "//mojo/public/cpp/bindings",
104 "//mojo/public/cpp/system", 117 "//mojo/public/cpp/system",
105 ] 118 ]
106 deps = [ 119 deps = [
107 "//base", 120 "//base",
108 ] 121 ]
109 122
110 if (is_win || is_mac) { 123 if (is_win || is_mac) {
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 ":ipc", 249 ":ipc",
237 ] 250 ]
238 deps = [ 251 deps = [
239 "//base", 252 "//base",
240 "//base/test:test_support", 253 "//base/test:test_support",
241 "//mojo/edk/test:test_support", 254 "//mojo/edk/test:test_support",
242 "//testing/gtest", 255 "//testing/gtest",
243 ] 256 ]
244 } 257 }
245 } 258 }
OLDNEW
« 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