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") {
26 # ":libwebp_dsp_neon",
29 all_dependent_configs = [
34 source_set("libwebp_demux") {
38 all_dependent_configs = [
44 source_set("libwebp_dsp") {
53 "dsp/upsampling_sse2.c",
56 all_dependent_configs = [
61 deps += [ "//third_party/android_tools:cpu_features" ]
65 # ['order_profiling != 0', {
66 # 'target_conditions' : [
67 # ['_toolset=="target"', {
68 # 'cflags!': [ '-finstrument-functions' ],
77 # 'target_name': 'libwebp_dsp_neon',
79 # ['target_arch == "arm" and arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)', {
80 # 'type': 'static_library',
81 # 'include_dirs': ['.'],
85 # 'dsp/upsampling_neon.c',
87 # # behavior similar to *.c.neon in an Android.mk
88 # 'cflags!': [ '-mfpu=vfpv3-d16' ],
89 # 'cflags': [ '-mfpu=neon' ],
90 # },{ # "target_arch != "arm" or arm_version < 7"
93 # ['order_profiling != 0', {
94 # 'target_conditions' : [
95 # ['_toolset=="target"', {
96 # 'cflags!': [ '-finstrument-functions' ],
103 source_set("libwebp_enc") {
107 "enc/backward_references.c",
123 all_dependent_configs = [
128 source_set("libwebp_utils") {
130 "utils/alpha_processing.c",
131 "utils/bit_reader.c",
132 "utils/bit_writer.c",
133 "utils/color_cache.c",
136 "utils/huffman_encode.c",
137 "utils/quant_levels.c",
138 "utils/quant_levels_dec.c",
144 all_dependent_configs = [
155 # ":libwebp_dsp_neon",
159 direct_dependent_configs = [