| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 } else { | 91 } else { |
| 92 sources -= [ | 92 sources -= [ |
| 93 "ipc_channel_nacl.cc", | 93 "ipc_channel_nacl.cc", |
| 94 "ipc_channel_nacl.h", | 94 "ipc_channel_nacl.h", |
| 95 ] | 95 ] |
| 96 } | 96 } |
| 97 | 97 |
| 98 defines = [ "IPC_IMPLEMENTATION" ] | 98 defines = [ "IPC_IMPLEMENTATION" ] |
| 99 | 99 |
| 100 public_deps = [ | 100 public_deps = [ |
| 101 ":mojom", |
| 101 ":param_traits", | 102 ":param_traits", |
| 102 "//mojo/public/cpp/bindings", | 103 "//mojo/public/cpp/bindings", |
| 103 "//mojo/public/cpp/system", | 104 "//mojo/public/cpp/system", |
| 104 ] | 105 ] |
| 105 deps = [ | 106 deps = [ |
| 106 ":mojom", | |
| 107 "//base", | 107 "//base", |
| 108 ] | 108 ] |
| 109 | 109 |
| 110 if (is_win || is_mac) { | 110 if (is_win || is_mac) { |
| 111 # On Windows HandleAttachmentWin needs to generate random IDs. | 111 # On Windows HandleAttachmentWin needs to generate random IDs. |
| 112 # On Mac MachPortAttachmentMac needs to generate random IDs. | 112 # On Mac MachPortAttachmentMac needs to generate random IDs. |
| 113 deps += [ "//crypto" ] | 113 deps += [ "//crypto" ] |
| 114 } | 114 } |
| 115 | 115 |
| 116 if (enable_ipc_fuzzer) { | 116 if (enable_ipc_fuzzer) { |
| 117 public_configs = [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] | 117 public_configs = [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] |
| 118 } | 118 } |
| 119 } | 119 } |
| 120 | 120 |
| 121 mojom("mojom") { | 121 mojom("mojom") { |
| 122 sources = [ | 122 sources = [ |
| 123 "ipc.mojom", | 123 "ipc.mojom", |
| 124 ] | 124 ] |
| 125 export_class_attribute = "IPC_EXPORT" |
| 126 export_define = "IPC_IMPLEMENTATION" |
| 127 export_header = "ipc/ipc_export.h" |
| 125 } | 128 } |
| 126 | 129 |
| 127 mojom("test_interfaces") { | 130 mojom("test_interfaces") { |
| 128 testonly = true | 131 testonly = true |
| 129 sources = [ | 132 sources = [ |
| 130 "ipc_test.mojom", | 133 "ipc_test.mojom", |
| 131 ] | 134 ] |
| 132 } | 135 } |
| 133 | 136 |
| 134 # This is provided as a separate target so other targets can provide param | 137 # This is provided as a separate target so other targets can provide param |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 "ipc_test_messages.h", | 176 "ipc_test_messages.h", |
| 174 "sync_socket_unittest.cc", | 177 "sync_socket_unittest.cc", |
| 175 ] | 178 ] |
| 176 | 179 |
| 177 if (!is_ios) { | 180 if (!is_ios) { |
| 178 sources += [ "ipc_send_fds_test.cc" ] | 181 sources += [ "ipc_send_fds_test.cc" ] |
| 179 } | 182 } |
| 180 | 183 |
| 181 deps = [ | 184 deps = [ |
| 182 ":ipc", | 185 ":ipc", |
| 183 ":mojom", | |
| 184 ":run_all_unittests", | 186 ":run_all_unittests", |
| 185 ":test_interfaces", | 187 ":test_interfaces", |
| 186 ":test_support", | 188 ":test_support", |
| 187 "//base", | 189 "//base", |
| 188 "//base:i18n", | 190 "//base:i18n", |
| 189 "//base/test:test_support", | 191 "//base/test:test_support", |
| 190 "//crypto", | 192 "//crypto", |
| 191 "//mojo/edk/system", | 193 "//mojo/edk/system", |
| 192 "//mojo/edk/test:test_support", | 194 "//mojo/edk/test:test_support", |
| 193 "//testing/gtest", | 195 "//testing/gtest", |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 ":ipc", | 236 ":ipc", |
| 235 ] | 237 ] |
| 236 deps = [ | 238 deps = [ |
| 237 "//base", | 239 "//base", |
| 238 "//base/test:test_support", | 240 "//base/test:test_support", |
| 239 "//mojo/edk/test:test_support", | 241 "//mojo/edk/test:test_support", |
| 240 "//testing/gtest", | 242 "//testing/gtest", |
| 241 ] | 243 ] |
| 242 } | 244 } |
| 243 } | 245 } |
| OLD | NEW |