Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Side by Side Diff: ipc/BUILD.gn

Issue 2067233002: Revert of Use Mojo pipes to signal sync IPC events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/ipc/service/BUILD.gn ('k') | ipc/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//testing/test.gni") 6 import("//testing/test.gni")
7 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") 7 import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
8 8
9 component("ipc") { 9 component("ipc") {
10 sources = [ 10 sources = [
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 "mach_port_attachment_mac.cc", 87 "mach_port_attachment_mac.cc",
88 "mach_port_attachment_mac.h", 88 "mach_port_attachment_mac.h",
89 "mach_port_mac.cc", 89 "mach_port_mac.cc",
90 "mach_port_mac.h", 90 "mach_port_mac.h",
91 "message_filter.cc", 91 "message_filter.cc",
92 "message_filter.h", 92 "message_filter.h",
93 "message_filter_router.cc", 93 "message_filter_router.cc",
94 "message_filter_router.h", 94 "message_filter_router.h",
95 "message_router.cc", 95 "message_router.cc",
96 "message_router.h", 96 "message_router.h",
97 "mojo_event.cc",
98 "mojo_event.h",
99 "param_traits_log_macros.h", 97 "param_traits_log_macros.h",
100 "param_traits_macros.h", 98 "param_traits_macros.h",
101 "param_traits_read_macros.h", 99 "param_traits_read_macros.h",
102 "param_traits_write_macros.h", 100 "param_traits_write_macros.h",
103 "placeholder_brokerable_attachment.cc", 101 "placeholder_brokerable_attachment.cc",
104 "placeholder_brokerable_attachment.h", 102 "placeholder_brokerable_attachment.h",
105 "struct_constructor_macros.h", 103 "struct_constructor_macros.h",
106 "struct_destructor_macros.h", 104 "struct_destructor_macros.h",
107 "unix_domain_socket_util.cc", 105 "unix_domain_socket_util.cc",
108 "unix_domain_socket_util.h", 106 "unix_domain_socket_util.h",
(...skipping 13 matching lines...) Expand all
122 } 120 }
123 121
124 if (is_win || is_nacl_nonsfi) { 122 if (is_win || is_nacl_nonsfi) {
125 sources -= [ "unix_domain_socket_util.cc" ] 123 sources -= [ "unix_domain_socket_util.cc" ]
126 } 124 }
127 125
128 defines = [ "IPC_IMPLEMENTATION" ] 126 defines = [ "IPC_IMPLEMENTATION" ]
129 127
130 public_deps = [ 128 public_deps = [
131 ":param_traits", 129 ":param_traits",
132 "//mojo/public/cpp/system",
133 ] 130 ]
134 deps = [ 131 deps = [
135 "//base", 132 "//base",
136 133
137 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect. 134 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect.
138 "//base/third_party/dynamic_annotations", 135 "//base/third_party/dynamic_annotations",
139 "//mojo/public/cpp/bindings",
140 ] 136 ]
141 137
142 if (is_win || is_mac) { 138 if (is_win || is_mac) {
143 # On Windows HandleAttachmentWin needs to generate random IDs. 139 # On Windows HandleAttachmentWin needs to generate random IDs.
144 # On Mac MachPortAttachmentMac needs to generate random IDs. 140 # On Mac MachPortAttachmentMac needs to generate random IDs.
145 deps += [ "//crypto" ] 141 deps += [ "//crypto" ]
146 } 142 }
147 143
148 if (enable_ipc_fuzzer) { 144 if (enable_ipc_fuzzer) {
149 public_configs = [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] 145 public_configs = [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ]
150 } 146 }
151 } 147 }
152 148
153 # This is provided as a separate target so other targets can provide param 149 # This is provided as a separate target so other targets can provide param
154 # traits implementations without necessarily linking to all of IPC. 150 # traits implementations without necessarily linking to all of IPC.
155 source_set("param_traits") { 151 source_set("param_traits") {
156 public = [ 152 public = [
157 "ipc_param_traits.h", 153 "ipc_param_traits.h",
158 ] 154 ]
159 } 155 }
160 156
161 if (!is_ios) { 157 if (!is_ios) {
162 source_set("run_all_unittests") {
163 testonly = true
164
165 sources = [
166 "run_all_unittests.cc",
167 ]
168
169 deps = [
170 "//base",
171 "//base/test:test_support",
172 "//mojo/edk/system",
173 ]
174 }
175
176 test("ipc_tests") { 158 test("ipc_tests") {
177 sources = [ 159 sources = [
178 "attachment_broker_mac_unittest.cc", 160 "attachment_broker_mac_unittest.cc",
179 "attachment_broker_privileged_mac_unittest.cc", 161 "attachment_broker_privileged_mac_unittest.cc",
180 "attachment_broker_privileged_win_unittest.cc", 162 "attachment_broker_privileged_win_unittest.cc",
181 "ipc_channel_posix_unittest.cc", 163 "ipc_channel_posix_unittest.cc",
182 "ipc_channel_proxy_unittest.cc", 164 "ipc_channel_proxy_unittest.cc",
183 "ipc_channel_reader_unittest.cc", 165 "ipc_channel_reader_unittest.cc",
184 "ipc_fuzzing_tests.cc", 166 "ipc_fuzzing_tests.cc",
185 "ipc_message_attachment_set_posix_unittest.cc", 167 "ipc_message_attachment_set_posix_unittest.cc",
186 "ipc_message_unittest.cc", 168 "ipc_message_unittest.cc",
187 "ipc_message_utils_unittest.cc", 169 "ipc_message_utils_unittest.cc",
188 "ipc_sync_channel_unittest.cc", 170 "ipc_sync_channel_unittest.cc",
189 "ipc_sync_message_unittest.cc", 171 "ipc_sync_message_unittest.cc",
190 "ipc_sync_message_unittest.h", 172 "ipc_sync_message_unittest.h",
191 "ipc_test_message_generator.cc", 173 "ipc_test_message_generator.cc",
192 "ipc_test_message_generator.h", 174 "ipc_test_message_generator.h",
193 "ipc_test_messages.h", 175 "ipc_test_messages.h",
176 "run_all_unittests.cc",
194 "sync_socket_unittest.cc", 177 "sync_socket_unittest.cc",
195 ] 178 ]
196 179
197 if (!is_win && !is_ios) { 180 if (!is_win && !is_ios) {
198 sources += [ "unix_domain_socket_util_unittest.cc" ] 181 sources += [ "unix_domain_socket_util_unittest.cc" ]
199 } 182 }
200 183
201 if (!is_android) { 184 if (!is_android) {
202 sources += [ "ipc_channel_unittest.cc" ] 185 sources += [ "ipc_channel_unittest.cc" ]
203 } 186 }
204 187
205 if (!is_ios) { 188 if (!is_ios) {
206 sources += [ "ipc_send_fds_test.cc" ] 189 sources += [ "ipc_send_fds_test.cc" ]
207 } 190 }
208 191
209 # TODO(brettw) hook up Android testing. 192 # TODO(brettw) hook up Android testing.
210 #if (is_android && gtest_target_type == "shared_library") { 193 #if (is_android && gtest_target_type == "shared_library") {
211 # deps += "/testing/android/native_test.gyp:native_testNative_code" 194 # deps += "/testing/android/native_test.gyp:native_testNative_code"
212 #} 195 #}
213 196
214 deps = [ 197 deps = [
215 ":ipc", 198 ":ipc",
216 ":run_all_unittests",
217 ":test_support", 199 ":test_support",
218 "//base", 200 "//base",
219 "//base:i18n", 201 "//base:i18n",
220 "//base/test:test_support", 202 "//base/test:test_support",
221 "//crypto", 203 "//crypto",
222 "//testing/gtest", 204 "//testing/gtest",
223 ] 205 ]
224 206
225 if (is_mac) { 207 if (is_mac) {
226 deps += [ "//sandbox/mac:seatbelt" ] 208 deps += [ "//sandbox/mac:seatbelt" ]
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 public_deps = [ 251 public_deps = [
270 ":ipc", 252 ":ipc",
271 ] 253 ]
272 deps = [ 254 deps = [
273 "//base", 255 "//base",
274 "//base/test:test_support", 256 "//base/test:test_support",
275 "//testing/gtest", 257 "//testing/gtest",
276 ] 258 ]
277 } 259 }
278 } 260 }
OLDNEW
« no previous file with comments | « gpu/ipc/service/BUILD.gn ('k') | ipc/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698