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/config/nacl/config.gni") |
5 import("//testing/test.gni") | 6 import("//testing/test.gni") |
6 | 7 |
7 component("ipc") { | 8 component("ipc") { |
8 sources = [ | 9 sources = [ |
9 "attachment_broker.cc", | 10 "attachment_broker.cc", |
10 "attachment_broker.h", | 11 "attachment_broker.h", |
11 "attachment_broker_messages.h", | 12 "attachment_broker_messages.h", |
12 "attachment_broker_privileged.cc", | 13 "attachment_broker_privileged.cc", |
13 "attachment_broker_privileged.h", | 14 "attachment_broker_privileged.h", |
14 "attachment_broker_privileged_mac.cc", | 15 "attachment_broker_privileged_mac.cc", |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 sources -= [ | 111 sources -= [ |
111 "ipc_channel_nacl.cc", | 112 "ipc_channel_nacl.cc", |
112 "ipc_channel_nacl.h", | 113 "ipc_channel_nacl.h", |
113 ] | 114 ] |
114 } | 115 } |
115 | 116 |
116 if (is_win || is_ios) { | 117 if (is_win || is_ios) { |
117 sources -= [ "unix_domain_socket_util.cc" ] | 118 sources -= [ "unix_domain_socket_util.cc" ] |
118 } | 119 } |
119 | 120 |
| 121 if (is_nacl_nonsfi) { |
| 122 sources -= [ |
| 123 "ipc_channel_nacl.cc", |
| 124 "ipc_channel_nacl.h", |
| 125 ] |
| 126 sources += [ |
| 127 "ipc_channel.cc", |
| 128 "ipc_channel_posix.cc", |
| 129 ] |
| 130 } |
| 131 |
120 defines = [ "IPC_IMPLEMENTATION" ] | 132 defines = [ "IPC_IMPLEMENTATION" ] |
121 | 133 |
122 deps = [ | 134 deps = [ |
123 "//base", | 135 "//base", |
124 | 136 |
125 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect. | 137 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect. |
126 "//base/third_party/dynamic_annotations", | 138 "//base/third_party/dynamic_annotations", |
127 ] | 139 ] |
128 | 140 |
129 if (is_win || is_mac) { | 141 if (is_win || is_mac) { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 "test_util_mac.cc", | 253 "test_util_mac.cc", |
242 "test_util_mac.h", | 254 "test_util_mac.h", |
243 ] | 255 ] |
244 deps = [ | 256 deps = [ |
245 ":ipc", | 257 ":ipc", |
246 "//base", | 258 "//base", |
247 "//base/test:test_support", | 259 "//base/test:test_support", |
248 "//testing/gtest", | 260 "//testing/gtest", |
249 ] | 261 ] |
250 } | 262 } |
OLD | NEW |