Index: third_party/libwebp/BUILD.gn |
diff --git a/third_party/libwebp/BUILD.gn b/third_party/libwebp/BUILD.gn |
index 7f7901e75400ace5bacf11a92378fe74f20ef99b..ec51cd3b381470b3d9b9704163acac772dfca7d7 100644 |
--- a/third_party/libwebp/BUILD.gn |
+++ b/third_party/libwebp/BUILD.gn |
@@ -11,6 +11,12 @@ import("../third_party.gni") |
third_party("libwebp") { |
public_include_dirs = [ "../externals/libwebp/src" ] |
+ if (is_android) { |
+ deps = [ |
+ "//third_party/cpu-features", |
+ ] |
+ } |
+ |
defines = [ |
# WebP naturally decodes to RGB_565, and we work with BGR_565. |
# This makes WebP decode to BGR_565 when we ask for RGB_565. |
@@ -32,39 +38,56 @@ third_party("libwebp") { |
"../externals/libwebp/src/dec/webp.c", |
"../externals/libwebp/src/demux/demux.c", |
"../externals/libwebp/src/dsp/alpha_processing.c", |
+ "../externals/libwebp/src/dsp/alpha_processing_mips_dsp_r2.c", |
"../externals/libwebp/src/dsp/alpha_processing_sse2.c", |
"../externals/libwebp/src/dsp/alpha_processing_sse41.c", |
"../externals/libwebp/src/dsp/argb.c", |
+ "../externals/libwebp/src/dsp/argb_mips_dsp_r2.c", |
"../externals/libwebp/src/dsp/argb_sse2.c", |
"../externals/libwebp/src/dsp/cost.c", |
+ "../externals/libwebp/src/dsp/cost_mips32.c", |
+ "../externals/libwebp/src/dsp/cost_mips_dsp_r2.c", |
"../externals/libwebp/src/dsp/cost_sse2.c", |
"../externals/libwebp/src/dsp/cpu.c", |
"../externals/libwebp/src/dsp/dec.c", |
"../externals/libwebp/src/dsp/dec_clip_tables.c", |
+ "../externals/libwebp/src/dsp/dec_mips32.c", |
+ "../externals/libwebp/src/dsp/dec_mips_dsp_r2.c", |
"../externals/libwebp/src/dsp/dec_neon.c", |
"../externals/libwebp/src/dsp/dec_sse2.c", |
"../externals/libwebp/src/dsp/dec_sse41.c", |
"../externals/libwebp/src/dsp/enc.c", |
"../externals/libwebp/src/dsp/enc_avx2.c", |
+ "../externals/libwebp/src/dsp/enc_mips32.c", |
+ "../externals/libwebp/src/dsp/enc_mips_dsp_r2.c", |
"../externals/libwebp/src/dsp/enc_neon.c", |
"../externals/libwebp/src/dsp/enc_sse2.c", |
"../externals/libwebp/src/dsp/enc_sse41.c", |
"../externals/libwebp/src/dsp/filters.c", |
+ "../externals/libwebp/src/dsp/filters_mips_dsp_r2.c", |
"../externals/libwebp/src/dsp/filters_sse2.c", |
"../externals/libwebp/src/dsp/lossless.c", |
"../externals/libwebp/src/dsp/lossless_enc.c", |
+ "../externals/libwebp/src/dsp/lossless_enc_mips32.c", |
+ "../externals/libwebp/src/dsp/lossless_enc_mips_dsp_r2.c", |
"../externals/libwebp/src/dsp/lossless_enc_neon.c", |
"../externals/libwebp/src/dsp/lossless_enc_sse2.c", |
"../externals/libwebp/src/dsp/lossless_enc_sse41.c", |
+ "../externals/libwebp/src/dsp/lossless_mips_dsp_r2.c", |
"../externals/libwebp/src/dsp/lossless_neon.c", |
"../externals/libwebp/src/dsp/lossless_sse2.c", |
"../externals/libwebp/src/dsp/rescaler.c", |
+ "../externals/libwebp/src/dsp/rescaler_mips32.c", |
+ "../externals/libwebp/src/dsp/rescaler_mips_dsp_r2.c", |
"../externals/libwebp/src/dsp/rescaler_neon.c", |
"../externals/libwebp/src/dsp/rescaler_sse2.c", |
"../externals/libwebp/src/dsp/upsampling.c", |
+ "../externals/libwebp/src/dsp/upsampling_mips_dsp_r2.c", |
"../externals/libwebp/src/dsp/upsampling_neon.c", |
"../externals/libwebp/src/dsp/upsampling_sse2.c", |
"../externals/libwebp/src/dsp/yuv.c", |
+ "../externals/libwebp/src/dsp/yuv_mips32.c", |
+ "../externals/libwebp/src/dsp/yuv_mips_dsp_r2.c", |
"../externals/libwebp/src/dsp/yuv_sse2.c", |
"../externals/libwebp/src/enc/alpha.c", |
"../externals/libwebp/src/enc/analysis.c", |