OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |