| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 config("libwebp_config") { | 5 config("libwebp_config") { |
| 6 include_dirs = [ "." ] | 6 include_dirs = [ "." ] |
| 7 } | 7 } |
| 8 | 8 |
| 9 source_set("libwebp_dec") { | 9 source_set("libwebp_dec") { |
| 10 sources = [ | 10 sources = [ |
| 11 "dec/alpha.c", | 11 "dec/alpha.c", |
| 12 "dec/buffer.c", | 12 "dec/buffer.c", |
| 13 "dec/frame.c", | 13 "dec/frame.c", |
| 14 "dec/idec.c", | 14 "dec/idec.c", |
| 15 "dec/io.c", | 15 "dec/io.c", |
| 16 "dec/layer.c", | 16 "dec/layer.c", |
| 17 "dec/quant.c", | 17 "dec/quant.c", |
| 18 "dec/tree.c", | 18 "dec/tree.c", |
| 19 "dec/vp8.c", | 19 "dec/vp8.c", |
| 20 "dec/vp8l.c", | 20 "dec/vp8l.c", |
| 21 "dec/webp.c", | 21 "dec/webp.c", |
| 22 ] | 22 ] |
| 23 |
| 24 configs -= [ "//build/config/compiler:chromium_code" ] |
| 25 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 26 |
| 23 deps = [ | 27 deps = [ |
| 24 ":libwebp_dsp", | 28 ":libwebp_dsp", |
| 25 # TODO(GYP): | 29 # TODO(GYP): |
| 26 # ":libwebp_dsp_neon", | 30 # ":libwebp_dsp_neon", |
| 27 ":libwebp_utils", | 31 ":libwebp_utils", |
| 28 ] | 32 ] |
| 29 all_dependent_configs = [ | 33 all_dependent_configs = [ |
| 30 ":libwebp_config" | 34 ":libwebp_config" |
| 31 ] | 35 ] |
| 32 } | 36 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 46 "dsp/cpu.c", | 50 "dsp/cpu.c", |
| 47 "dsp/dec.c", | 51 "dsp/dec.c", |
| 48 "dsp/dec_sse2.c", | 52 "dsp/dec_sse2.c", |
| 49 "dsp/enc.c", | 53 "dsp/enc.c", |
| 50 "dsp/enc_sse2.c", | 54 "dsp/enc_sse2.c", |
| 51 "dsp/lossless.c", | 55 "dsp/lossless.c", |
| 52 "dsp/upsampling.c", | 56 "dsp/upsampling.c", |
| 53 "dsp/upsampling_sse2.c", | 57 "dsp/upsampling_sse2.c", |
| 54 "dsp/yuv.c", | 58 "dsp/yuv.c", |
| 55 ] | 59 ] |
| 60 configs -= [ "//build/config/compiler:chromium_code" ] |
| 61 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 62 |
| 56 all_dependent_configs = [ | 63 all_dependent_configs = [ |
| 57 ":libwebp_config" | 64 ":libwebp_config" |
| 58 ] | 65 ] |
| 59 deps = [] | 66 deps = [] |
| 60 if (is_android) { | 67 if (is_android) { |
| 61 deps += [ "//third_party/android_tools:cpu_features" ] | 68 deps += [ "//third_party/android_tools:cpu_features" ] |
| 62 } | 69 } |
| 63 # TODO(GYP): | 70 # TODO(GYP): |
| 64 # 'conditions': [ | 71 # 'conditions': [ |
| 65 # ['order_profiling != 0', { | 72 # ['order_profiling != 0', { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 "enc/iterator.c", | 120 "enc/iterator.c", |
| 114 "enc/layer.c", | 121 "enc/layer.c", |
| 115 "enc/picture.c", | 122 "enc/picture.c", |
| 116 "enc/quant.c", | 123 "enc/quant.c", |
| 117 "enc/syntax.c", | 124 "enc/syntax.c", |
| 118 "enc/token.c", | 125 "enc/token.c", |
| 119 "enc/tree.c", | 126 "enc/tree.c", |
| 120 "enc/vp8l.c", | 127 "enc/vp8l.c", |
| 121 "enc/webpenc.c", | 128 "enc/webpenc.c", |
| 122 ] | 129 ] |
| 130 configs -= [ "//build/config/compiler:chromium_code" ] |
| 131 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 132 |
| 123 all_dependent_configs = [ | 133 all_dependent_configs = [ |
| 124 ":libwebp_config" | 134 ":libwebp_config" |
| 125 ] | 135 ] |
| 126 } | 136 } |
| 127 | 137 |
| 128 source_set("libwebp_utils") { | 138 source_set("libwebp_utils") { |
| 129 sources = [ | 139 sources = [ |
| 130 "utils/alpha_processing.c", | 140 "utils/alpha_processing.c", |
| 131 "utils/bit_reader.c", | 141 "utils/bit_reader.c", |
| 132 "utils/bit_writer.c", | 142 "utils/bit_writer.c", |
| 133 "utils/color_cache.c", | 143 "utils/color_cache.c", |
| 134 "utils/filters.c", | 144 "utils/filters.c", |
| 135 "utils/huffman.c", | 145 "utils/huffman.c", |
| 136 "utils/huffman_encode.c", | 146 "utils/huffman_encode.c", |
| 137 "utils/quant_levels.c", | 147 "utils/quant_levels.c", |
| 138 "utils/quant_levels_dec.c", | 148 "utils/quant_levels_dec.c", |
| 139 "utils/random.c", | 149 "utils/random.c", |
| 140 "utils/rescaler.c", | 150 "utils/rescaler.c", |
| 141 "utils/thread.c", | 151 "utils/thread.c", |
| 142 "utils/utils.c", | 152 "utils/utils.c", |
| 143 ] | 153 ] |
| 154 configs -= [ "//build/config/compiler:chromium_code" ] |
| 155 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 156 |
| 144 all_dependent_configs = [ | 157 all_dependent_configs = [ |
| 145 ":libwebp_config" | 158 ":libwebp_config" |
| 146 ] | 159 ] |
| 147 } | 160 } |
| 148 | 161 |
| 149 group("libwebp") { | 162 group("libwebp") { |
| 150 deps = [ | 163 deps = [ |
| 151 ":libwebp_dec", | 164 ":libwebp_dec", |
| 152 ":libwebp_demux", | 165 ":libwebp_demux", |
| 153 ":libwebp_dsp", | 166 ":libwebp_dsp", |
| 154 # TODO(GYP): | 167 # TODO(GYP): |
| 155 # ":libwebp_dsp_neon", | 168 # ":libwebp_dsp_neon", |
| 156 ":libwebp_enc", | 169 ":libwebp_enc", |
| 157 ":libwebp_utils", | 170 ":libwebp_utils", |
| 158 ] | 171 ] |
| 159 direct_dependent_configs = [ | 172 direct_dependent_configs = [ |
| 160 ":libwebp_config" | 173 ":libwebp_config" |
| 161 ] | 174 ] |
| 162 } | 175 } |
| OLD | NEW |