Fix arm64 build of openH264

This commit is contained in:
csagan5 2020-02-06 21:48:31 +01:00
parent d8f9ffd695
commit afae804fdd

View file

@ -30,24 +30,6 @@ diff --git a/third_party/blink/renderer/modules/mediarecorder/h264_encoder.cc b/
diff --git a/third_party/openh264/BUILD.gn b/third_party/openh264/BUILD.gn
--- a/third_party/openh264/BUILD.gn
+++ b/third_party/openh264/BUILD.gn
@@ -16,11 +16,16 @@ config("config") {
# HAVE_NEON and __chromeos__ are needed for enabling NEON on ChromeOS
# devices.
defines += [
- "HAVE_NEON",
"__chromeos__",
]
}
+ if (target_cpu == "arm" || target_cpu == "arm64") {
+ defines += [
+ "HAVE_NEON",
+ ]
+ }
+
# GCC and clang flags. MSVS (is_win && !is_clang) does not use cflags.
if (!is_win || is_clang) {
cflags += [
@@ -125,8 +130,12 @@ if (use_assembler) {
source_set("common") {