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
3 # found in the LICENSE file.
5 config("libwebp_config") {
9 source_set("libwebp_dec") {
24 configs -= [ "//build/config/compiler:chromium_code" ]
25 configs += [ "//build/config/compiler:no_chromium_code" ]
30 # ":libwebp_dsp_neon",
33 all_dependent_configs = [
38 source_set("libwebp_demux") {
42 all_dependent_configs = [
48 source_set("libwebp_dsp") {
57 "dsp/upsampling_sse2.c",
60 configs -= [ "//build/config/compiler:chromium_code" ]
61 configs += [ "//build/config/compiler:no_chromium_code" ]
63 all_dependent_configs = [
68 deps += [ "//third_party/android_tools:cpu_features" ]
72 # ['order_profiling != 0', {
73 # 'target_conditions' : [
74 # ['_toolset=="target"', {
75 # 'cflags!': [ '-finstrument-functions' ],
84 # 'target_name': 'libwebp_dsp_neon',
86 # ['target_arch == "arm" and arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)', {
87 # 'type': 'static_library',
88 # 'include_dirs': ['.'],
92 # 'dsp/upsampling_neon.c',
94 # # behavior similar to *.c.neon in an Android.mk
95 # 'cflags!': [ '-mfpu=vfpv3-d16' ],
96 # 'cflags': [ '-mfpu=neon' ],
97 # },{ # "target_arch != "arm" or arm_version < 7"
100 # ['order_profiling != 0', {
101 # 'target_conditions' : [
102 # ['_toolset=="target"', {
103 # 'cflags!': [ '-finstrument-functions' ],
110 source_set("libwebp_enc") {
114 "enc/backward_references.c",
130 configs -= [ "//build/config/compiler:chromium_code" ]
131 configs += [ "//build/config/compiler:no_chromium_code" ]
133 all_dependent_configs = [
138 source_set("libwebp_utils") {
140 "utils/alpha_processing.c",
141 "utils/bit_reader.c",
142 "utils/bit_writer.c",
143 "utils/color_cache.c",
146 "utils/huffman_encode.c",
147 "utils/quant_levels.c",
148 "utils/quant_levels_dec.c",
154 configs -= [ "//build/config/compiler:chromium_code" ]
155 configs += [ "//build/config/compiler:no_chromium_code" ]
157 all_dependent_configs = [
168 # ":libwebp_dsp_neon",
172 direct_dependent_configs = [