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

Unified Diff: webrtc/tools/BUILD.gn

Issue 2292853002: GN: Fix resource files for iOS test target (Closed)
Patch Set: Moved declaration to before first use for Android Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/test/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/tools/BUILD.gn
diff --git a/webrtc/tools/BUILD.gn b/webrtc/tools/BUILD.gn
index fae82f622f127386aadc239bed29fede50bc4757..1a6379ba6aae7ffc327b53ef083e4df703f7000f 100644
--- a/webrtc/tools/BUILD.gn
+++ b/webrtc/tools/BUILD.gn
@@ -322,6 +322,20 @@ if (rtc_include_tests) {
]
}
+ if (is_android || is_ios) {
+ tools_unittests_resources = [ "//resources/foreman_cif_short.yuv" ]
kjellander_webrtc 2016/08/30 11:11:08 This was a mistake. I must have pasted the wrong l
+ }
+
+ if (is_ios) {
+ bundle_data("tools_unittests_bundle_data") {
+ testonly = true
+ sources = tools_unittests_resources
+ outputs = [
+ "{{bundle_resources_dir}}/{{source_file_part}}",
+ ]
+ }
+ }
+
test("tools_unittests") {
testonly = true
@@ -353,12 +367,11 @@ if (rtc_include_tests) {
if (is_android) {
deps += [ "//testing/android/native_test:native_test_support" ]
+ data = tools_unittests_resources
shard_timeout = 900
}
- if (is_android || is_ios) {
- data = [
- "//resources/foreman_cif.yuv",
- ]
+ if (is_ios) {
+ deps += [ ":tools_unittests_bundle_data" ]
}
}
« no previous file with comments | « webrtc/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698