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.
8 'target_name': 'libwebp_dec',
9 'type': 'static_library',
15 'include_dirs': ['.'],
30 'target_name': 'libwebp_demux',
31 'type': 'static_library',
32 'include_dirs': ['.'],
38 'target_name': 'libwebp_dsp',
39 'type': 'static_library',
40 'include_dirs': ['.'],
42 'dsp/alpha_processing.c',
43 'dsp/alpha_processing_sse2.c',
46 'dsp/dec_clip_tables.c',
54 'dsp/lossless_mips32.c',
55 'dsp/lossless_sse2.c',
57 'dsp/upsampling_sse2.c',
64 'dependencies': [ '../../build/android/ndk.gyp:cpu_features' ],
66 ['order_profiling != 0', {
67 'target_conditions' : [
68 ['_toolset=="target"', {
69 'cflags!': [ '-finstrument-functions' ],
76 'target_name': 'libwebp_dsp_neon',
78 # Disable LTO due to Neon issues.
80 '../../build/android/disable_lto.gypi',
83 # iOS uses the same project to generate build project for both device
84 # and simulator and do not use "target_arch" variable. Other platform
86 ['OS == "ios" or (target_arch == "arm" and arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)) or (target_arch == "arm64")', {
87 'type': 'static_library',
88 'include_dirs': ['.'],
92 'dsp/lossless_neon.c',
93 'dsp/upsampling_neon.c',
96 ['target_arch == "arm" and arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)', {
97 # behavior similar to *.c.neon in an Android.mk
98 'cflags!': [ '-mfpu=vfpv3-d16' ],
99 'cflags': [ '-mfpu=neon' ],
101 ['target_arch == "arm64"', {
102 # avoid an ICE with gcc-4.9: b/15574841
103 'cflags': [ '-frename-registers' ],
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'}],