From 7e70291bb714f0b4e075238cffd3401ae275e813 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Thu, 7 Mar 2019 17:42:19 +0100 Subject: [PATCH] Fix unscoped variable in test/scenario/BUILD.gn. GN complains when this BUILD.gn file is pulled in and both is_ios and rtc_include_tests are false. Bug: None Change-Id: Ic637063a9dd25feb53595eeedfa4f22061ba34f2 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/126231 Reviewed-by: Artem Titov Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#27025} --- test/scenario/BUILD.gn | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/test/scenario/BUILD.gn b/test/scenario/BUILD.gn index e38748d19b..849dddcc29 100644 --- a/test/scenario/BUILD.gn +++ b/test/scenario/BUILD.gn @@ -21,13 +21,15 @@ rtc_source_set("column_printer") { ] } -scenario_resources = [ - "../../resources/difficult_photo_1850_1110.yuv", - "../../resources/photo_1850_1110.yuv", - "../../resources/presentation_1850_1110.yuv", - "../../resources/web_screenshot_1850_1110.yuv", -] -scenario_unittest_resources = [ "../../resources/foreman_cif.yuv" ] +if (is_ios || rtc_include_tests) { + scenario_resources = [ + "../../resources/difficult_photo_1850_1110.yuv", + "../../resources/photo_1850_1110.yuv", + "../../resources/presentation_1850_1110.yuv", + "../../resources/web_screenshot_1850_1110.yuv", + ] + scenario_unittest_resources = [ "../../resources/foreman_cif.yuv" ] +} if (is_ios) { bundle_data("scenario_resources_bundle_data") {