| 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 import("//build/config/arm.gni") | 5 import("//build/config/arm.gni") |
| 6 | 6 |
| 7 config("libwebp_config") { | 7 config("libwebp_config") { |
| 8 include_dirs = [ "." ] | 8 include_dirs = [ "." ] |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 configs -= [ "//build/config/compiler:chromium_code" ] | 155 configs -= [ "//build/config/compiler:chromium_code" ] |
| 156 configs += [ "//build/config/compiler:no_chromium_code" ] | 156 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 157 | 157 |
| 158 all_dependent_configs = [ ":libwebp_config" ] | 158 all_dependent_configs = [ ":libwebp_config" ] |
| 159 | 159 |
| 160 deps = [ | 160 deps = [ |
| 161 ":libwebp_utils", | 161 ":libwebp_utils", |
| 162 ] | 162 ] |
| 163 } | 163 } |
| 164 | 164 |
| 165 config("libwebp_utils_warnings") { | |
| 166 if (is_clang) { | |
| 167 # See https://code.google.com/p/webp/issues/detail?id=253. | |
| 168 cflags = [ "-Wno-incompatible-pointer-types" ] | |
| 169 } | |
| 170 } | |
| 171 | |
| 172 source_set("libwebp_utils") { | 165 source_set("libwebp_utils") { |
| 173 sources = [ | 166 sources = [ |
| 174 "utils/bit_reader.c", | 167 "utils/bit_reader.c", |
| 175 "utils/bit_writer.c", | 168 "utils/bit_writer.c", |
| 176 "utils/color_cache.c", | 169 "utils/color_cache.c", |
| 177 "utils/filters.c", | 170 "utils/filters.c", |
| 178 "utils/huffman.c", | 171 "utils/huffman.c", |
| 179 "utils/huffman_encode.c", | 172 "utils/huffman_encode.c", |
| 180 "utils/quant_levels.c", | 173 "utils/quant_levels.c", |
| 181 "utils/quant_levels_dec.c", | 174 "utils/quant_levels_dec.c", |
| 182 "utils/random.c", | 175 "utils/random.c", |
| 183 "utils/rescaler.c", | 176 "utils/rescaler.c", |
| 184 "utils/thread.c", | 177 "utils/thread.c", |
| 185 "utils/utils.c", | 178 "utils/utils.c", |
| 186 ] | 179 ] |
| 187 configs -= [ "//build/config/compiler:chromium_code" ] | 180 configs -= [ "//build/config/compiler:chromium_code" ] |
| 188 configs += [ "//build/config/compiler:no_chromium_code" ] | 181 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 189 | 182 |
| 190 all_dependent_configs = [ ":libwebp_config" ] | 183 all_dependent_configs = [ ":libwebp_config" ] |
| 191 | 184 |
| 185 config("libwebp_utils_warnings") { |
| 186 if (is_clang) { |
| 187 # See https://code.google.com/p/webp/issues/detail?id=253. |
| 188 cflags = [ "-Wno-incompatible-pointer-types" ] |
| 189 } |
| 190 } |
| 192 public_configs = [ ":libwebp_utils_warnings" ] | 191 public_configs = [ ":libwebp_utils_warnings" ] |
| 193 } | 192 } |
| 194 | 193 |
| 195 group("libwebp") { | 194 group("libwebp") { |
| 196 deps = [ | 195 deps = [ |
| 197 ":libwebp_dec", | 196 ":libwebp_dec", |
| 198 ":libwebp_demux", | 197 ":libwebp_demux", |
| 199 ":libwebp_dsp", | 198 ":libwebp_dsp", |
| 200 ":libwebp_enc", | 199 ":libwebp_enc", |
| 201 ":libwebp_utils", | 200 ":libwebp_utils", |
| 202 ] | 201 ] |
| 203 public_configs = [ ":libwebp_config" ] | 202 public_configs = [ ":libwebp_config" ] |
| 204 if (use_dsp_neon) { | 203 if (use_dsp_neon) { |
| 205 deps += [ ":libwebp_dsp_neon" ] | 204 deps += [ ":libwebp_dsp_neon" ] |
| 206 } | 205 } |
| 207 } | 206 } |
| OLD | NEW |