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

Side by Side 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 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } else { 101 } else {
90 sources -= [ 102 sources -= [
91 "ipc_channel_nacl.cc", 103 "ipc_channel_nacl.cc",
92 "ipc_channel_nacl.h", 104 "ipc_channel_nacl.h",
93 ] 105 ]
94 } 106 }
95 107
96 defines = [ "IPC_IMPLEMENTATION" ] 108 defines = [ "IPC_IMPLEMENTATION" ]
97 109
98 public_deps = [ 110 public_deps = [
111 ":ipc_features",
99 ":mojom", 112 ":mojom",
100 ":param_traits", 113 ":param_traits",
101 "//mojo/public/cpp/bindings", 114 "//mojo/public/cpp/bindings",
102 "//mojo/public/cpp/system", 115 "//mojo/public/cpp/system",
103 ] 116 ]
104 deps = [ 117 deps = [
105 "//base", 118 "//base",
106 ] 119 ]
107 120
108 if (is_win || is_mac) { 121 if (is_win || is_mac) {
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 ":ipc", 247 ":ipc",
235 ] 248 ]
236 deps = [ 249 deps = [
237 "//base", 250 "//base",
238 "//base/test:test_support", 251 "//base/test:test_support",
239 "//mojo/edk/test:test_support", 252 "//mojo/edk/test:test_support",
240 "//testing/gtest", 253 "//testing/gtest",
241 ] 254 ]
242 } 255 }
243 } 256 }
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