Commit 637ffa5c authored by Jerome Jiang's avatar Jerome Jiang Committed by Chromium LUCI CQ

Enable libaom by default.

Except ChromeOS and Android.

Change-Id: I54acfaa74f5df5799c1709a2004d34fb9a27e60d
Bug: 1095763
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2617229
Commit-Queue: Jerome Jiang <jianj@google.com>
Reviewed-by: default avatarJames Zern <jzern@google.com>
Cr-Commit-Position: refs/heads/master@{#845508}
parent 9d6b0dd8
......@@ -90,8 +90,9 @@ if (enable_libaom) {
# via global function pointer symbols, which hides the object dependency at
# link time. On Mac, this results in undefined references to the intrinsic
# symbols.
source_set("libaom_intrinsics_sse2") {
# TODO(jianj): Align this with libvpx as this is not used there.
check_includes = false
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [ ":libaom_config" ]
......@@ -105,6 +106,7 @@ if (enable_libaom) {
}
source_set("libaom_intrinsics_sse3") {
check_includes = false
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [ ":libaom_config" ]
......@@ -115,6 +117,7 @@ if (enable_libaom) {
}
source_set("libaom_intrinsics_ssse3") {
check_includes = false
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [ ":libaom_config" ]
......@@ -127,6 +130,7 @@ if (enable_libaom) {
}
source_set("libaom_intrinsics_sse4_1") {
check_includes = false
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [ ":libaom_config" ]
......@@ -140,6 +144,7 @@ if (enable_libaom) {
}
source_set("libaom_intrinsics_sse4_2") {
check_includes = false
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [ ":libaom_config" ]
......@@ -150,6 +155,7 @@ if (enable_libaom) {
}
source_set("libaom_intrinsics_avx") {
check_includes = false
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [ ":libaom_config" ]
......@@ -162,6 +168,7 @@ if (enable_libaom) {
}
source_set("libaom_intrinsics_avx2") {
check_includes = false
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [ ":libaom_config" ]
......@@ -180,6 +187,7 @@ if (enable_libaom) {
if (current_cpu == "arm64" || cpu_arch_full == "arm-neon" ||
cpu_arch_full == "arm-neon-cpu-detect") {
source_set("libaom_intrinsics_neon") {
check_includes = false
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
if (current_cpu == "arm") {
......@@ -206,6 +214,7 @@ if (enable_libaom) {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [ ":libaom_config" ]
sources = aom_av1_common_sources
sources += aom_av1_decoder_sources
sources += aom_dsp_common_sources
......
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/gclient_args.gni")
declare_args() {
# Enable encoding and decoding AV1 video files.
enable_libaom = false
enable_libaom = !is_chromeos_ash && !is_android
# To be deprecated soon.
enable_libaom_decoder = false
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment