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',
53 'dsp/dec_clip_tables.c',
61 'dsp/lossless_mips32.c',
62 'dsp/lossless_sse2.c',
64 'dsp/upsampling_sse2.c',
71 'includes': [ '../../build/android/cpufeatures.gypi' ],
73 ['order_profiling != 0', {
74 'target_conditions' : [
75 ['_toolset=="target"', {
76 'cflags!': [ '-finstrument-functions' ],
83 'target_name': 'libwebp_dsp_neon',
85 ['target_arch == "arm" and arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)', {
86 'type': 'static_library',
87 'include_dirs': ['.'],
91 # behavior similar to *.c.neon in an Android.mk
92 'cflags!': [ '-mfpu=vfpv3-d16' ],
93 'cflags': [ '-mfpu=neon' ],
96 ['target_arch == "arm64"', {
97 'type': 'static_library',
98 'include_dirs': ['.'],
102 # avoid an ICE with gcc-4.9: b/15574841
103 'cflags': [ '-frename-registers' ],
104 },{ # "target_arch != "arm|arm64" or arm_version < 7"
109 ['order_profiling != 0', {
110 'target_conditions' : [
111 ['_toolset=="target"', {
112 'cflags!': [ '-finstrument-functions' ],
119 'target_name': 'libwebp_enc',
120 'type': 'static_library',
121 'include_dirs': ['.'],
125 'enc/backward_references.c',
134 'enc/picture_psnr.c',
135 'enc/picture_rescale.c',
136 'enc/picture_tools.c',
146 'target_name': 'libwebp_utils',
147 'type': 'static_library',
148 'include_dirs': ['.'],
150 'utils/bit_reader.c',
151 'utils/bit_writer.c',
152 'utils/color_cache.c',
155 'utils/huffman_encode.c',
156 'utils/quant_levels.c',
157 'utils/quant_levels_dec.c',
165 'target_name': 'libwebp',
175 'direct_dependent_settings': {
176 'include_dirs': ['.'],
179 ['OS!="win"', {'product_name': 'webp'}],