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

Side by Side Diff: ipc/BUILD.gn

Issue 877553008: Land prep work to enable NaCl in the Linux x64 GN builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yet more feedback Created 5 years, 10 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 | « extensions/shell/BUILD.gn ('k') | mojo/nacl/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("//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
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",
85 91
86 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect. 92 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect.
87 "//base/third_party/dynamic_annotations", 93 "//base/third_party/dynamic_annotations",
88 ] 94 ]
89 } 95 }
90 96
91 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. 97 # TODO(GYP): crbug.com/360936. Get this to build and run on Android.
92 if (!is_android) { 98 if (!is_android) {
93 test("ipc_tests") { 99 test("ipc_tests") {
94 sources = [ 100 sources = [
95 "ipc_channel_posix_unittest.cc", 101 "ipc_channel_posix_unittest.cc",
96 "ipc_channel_unittest.cc", 102 "ipc_channel_unittest.cc",
97 "ipc_fuzzing_tests.cc", 103 "ipc_fuzzing_tests.cc",
98 "ipc_message_attachment_set_posix_unittest.cc", 104 "ipc_message_attachment_set_posix_unittest.cc",
99 "ipc_message_unittest.cc", 105 "ipc_message_unittest.cc",
100 "ipc_message_utils_unittest.cc", 106 "ipc_message_utils_unittest.cc",
101 "ipc_send_fds_test.cc", 107 "ipc_send_fds_test.cc",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 #if (is_android && gtest_target_type == "shared_library") { 148 #if (is_android && gtest_target_type == "shared_library") {
143 # deps += "/testing/android/native_test.gyp:native_testNative_code" 149 # deps += "/testing/android/native_test.gyp:native_testNative_code"
144 #} 150 #}
145 151
146 # TODO(brettw) hook up tcmalloc to this target. 152 # TODO(brettw) hook up tcmalloc to this target.
147 #if (is_posix && !is_mac && !is_android) { 153 #if (is_posix && !is_mac && !is_android) {
148 # if (use_allocator!="none") { 154 # if (use_allocator!="none") {
149 # deps += "//base/allocator" 155 # deps += "//base/allocator"
150 # } 156 # }
151 #} 157 #}
152
153 deps = [ 158 deps = [
154 ":ipc", 159 ":ipc",
155 ":test_support", 160 ":test_support",
156 "//base", 161 "//base",
157 "//base:i18n", 162 "//base:i18n",
158 "//base/test:test_support", 163 "//base/test:test_support",
159 "//base/test:test_support_perf", 164 "//base/test:test_support_perf",
160 "//testing/gtest", 165 "//testing/gtest",
161 ] 166 ]
162 } 167 }
(...skipping 15 matching lines...) Expand all
178 "ipc_test_sink.cc", 183 "ipc_test_sink.cc",
179 "ipc_test_sink.h", 184 "ipc_test_sink.h",
180 ] 185 ]
181 deps = [ 186 deps = [
182 ":ipc", 187 ":ipc",
183 "//base", 188 "//base",
184 "//base/test:test_support", 189 "//base/test:test_support",
185 "//testing/gtest", 190 "//testing/gtest",
186 ] 191 ]
187 } 192 }
OLDNEW
« no previous file with comments | « extensions/shell/BUILD.gn ('k') | mojo/nacl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698