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

Side by Side Diff: ipc/BUILD.gn

Issue 227673008: Checkpoint work to get GN builds working on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge forward to 263376 Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « build/config/android/BUILD.gn ('k') | tools/gn/secondary/testing/gtest/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 component("ipc") { 5 component("ipc") {
6 sources = [ 6 sources = [
7 "file_descriptor_set_posix.cc", 7 "file_descriptor_set_posix.cc",
8 "file_descriptor_set_posix.h", 8 "file_descriptor_set_posix.h",
9 "ipc_channel.cc", 9 "ipc_channel.cc",
10 "ipc_channel.h", 10 "ipc_channel.h",
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 defines = [ "IPC_IMPLEMENTATION" ] 73 defines = [ "IPC_IMPLEMENTATION" ]
74 74
75 deps = [ 75 deps = [
76 "//base", 76 "//base",
77 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect. 77 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect.
78 "//base/third_party/dynamic_annotations", 78 "//base/third_party/dynamic_annotations",
79 ] 79 ]
80 } 80 }
81 81
82 test("ipc_tests") { 82 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android.
83 sources = [ 83 if (!is_android) {
84 "file_descriptor_set_posix_unittest.cc", 84 test("ipc_tests") {
85 "ipc_channel_posix_unittest.cc", 85 sources = [
86 "ipc_channel_unittest.cc", 86 "file_descriptor_set_posix_unittest.cc",
87 "ipc_fuzzing_tests.cc", 87 "ipc_channel_posix_unittest.cc",
88 "ipc_message_unittest.cc", 88 "ipc_channel_unittest.cc",
89 "ipc_message_utils_unittest.cc", 89 "ipc_fuzzing_tests.cc",
90 "ipc_send_fds_test.cc", 90 "ipc_message_unittest.cc",
91 "ipc_sync_channel_unittest.cc", 91 "ipc_message_utils_unittest.cc",
92 "ipc_sync_message_unittest.cc", 92 "ipc_send_fds_test.cc",
93 "ipc_sync_message_unittest.h", 93 "ipc_sync_channel_unittest.cc",
94 "ipc_test_base.cc", 94 "ipc_sync_message_unittest.cc",
95 "ipc_test_base.h", 95 "ipc_sync_message_unittest.h",
96 "sync_socket_unittest.cc", 96 "ipc_test_base.cc",
97 "unix_domain_socket_util_unittest.cc", 97 "ipc_test_base.h",
98 ] 98 "sync_socket_unittest.cc",
99 "unix_domain_socket_util_unittest.cc",
100 ]
99 101
100 if (is_win || is_ios) { 102 if (is_win || is_ios) {
101 sources -= [ "unix_domain_socket_util_unittest.cc" ] 103 sources -= [ "unix_domain_socket_util_unittest.cc" ]
104 }
105
106 # TODO(brettw) hook up Android testing.
107 #if (is_android && gtest_target_type == "shared_library") {
108 # deps += "/testing/android/native_test.gyp:native_testNative_code"
109 #}
110
111 # TODO(brettw) hook up tcmalloc to this target.
112 #if (is_posix && !is_mac && !is_android) {
113 # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
114 # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_ allocator=="see_use_tcmalloc" && linux_use_tcmalloc)) {
115 # deps += "/base/allocator"
116 # }
117 #}
118
119 deps = [
120 ":ipc",
121 ":test_support_ipc",
122 "//base",
123 "//base:i18n",
124 "//base/test:run_all_unittests",
125 "//base/test:test_support",
126 "//testing/gtest",
127 ]
102 } 128 }
103 129
104 # TODO(brettw) hook up Android testing. 130 test("ipc_perftests") {
105 #if (is_android && gtest_target_type == "shared_library") { 131 sources = [
106 # deps += "/testing/android/native_test.gyp:native_testNative_code" 132 "ipc_perftests.cc",
107 #} 133 "ipc_test_base.cc",
134 "ipc_test_base.h",
135 ]
108 136
109 # TODO(brettw) hook up tcmalloc to this target. 137 # TODO(brettw) hook up Android testing.
110 #if (is_posix && !is_mac && !is_android) { 138 #if (is_android && gtest_target_type == "shared_library") {
111 # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 139 # deps += "/testing/android/native_test.gyp:native_testNative_code"
112 # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_al locator=="see_use_tcmalloc" && linux_use_tcmalloc)) { 140 #}
113 # deps += "/base/allocator"
114 # }
115 #}
116 141
117 deps = [ 142 # TODO(brettw) hook up tcmalloc to this target.
118 ":ipc", 143 #if (is_posix && !is_mac && !is_android) {
119 ":test_support_ipc", 144 # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
120 "//base", 145 # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_ allocator=="see_use_tcmalloc" && linux_use_tcmalloc)) {
121 "//base:i18n", 146 # deps += "//base/allocator"
122 "//base/test:run_all_unittests", 147 # }
123 "//base/test:test_support", 148 #}
124 "//testing/gtest",
125 ]
126 }
127 149
128 test("ipc_perftests") { 150 deps = [
129 sources = [ 151 ":ipc",
130 "ipc_perftests.cc", 152 ":test_support_ipc",
131 "ipc_test_base.cc", 153 "//base",
132 "ipc_test_base.h", 154 "//base:i18n",
133 ] 155 "//base/test:test_support",
134 156 "//base/test:test_support_perf",
135 # TODO(brettw) hook up Android testing. 157 "//testing/gtest",
136 #if (is_android && gtest_target_type == "shared_library") { 158 ]
137 # deps += "/testing/android/native_test.gyp:native_testNative_code" 159 }
138 #}
139
140 # TODO(brettw) hook up tcmalloc to this target.
141 #if (is_posix && !is_mac && !is_android) {
142 # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
143 # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_al locator=="see_use_tcmalloc" && linux_use_tcmalloc)) {
144 # deps += "//base/allocator"
145 # }
146 #}
147
148 deps = [
149 ":ipc",
150 ":test_support_ipc",
151 "//base",
152 "//base:i18n",
153 "//base/test:test_support",
154 "//base/test:test_support_perf",
155 "//testing/gtest",
156 ]
157 } 160 }
158 161
159 static_library("test_support_ipc") { 162 static_library("test_support_ipc") {
160 sources = [ 163 sources = [
161 "ipc_multiprocess_test.cc", 164 "ipc_multiprocess_test.cc",
162 "ipc_multiprocess_test.h", 165 "ipc_multiprocess_test.h",
163 "ipc_test_sink.cc", 166 "ipc_test_sink.cc",
164 "ipc_test_sink.h", 167 "ipc_test_sink.h",
165 ] 168 ]
166 deps = [ 169 deps = [
167 ":ipc", 170 ":ipc",
168 "//base", 171 "//base",
169 "//testing/gtest", 172 "//testing/gtest",
170 ] 173 ]
171 } 174 }
172 175
OLDNEW
« no previous file with comments | « build/config/android/BUILD.gn ('k') | tools/gn/secondary/testing/gtest/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698