| OLD | NEW |
| 1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 declare_args() { | 6 declare_args() { |
| 7 } | 7 } |
| 8 | 8 |
| 9 import("../third_party.gni") | 9 import("../third_party.gni") |
| 10 | 10 |
| 11 third_party("libwebp") { | 11 third_party("libwebp") { |
| 12 public_include_dirs = [ "../externals/libwebp/src" ] | 12 public_include_dirs = [ "../externals/libwebp/src" ] |
| 13 | 13 |
| 14 defines = [ |
| 15 # WebP naturally decodes to RGB_565, and we work with BGR_565. |
| 16 # This makes WebP decode to BGR_565 when we ask for RGB_565. |
| 17 # (It also swaps the color order for 4444, but we don't care today.) |
| 18 # TODO: swizzle ourself in SkWebpCodec instead of requiring this non-standar
d libwebp. |
| 19 "WEBP_SWAP_16BIT_CSP", |
| 20 ] |
| 21 |
| 14 sources = [ | 22 sources = [ |
| 15 "../externals/libwebp/src/dec/alpha.c", | 23 "../externals/libwebp/src/dec/alpha.c", |
| 16 "../externals/libwebp/src/dec/buffer.c", | 24 "../externals/libwebp/src/dec/buffer.c", |
| 17 "../externals/libwebp/src/dec/frame.c", | 25 "../externals/libwebp/src/dec/frame.c", |
| 18 "../externals/libwebp/src/dec/idec.c", | 26 "../externals/libwebp/src/dec/idec.c", |
| 19 "../externals/libwebp/src/dec/io.c", | 27 "../externals/libwebp/src/dec/io.c", |
| 20 "../externals/libwebp/src/dec/quant.c", | 28 "../externals/libwebp/src/dec/quant.c", |
| 21 "../externals/libwebp/src/dec/tree.c", | 29 "../externals/libwebp/src/dec/tree.c", |
| 22 "../externals/libwebp/src/dec/vp8.c", | 30 "../externals/libwebp/src/dec/vp8.c", |
| 23 "../externals/libwebp/src/dec/vp8l.c", | 31 "../externals/libwebp/src/dec/vp8l.c", |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 "../externals/libwebp/src/utils/huffman.c", | 88 "../externals/libwebp/src/utils/huffman.c", |
| 81 "../externals/libwebp/src/utils/huffman_encode.c", | 89 "../externals/libwebp/src/utils/huffman_encode.c", |
| 82 "../externals/libwebp/src/utils/quant_levels.c", | 90 "../externals/libwebp/src/utils/quant_levels.c", |
| 83 "../externals/libwebp/src/utils/quant_levels_dec.c", | 91 "../externals/libwebp/src/utils/quant_levels_dec.c", |
| 84 "../externals/libwebp/src/utils/random.c", | 92 "../externals/libwebp/src/utils/random.c", |
| 85 "../externals/libwebp/src/utils/rescaler.c", | 93 "../externals/libwebp/src/utils/rescaler.c", |
| 86 "../externals/libwebp/src/utils/thread.c", | 94 "../externals/libwebp/src/utils/thread.c", |
| 87 "../externals/libwebp/src/utils/utils.c", | 95 "../externals/libwebp/src/utils/utils.c", |
| 88 ] | 96 ] |
| 89 } | 97 } |
| OLD | NEW |