Fix mac build

Change-Id: Ib43573742e7217d6e2f2e6629cb0f24ec68dc432
diff --git a/BUILD.gn b/BUILD.gn
index 1d4b663..f5b3da4 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -34,15 +34,19 @@
   ]
   if (!build_with_chromium) {
     deps += [
-      ":perfetto",
-      ":perfetto_benchmarks",
-      ":perfetto_integrationtests",
-      ":traced",
-      ":traced_probes",
       "protos/perfetto/config:merged_config",  # For syntax-checking the proto.
       "test/configs",
       "tools:protoc_helper",
     ]
+    if (is_linux || is_android) {
+      deps += [
+        ":perfetto",
+        ":perfetto_benchmarks",
+        ":perfetto_integrationtests",
+        ":traced",
+        ":traced_probes",
+      ]
+    }
   }
 }
 
@@ -63,7 +67,7 @@
   }
 }
 
-if (!build_with_chromium) {
+if (!build_with_chromium && (is_linux || is_android)) {
   executable("perfetto_benchmarks") {
     testonly = true
     deps = [