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