| 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("//build/config/nacl/config.gni") |
| 6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") | 8 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") |
| 9 | 9 |
| 10 component("ipc") { | 10 component("ipc") { |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 131 } |
| 132 | 132 |
| 133 if (is_win || is_nacl_nonsfi) { | 133 if (is_win || is_nacl_nonsfi) { |
| 134 sources -= [ "unix_domain_socket_util.cc" ] | 134 sources -= [ "unix_domain_socket_util.cc" ] |
| 135 } | 135 } |
| 136 | 136 |
| 137 defines = [ "IPC_IMPLEMENTATION" ] | 137 defines = [ "IPC_IMPLEMENTATION" ] |
| 138 | 138 |
| 139 public_deps = [ | 139 public_deps = [ |
| 140 ":param_traits", | 140 ":param_traits", |
| 141 "//mojo/common:event", |
| 141 "//mojo/public/cpp/bindings", | 142 "//mojo/public/cpp/bindings", |
| 142 "//mojo/public/cpp/system", | 143 "//mojo/public/cpp/system", |
| 143 ] | 144 ] |
| 144 deps = [ | 145 deps = [ |
| 145 ":mojom", | 146 ":mojom", |
| 146 "//base", | 147 "//base", |
| 147 ] | 148 ] |
| 148 | 149 |
| 149 if (is_win || is_mac) { | 150 if (is_win || is_mac) { |
| 150 # On Windows HandleAttachmentWin needs to generate random IDs. | 151 # On Windows HandleAttachmentWin needs to generate random IDs. |
| 151 # On Mac MachPortAttachmentMac needs to generate random IDs. | 152 # On Mac MachPortAttachmentMac needs to generate random IDs. |
| 152 deps += [ "//crypto" ] | 153 deps += [ "//crypto" ] |
| 153 } | 154 } |
| 154 | 155 |
| 155 if (enable_ipc_fuzzer) { | 156 if (enable_ipc_fuzzer) { |
| 156 public_configs = [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] | 157 public_configs = [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] |
| 157 } | 158 } |
| 158 } | 159 } |
| 159 | 160 |
| 160 mojom("mojom") { | 161 mojom("mojom") { |
| 161 sources = [ | 162 sources = [ |
| 162 "ipc.mojom", | 163 "ipc.mojom", |
| 163 ] | 164 ] |
| 165 |
| 166 public_deps = [ |
| 167 "//mojo/common:event", |
| 168 ] |
| 164 } | 169 } |
| 165 | 170 |
| 166 mojom("test_interfaces") { | 171 mojom("test_interfaces") { |
| 167 testonly = true | 172 testonly = true |
| 168 sources = [ | 173 sources = [ |
| 169 "ipc_test.mojom", | 174 "ipc_test.mojom", |
| 170 ] | 175 ] |
| 176 |
| 177 public_deps = [ |
| 178 "//mojo/common:event", |
| 179 ] |
| 171 } | 180 } |
| 172 | 181 |
| 173 # This is provided as a separate target so other targets can provide param | 182 # This is provided as a separate target so other targets can provide param |
| 174 # traits implementations without necessarily linking to all of IPC. | 183 # traits implementations without necessarily linking to all of IPC. |
| 175 source_set("param_traits") { | 184 source_set("param_traits") { |
| 176 public = [ | 185 public = [ |
| 177 "ipc_param_traits.h", | 186 "ipc_param_traits.h", |
| 178 ] | 187 ] |
| 179 } | 188 } |
| 180 | 189 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 ":ipc", | 299 ":ipc", |
| 291 ] | 300 ] |
| 292 deps = [ | 301 deps = [ |
| 293 "//base", | 302 "//base", |
| 294 "//base/test:test_support", | 303 "//base/test:test_support", |
| 295 "//mojo/edk/test:test_support", | 304 "//mojo/edk/test:test_support", |
| 296 "//testing/gtest", | 305 "//testing/gtest", |
| 297 ] | 306 ] |
| 298 } | 307 } |
| 299 } | 308 } |
| OLD | NEW |