Disable WebRTC for ARM based CPUs

PiperOrigin-RevId: 495707681
This commit is contained in:
Nick Bourdakos
2022-12-15 15:15:00 -08:00
committed by Copybara-Service
parent 38d6317274
commit 682813388f
6 changed files with 133 additions and 33 deletions
+12
View File
@@ -65,6 +65,12 @@ cc_library(
"wifi_hotspot.h",
"wifi_lan.h",
],
copts = select({
"@platforms//cpu:arm": [
"-DNO_WEBRTC",
],
"//conditions:default": [],
}),
defines = ["NO_WEBRTC"],
visibility = [
"//connections/implementation:__subpackages__",
@@ -92,6 +98,12 @@ cc_library(
hdrs = [
"platform.h",
],
copts = select({
"@platforms//cpu:arm": [
"-DNO_WEBRTC",
],
"//conditions:default": [],
}),
defines = ["NO_WEBRTC"],
visibility = [
"//connections/implementation:__subpackages__",
@@ -42,6 +42,12 @@ objc_library(
"utils.h",
"wifi_lan.h",
],
copts = select({
"@platforms//cpu:arm": [
"-DNO_WEBRTC",
],
"//conditions:default": [],
}),
features = ["-layering_check"],
deps = [
":Platform_cc",