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") | |
6 import("//build/config/nacl/config.gni") | 5 import("//build/config/nacl/config.gni") |
7 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
8 import("//testing/test.gni") | 7 import("//testing/test.gni") |
9 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") | 8 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") |
10 | 9 |
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 | |
22 component("ipc") { | 10 component("ipc") { |
23 sources = [ | 11 sources = [ |
24 "export_template.h", | 12 "export_template.h", |
25 "handle_attachment_win.cc", | 13 "handle_attachment_win.cc", |
26 "handle_attachment_win.h", | 14 "handle_attachment_win.h", |
27 "handle_win.cc", | 15 "handle_win.cc", |
28 "handle_win.h", | 16 "handle_win.h", |
29 "ipc_channel.cc", | 17 "ipc_channel.cc", |
30 "ipc_channel.h", | 18 "ipc_channel.h", |
31 "ipc_channel_common.cc", | 19 "ipc_channel_common.cc", |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } else { | 89 } else { |
102 sources -= [ | 90 sources -= [ |
103 "ipc_channel_nacl.cc", | 91 "ipc_channel_nacl.cc", |
104 "ipc_channel_nacl.h", | 92 "ipc_channel_nacl.h", |
105 ] | 93 ] |
106 } | 94 } |
107 | 95 |
108 defines = [ "IPC_IMPLEMENTATION" ] | 96 defines = [ "IPC_IMPLEMENTATION" ] |
109 | 97 |
110 public_deps = [ | 98 public_deps = [ |
111 ":ipc_features", | |
112 ":mojom", | 99 ":mojom", |
113 ":param_traits", | 100 ":param_traits", |
114 "//mojo/public/cpp/bindings", | 101 "//mojo/public/cpp/bindings", |
115 "//mojo/public/cpp/system", | 102 "//mojo/public/cpp/system", |
116 ] | 103 ] |
117 deps = [ | 104 deps = [ |
118 "//base", | 105 "//base", |
119 ] | 106 ] |
120 | 107 |
121 if (is_win || is_mac) { | 108 if (is_win || is_mac) { |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 ":ipc", | 234 ":ipc", |
248 ] | 235 ] |
249 deps = [ | 236 deps = [ |
250 "//base", | 237 "//base", |
251 "//base/test:test_support", | 238 "//base/test:test_support", |
252 "//mojo/edk/test:test_support", | 239 "//mojo/edk/test:test_support", |
253 "//testing/gtest", | 240 "//testing/gtest", |
254 ] | 241 ] |
255 } | 242 } |
256 } | 243 } |
OLD | NEW |