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", |
268 "public_configs", | 269 "public_configs", |
269 "suppressed_configs", | 270 "suppressed_configs", |
270 ]) | 271 ]) |
271 configs += invoker.configs | 272 configs += invoker.configs |
272 configs -= rtc_remove_configs | 273 configs -= rtc_remove_configs |
273 configs -= invoker.suppressed_configs | 274 configs -= invoker.suppressed_configs |
274 public_configs = [ rtc_common_inherited_config ] | 275 public_configs = [ rtc_common_inherited_config ] |
275 if (defined(invoker.public_configs)) { | 276 if (defined(invoker.public_configs)) { |
276 public_configs += invoker.public_configs | 277 public_configs += invoker.public_configs |
277 } | 278 } |
| 279 data = [] |
| 280 if (defined(invoker.data)) { |
| 281 data += invoker.data |
| 282 } |
278 if (!build_with_chromium && is_android) { | 283 if (!build_with_chromium && is_android) { |
279 android_manifest = webrtc_root + "test/android/AndroidManifest.xml" | 284 android_manifest = webrtc_root + "test/android/AndroidManifest.xml" |
280 deps += [ webrtc_root + "test:native_test_java" ] | 285 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/" ] |
281 } | 289 } |
282 } | 290 } |
283 } | 291 } |
284 | 292 |
285 template("rtc_source_set") { | 293 template("rtc_source_set") { |
286 source_set(target_name) { | 294 source_set(target_name) { |
287 forward_variables_from(invoker, | 295 forward_variables_from(invoker, |
288 "*", | 296 "*", |
289 [ | 297 [ |
290 "configs", | 298 "configs", |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 configs += invoker.configs | 390 configs += invoker.configs |
383 configs -= rtc_remove_configs | 391 configs -= rtc_remove_configs |
384 configs -= invoker.suppressed_configs | 392 configs -= invoker.suppressed_configs |
385 public_configs = [ rtc_common_inherited_config ] | 393 public_configs = [ rtc_common_inherited_config ] |
386 if (defined(invoker.public_configs)) { | 394 if (defined(invoker.public_configs)) { |
387 public_configs += invoker.public_configs | 395 public_configs += invoker.public_configs |
388 } | 396 } |
389 } | 397 } |
390 } | 398 } |
391 } | 399 } |
OLD | NEW |