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

Side by Side Diff: webrtc/system_wrappers/BUILD.gn

Issue 2038493002: GN: Exclude tools and tests in Chromium builds. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.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 | « no previous file | webrtc/tools/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) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/config.gni") 10 import("//build/config/android/config.gni")
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 source_set("cpu_features_linux") { 186 source_set("cpu_features_linux") {
187 sources = [ 187 sources = [
188 "source/cpu_features_linux.c", 188 "source/cpu_features_linux.c",
189 ] 189 ]
190 190
191 configs += [ "..:common_config" ] 191 configs += [ "..:common_config" ]
192 public_configs = [ "..:common_inherited_config" ] 192 public_configs = [ "..:common_inherited_config" ]
193 } 193 }
194 } 194 }
195 195
196 test("system_wrappers_unittests") { 196 # There's no point processing WebRTC standalone tests in a Chromium build.
197 testonly = true 197 if (!build_with_chromium) {
198 sources = [ 198 test("system_wrappers_unittests") {
199 "source/aligned_array_unittest.cc", 199 testonly = true
200 "source/aligned_malloc_unittest.cc", 200 sources = [
201 "source/clock_unittest.cc", 201 "source/aligned_array_unittest.cc",
202 "source/condition_variable_unittest.cc", 202 "source/aligned_malloc_unittest.cc",
203 "source/critical_section_unittest.cc", 203 "source/clock_unittest.cc",
204 "source/data_log_c_helpers_unittest.c", 204 "source/condition_variable_unittest.cc",
205 "source/data_log_c_helpers_unittest.h", 205 "source/critical_section_unittest.cc",
206 "source/data_log_helpers_unittest.cc", 206 "source/data_log_c_helpers_unittest.c",
207 "source/event_timer_posix_unittest.cc", 207 "source/data_log_c_helpers_unittest.h",
208 "source/logging_unittest.cc", 208 "source/data_log_helpers_unittest.cc",
209 "source/metrics_default_unittest.cc", 209 "source/event_timer_posix_unittest.cc",
210 "source/metrics_unittest.cc", 210 "source/logging_unittest.cc",
211 "source/ntp_time_unittest.cc", 211 "source/metrics_default_unittest.cc",
212 "source/rtp_to_ntp_unittest.cc", 212 "source/metrics_unittest.cc",
213 "source/stl_util_unittest.cc", 213 "source/ntp_time_unittest.cc",
214 "source/stringize_macros_unittest.cc", 214 "source/rtp_to_ntp_unittest.cc",
215 ] 215 "source/stl_util_unittest.cc",
216 if (rtc_enable_data_logging) { 216 "source/stringize_macros_unittest.cc",
217 sources += [
218 "source/data_log_unittest.cc",
219 "source/data_log_unittest_disabled.cc",
220 ] 217 ]
221 } 218 if (rtc_enable_data_logging) {
219 sources += [
220 "source/data_log_unittest.cc",
221 "source/data_log_unittest_disabled.cc",
222 ]
223 }
222 224
223 configs += [ "..:common_config" ] 225 configs += [ "..:common_config" ]
224 public_configs = [ "..:common_inherited_config" ] 226 public_configs = [ "..:common_inherited_config" ]
225 227
226 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 228 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
227 229
228 if (is_clang) { 230 if (is_clang) {
229 # Suppress warnings from Chrome's Clang plugins. 231 # Suppress warnings from Chrome's Clang plugins.
230 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 232 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
231 configs -= [ "//build/config/clang:find_bad_constructs" ] 233 configs -= [ "//build/config/clang:find_bad_constructs" ]
232 } 234 }
233 235
234 deps = [ 236 deps = [
235 ":metrics_default", 237 ":metrics_default",
236 ":system_wrappers", 238 ":system_wrappers",
237 "../test:test_support_main", 239 "../test:test_support_main",
238 "//testing/gtest", 240 "//testing/gtest",
239 ] 241 ]
240 242
241 if (is_android) { 243 if (is_android) {
242 deps += [ "//testing/android/native_test:native_test_support" ] 244 deps += [ "//testing/android/native_test:native_test_support" ]
245 }
243 } 246 }
244 } 247 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/tools/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698