OLD | NEW |
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 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 import("//build/config/features.gni") | 10 import("//build/config/features.gni") |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 configs = rtc_add_configs | 258 configs = rtc_add_configs |
259 suppressed_configs = [] | 259 suppressed_configs = [] |
260 } | 260 } |
261 | 261 |
262 template("rtc_test") { | 262 template("rtc_test") { |
263 test(target_name) { | 263 test(target_name) { |
264 forward_variables_from(invoker, | 264 forward_variables_from(invoker, |
265 "*", | 265 "*", |
266 [ | 266 [ |
267 "configs", | 267 "configs", |
268 "data", | |
269 "public_configs", | 268 "public_configs", |
270 "suppressed_configs", | 269 "suppressed_configs", |
271 ]) | 270 ]) |
272 configs += invoker.configs | 271 configs += invoker.configs |
273 configs -= rtc_remove_configs | 272 configs -= rtc_remove_configs |
274 configs -= invoker.suppressed_configs | 273 configs -= invoker.suppressed_configs |
275 public_configs = [ rtc_common_inherited_config ] | 274 public_configs = [ rtc_common_inherited_config ] |
276 if (defined(invoker.public_configs)) { | 275 if (defined(invoker.public_configs)) { |
277 public_configs += invoker.public_configs | 276 public_configs += invoker.public_configs |
278 } | 277 } |
279 data = [] | |
280 if (defined(invoker.data)) { | |
281 data += invoker.data | |
282 } | |
283 if (!build_with_chromium && is_android) { | 278 if (!build_with_chromium && is_android) { |
284 android_manifest = webrtc_root + "test/android/AndroidManifest.xml" | 279 android_manifest = webrtc_root + "test/android/AndroidManifest.xml" |
285 deps += [ webrtc_root + "test:native_test_java" ] | 280 deps += [ webrtc_root + "test:native_test_java" ] |
286 | |
287 # Needed for build/android/pylib/results/presentation/test_results_present
ation.py | |
288 data += [ "//build/android/pylib/results/" ] | |
289 } | 281 } |
290 } | 282 } |
291 } | 283 } |
292 | 284 |
293 template("rtc_source_set") { | 285 template("rtc_source_set") { |
294 source_set(target_name) { | 286 source_set(target_name) { |
295 forward_variables_from(invoker, | 287 forward_variables_from(invoker, |
296 "*", | 288 "*", |
297 [ | 289 [ |
298 "configs", | 290 "configs", |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 configs += invoker.configs | 382 configs += invoker.configs |
391 configs -= rtc_remove_configs | 383 configs -= rtc_remove_configs |
392 configs -= invoker.suppressed_configs | 384 configs -= invoker.suppressed_configs |
393 public_configs = [ rtc_common_inherited_config ] | 385 public_configs = [ rtc_common_inherited_config ] |
394 if (defined(invoker.public_configs)) { | 386 if (defined(invoker.public_configs)) { |
395 public_configs += invoker.public_configs | 387 public_configs += invoker.public_configs |
396 } | 388 } |
397 } | 389 } |
398 } | 390 } |
399 } | 391 } |
OLD | NEW |