GN: Declare resources for targets.
Declare resources for GN targets so that they can be isolated
NOTRY=True
BUG=chromium:497757
Review-Url: https://codereview.webrtc.org/2340753002
Cr-Commit-Position: refs/heads/master@{#14210}
diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn
index ffaacd9..1cc5fd1 100644
--- a/webrtc/modules/audio_coding/BUILD.gn
+++ b/webrtc/modules/audio_coding/BUILD.gn
@@ -915,10 +915,8 @@
]
} # insert_packet_with_timing
- if (is_android || is_ios) {
- audio_decoder_unittests_resources =
- [ "//resources/audio_coding/testfile32kHz.pcm" ]
- }
+ audio_decoder_unittests_resources =
+ [ "//resources/audio_coding/testfile32kHz.pcm" ]
if (is_ios) {
bundle_data("audio_decoder_unittests_bundle_data") {
@@ -957,9 +955,10 @@
"//testing/gtest",
]
+ data = audio_decoder_unittests_resources
+
if (is_android) {
deps += [ "//testing/android/native_test:native_test_native_code" ]
- data = audio_decoder_unittests_resources
shard_timeout = 900
}
if (is_ios) {