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

Side by Side Diff: ipc/BUILD.gn

Issue 1501823003: Add //ui/* to "gn check" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « content/BUILD.gn ('k') | ui/accessibility/BUILD.gn » ('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 7
8 component("ipc") { 8 component("ipc") {
9 sources = [ 9 sources = [
10 "attachment_broker.cc", 10 "attachment_broker.cc",
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 "ipc_message_attachment.cc", 60 "ipc_message_attachment.cc",
61 "ipc_message_attachment.h", 61 "ipc_message_attachment.h",
62 "ipc_message_attachment_set.cc", 62 "ipc_message_attachment_set.cc",
63 "ipc_message_attachment_set.h", 63 "ipc_message_attachment_set.h",
64 "ipc_message_generator.cc", 64 "ipc_message_generator.cc",
65 "ipc_message_generator.h", 65 "ipc_message_generator.h",
66 "ipc_message_macros.h", 66 "ipc_message_macros.h",
67 "ipc_message_start.h", 67 "ipc_message_start.h",
68 "ipc_message_utils.cc", 68 "ipc_message_utils.cc",
69 "ipc_message_utils.h", 69 "ipc_message_utils.h",
70 "ipc_param_traits.h",
71 "ipc_platform_file.cc", 70 "ipc_platform_file.cc",
72 "ipc_platform_file.h", 71 "ipc_platform_file.h",
73 "ipc_platform_file_attachment_posix.cc", 72 "ipc_platform_file_attachment_posix.cc",
74 "ipc_platform_file_attachment_posix.h", 73 "ipc_platform_file_attachment_posix.h",
75 "ipc_sender.h", 74 "ipc_sender.h",
76 "ipc_switches.cc", 75 "ipc_switches.cc",
77 "ipc_switches.h", 76 "ipc_switches.h",
78 "ipc_sync_channel.cc", 77 "ipc_sync_channel.cc",
79 "ipc_sync_channel.h", 78 "ipc_sync_channel.h",
80 "ipc_sync_message.cc", 79 "ipc_sync_message.cc",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 "ipc_channel_nacl.h", 112 "ipc_channel_nacl.h",
114 ] 113 ]
115 } 114 }
116 115
117 if (is_win || is_ios || is_nacl_nonsfi) { 116 if (is_win || is_ios || is_nacl_nonsfi) {
118 sources -= [ "unix_domain_socket_util.cc" ] 117 sources -= [ "unix_domain_socket_util.cc" ]
119 } 118 }
120 119
121 defines = [ "IPC_IMPLEMENTATION" ] 120 defines = [ "IPC_IMPLEMENTATION" ]
122 121
122 public_deps = [
123 ":param_traits",
124 ]
123 deps = [ 125 deps = [
124 "//base", 126 "//base",
125 127
126 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect. 128 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect.
127 "//base/third_party/dynamic_annotations", 129 "//base/third_party/dynamic_annotations",
128 ] 130 ]
129 131
130 if (is_win || is_mac) { 132 if (is_win || is_mac) {
131 # On Windows HandleAttachmentWin needs to generate random IDs. 133 # On Windows HandleAttachmentWin needs to generate random IDs.
132 # On Mac MachPortAttachmentMac needs to generate random IDs. 134 # On Mac MachPortAttachmentMac needs to generate random IDs.
133 deps += [ "//crypto" ] 135 deps += [ "//crypto" ]
134 } 136 }
135 } 137 }
136 138
139 # This is provided as a separate target so other targets can provide param
140 # traits implementations without necessarily linking to all of IPC.
141 source_set("param_traits") {
142 public = [
143 "ipc_param_traits.h",
144 ]
145 }
146
137 group("ipc_tests_run") { 147 group("ipc_tests_run") {
138 testonly = true 148 testonly = true
139 deps = [ 149 deps = [
140 ":ipc_tests", 150 ":ipc_tests",
141 ] 151 ]
142 } 152 }
143 153
144 test("ipc_tests") { 154 test("ipc_tests") {
145 sources = [ 155 sources = [
146 "attachment_broker_mac_unittest.cc", 156 "attachment_broker_mac_unittest.cc",
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 "ipc_security_test_util.h", 242 "ipc_security_test_util.h",
233 "ipc_test_base.cc", 243 "ipc_test_base.cc",
234 "ipc_test_base.h", 244 "ipc_test_base.h",
235 "ipc_test_channel_listener.cc", 245 "ipc_test_channel_listener.cc",
236 "ipc_test_channel_listener.h", 246 "ipc_test_channel_listener.h",
237 "ipc_test_sink.cc", 247 "ipc_test_sink.cc",
238 "ipc_test_sink.h", 248 "ipc_test_sink.h",
239 "test_util_mac.cc", 249 "test_util_mac.cc",
240 "test_util_mac.h", 250 "test_util_mac.h",
241 ] 251 ]
252 public_deps = [
253 ":ipc",
254 ]
242 deps = [ 255 deps = [
243 ":ipc",
244 "//base", 256 "//base",
245 "//base/test:test_support", 257 "//base/test:test_support",
246 "//testing/gtest", 258 "//testing/gtest",
247 ] 259 ]
248 } 260 }
OLDNEW
« no previous file with comments | « content/BUILD.gn ('k') | ui/accessibility/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698