From 128afb1a7ec4ad63dab684ad46102d2f1c242db4 Mon Sep 17 00:00:00 2001 From: Jeremy Leconte Date: Wed, 11 Jan 2023 10:55:35 +0100 Subject: [PATCH] Only build fuchsia_perf_tests on fuchsia os. This is to fix android compilation failure on CQ: https://ci.chromium.org/ui/p/webrtc/builders/try/android_compile_arm64_rel/51046/overview Change-Id: If40d95761b40d2d322b00d01d31eb18d31fac02d Bug: None Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/290843 Reviewed-by: Christoffer Jansson Reviewed-by: Mirko Bonadei Commit-Queue: Jeremy Leconte Cr-Commit-Position: refs/heads/main@{#39065} --- BUILD.gn | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index da094e1591..6d6f793930 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -47,7 +47,6 @@ if (!build_with_chromium) { } if (rtc_include_tests) { deps += [ - ":fuchsia_perf_tests", ":rtc_unittests", ":video_engine_tests", ":voip_unittests", @@ -110,6 +109,9 @@ if (!build_with_chromium) { if ((is_linux || is_chromeos) && rtc_use_pipewire) { deps += [ "modules/desktop_capture:shared_screencast_stream_test" ] } + if (is_fuchsia) { + deps += [ ":fuchsia_perf_tests" ] + } } if (target_os == "android") { deps += [ "tools_webrtc:binary_version_check" ] @@ -724,20 +726,22 @@ if (rtc_include_tests && !build_with_chromium) { } } - rtc_test("fuchsia_perf_tests") { - testonly = true - deps = [ - #TODO(fxbug.dev/115601) - Enable when fixed - #"call:call_perf_tests", - #"video:video_pc_full_stack_tests", - "modules/audio_coding:audio_coding_perf_tests", - "modules/audio_processing:audio_processing_perf_tests", - "pc:peerconnection_perf_tests", - "test:test_main", - "video:video_full_stack_tests", - ] + if (is_fuchsia) { + rtc_test("fuchsia_perf_tests") { + testonly = true + deps = [ + #TODO(fxbug.dev/115601) - Enable when fixed + #"call:call_perf_tests", + #"video:video_pc_full_stack_tests", + "modules/audio_coding:audio_coding_perf_tests", + "modules/audio_processing:audio_processing_perf_tests", + "pc:peerconnection_perf_tests", + "test:test_main", + "video:video_full_stack_tests", + ] - data = webrtc_perf_tests_resources + data = webrtc_perf_tests_resources + } } rtc_test("webrtc_nonparallel_tests") {