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 <jansson@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Jeremy Leconte <jleconte@google.com>
Cr-Commit-Position: refs/heads/main@{#39065}
diff --git a/BUILD.gn b/BUILD.gn
index da094e1..6d6f793 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -47,7 +47,6 @@
     }
     if (rtc_include_tests) {
       deps += [
-        ":fuchsia_perf_tests",
         ":rtc_unittests",
         ":video_engine_tests",
         ":voip_unittests",
@@ -110,6 +109,9 @@
       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 @@
     }
   }
 
-  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") {