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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 | 6 |
7 component("ipc") { | 7 component("ipc") { |
8 sources = [ | 8 sources = [ |
9 "ipc_channel.cc", | 9 "ipc_channel.cc", |
10 "ipc_channel.h", | 10 "ipc_channel.h", |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 "param_traits_log_macros.h", | 60 "param_traits_log_macros.h", |
61 "param_traits_macros.h", | 61 "param_traits_macros.h", |
62 "param_traits_read_macros.h", | 62 "param_traits_read_macros.h", |
63 "param_traits_write_macros.h", | 63 "param_traits_write_macros.h", |
64 "struct_constructor_macros.h", | 64 "struct_constructor_macros.h", |
65 "struct_destructor_macros.h", | 65 "struct_destructor_macros.h", |
66 "unix_domain_socket_util.cc", | 66 "unix_domain_socket_util.cc", |
67 "unix_domain_socket_util.h", | 67 "unix_domain_socket_util.h", |
68 ] | 68 ] |
69 | 69 |
70 if (!is_nacl) { | 70 if (is_nacl) { |
| 71 sources -= [ |
| 72 "ipc_channel.cc", |
| 73 "ipc_channel_posix.cc", |
| 74 "unix_domain_socket_util.cc", |
| 75 ] |
| 76 } else { |
71 sources -= [ | 77 sources -= [ |
72 "ipc_channel_nacl.cc", | 78 "ipc_channel_nacl.cc", |
73 "ipc_channel_nacl.h", | 79 "ipc_channel_nacl.h", |
74 ] | 80 ] |
75 } | 81 } |
76 | 82 |
77 if (is_win || is_ios) { | 83 if (is_win || is_ios) { |
78 sources -= [ "unix_domain_socket_util.cc" ] | 84 sources -= [ "unix_domain_socket_util.cc" ] |
79 } | 85 } |
80 | 86 |
81 defines = [ "IPC_IMPLEMENTATION" ] | 87 defines = [ "IPC_IMPLEMENTATION" ] |
82 | 88 |
83 deps = [ | 89 deps = [ |
84 "//base", | 90 "//base", |
| 91 ] |
85 | 92 |
86 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect. | 93 if (!is_nacl) { |
87 "//base/third_party/dynamic_annotations", | 94 deps += [ |
88 ] | 95 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect. |
| 96 "//base/third_party/dynamic_annotations", |
| 97 ] |
| 98 } |
89 } | 99 } |
90 | 100 |
91 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. | 101 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. |
92 if (!is_android) { | 102 if (!is_android) { |
93 test("ipc_tests") { | 103 test("ipc_tests") { |
94 sources = [ | 104 sources = [ |
95 "ipc_channel_posix_unittest.cc", | 105 "ipc_channel_posix_unittest.cc", |
96 "ipc_channel_unittest.cc", | 106 "ipc_channel_unittest.cc", |
97 "ipc_fuzzing_tests.cc", | 107 "ipc_fuzzing_tests.cc", |
98 "ipc_message_attachment_set_posix_unittest.cc", | 108 "ipc_message_attachment_set_posix_unittest.cc", |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 #if (is_android && gtest_target_type == "shared_library") { | 152 #if (is_android && gtest_target_type == "shared_library") { |
143 # deps += "/testing/android/native_test.gyp:native_testNative_code" | 153 # deps += "/testing/android/native_test.gyp:native_testNative_code" |
144 #} | 154 #} |
145 | 155 |
146 # TODO(brettw) hook up tcmalloc to this target. | 156 # TODO(brettw) hook up tcmalloc to this target. |
147 #if (is_posix && !is_mac && !is_android) { | 157 #if (is_posix && !is_mac && !is_android) { |
148 # if (use_allocator!="none") { | 158 # if (use_allocator!="none") { |
149 # deps += "//base/allocator" | 159 # deps += "//base/allocator" |
150 # } | 160 # } |
151 #} | 161 #} |
152 | |
153 deps = [ | 162 deps = [ |
154 ":ipc", | 163 ":ipc", |
155 ":test_support", | 164 ":test_support", |
156 "//base", | 165 "//base", |
157 "//base:i18n", | 166 "//base:i18n", |
158 "//base/test:test_support", | 167 "//base/test:test_support", |
159 "//base/test:test_support_perf", | 168 "//base/test:test_support_perf", |
160 "//testing/gtest", | 169 "//testing/gtest", |
161 ] | 170 ] |
162 } | 171 } |
(...skipping 14 matching lines...) Expand all Loading... |
177 "ipc_test_channel_listener.h", | 186 "ipc_test_channel_listener.h", |
178 "ipc_test_sink.cc", | 187 "ipc_test_sink.cc", |
179 "ipc_test_sink.h", | 188 "ipc_test_sink.h", |
180 ] | 189 ] |
181 deps = [ | 190 deps = [ |
182 ":ipc", | 191 ":ipc", |
183 "//base", | 192 "//base", |
184 "//testing/gtest", | 193 "//testing/gtest", |
185 ] | 194 ] |
186 } | 195 } |
OLD | NEW |