1 # Copyright (c) 2012 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.
10 'dsp/lossless_neon.c',
11 'dsp/upsampling_neon.c',
16 'target_name': 'libwebp_dec',
17 'type': 'static_library',
23 'include_dirs': ['.'],
38 'target_name': 'libwebp_demux',
39 'type': 'static_library',
40 'include_dirs': ['.'],
46 'target_name': 'libwebp_dsp',
47 'type': 'static_library',
48 'include_dirs': ['.'],
50 'dsp/alpha_processing.c',
51 'dsp/alpha_processing_sse2.c',
54 'dsp/dec_clip_tables.c',
62 'dsp/lossless_mips32.c',
63 'dsp/lossless_sse2.c',
65 'dsp/upsampling_sse2.c',
72 'includes': [ '../../build/android/cpufeatures.gypi' ],
74 ['order_profiling != 0', {
75 'target_conditions' : [
76 ['_toolset=="target"', {
77 '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 # behavior similar to *.c.neon in an Android.mk
93 'cflags!': [ '-mfpu=vfpv3-d16' ],
94 'cflags': [ '-mfpu=neon' ],
97 ['target_arch == "arm64"', {
98 'type': 'static_library',
99 'include_dirs': ['.'],
103 # avoid an ICE with gcc-4.9: b/15574841
104 'cflags': [ '-frename-registers' ],
105 },{ # "target_arch != "arm|arm64" or arm_version < 7"
110 ['order_profiling != 0', {
111 'target_conditions' : [
112 ['_toolset=="target"', {
113 'cflags!': [ '-finstrument-functions' ],
120 'target_name': 'libwebp_enc',
121 'type': 'static_library',
122 'include_dirs': ['.'],
126 'enc/backward_references.c',
135 'enc/picture_psnr.c',
136 'enc/picture_rescale.c',
137 'enc/picture_tools.c',
147 'target_name': 'libwebp_utils',
148 'type': 'static_library',
149 'include_dirs': ['.'],
151 'utils/bit_reader.c',
152 'utils/bit_writer.c',
153 'utils/color_cache.c',
156 'utils/huffman_encode.c',
157 'utils/quant_levels.c',
158 'utils/quant_levels_dec.c',
166 'target_name': 'libwebp',
176 'direct_dependent_settings': {
177 'include_dirs': ['.'],
180 ['OS!="win"', {'product_name': 'webp'}],