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': ['.'],
41 'target_name': 'libwebp_dsp',
42 'type': 'static_library',
43 'include_dirs': ['.'],
45 'dsp/alpha_processing.c',
46 'dsp/alpha_processing_sse2.c',
49 'dsp/dec_clip_tables.c',
57 'dsp/lossless_mips32.c',
58 'dsp/lossless_sse2.c',
60 'dsp/upsampling_sse2.c',
70 'dependencies': [ '../../build/android/ndk.gyp:cpu_features' ],
72 ['order_profiling != 0', {
73 'target_conditions' : [
74 ['_toolset=="target"', {
75 'cflags!': [ '-finstrument-functions' ],
82 'target_name': 'libwebp_dsp_neon',
84 # Disable LTO due to Neon issues.
86 '../../build/android/disable_lto.gypi',
89 # iOS uses the same project to generate build project for both device
90 # and simulator and do not use "target_arch" variable. Other platform
92 ['OS == "ios" or (target_arch == "arm" and arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)) or (target_arch == "arm64")', {
93 'type': 'static_library',
94 'include_dirs': ['.'],
98 'dsp/lossless_neon.c',
99 'dsp/upsampling_neon.c',
102 ['target_arch == "arm" and arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)', {
103 # behavior similar to *.c.neon in an Android.mk
104 'cflags!': [ '-mfpu=vfpv3-d16' ],
105 'cflags': [ '-mfpu=neon' ],
107 ['target_arch == "arm64"', {
108 # avoid an ICE with gcc-4.9: b/15574841
109 'cflags': [ '-frename-registers' ],
115 ['order_profiling != 0', {
116 'target_conditions' : [
117 ['_toolset=="target"', {
118 'cflags!': [ '-finstrument-functions' ],
125 'target_name': 'libwebp_enc',
126 'type': 'static_library',
127 'include_dirs': ['.'],
131 'enc/backward_references.c',
140 'enc/picture_psnr.c',
141 'enc/picture_rescale.c',
142 'enc/picture_tools.c',
155 'target_name': 'libwebp_utils',
156 'type': 'static_library',
157 'include_dirs': ['.'],
159 'utils/bit_reader.c',
160 'utils/bit_writer.c',
161 'utils/color_cache.c',
164 'utils/huffman_encode.c',
165 'utils/quant_levels.c',
166 'utils/quant_levels_dec.c',
173 'clang_warning_flags': [
174 # See https://code.google.com/p/webp/issues/detail?id=253.
175 '-Wno-incompatible-pointer-types',
178 'direct_dependent_settings': {
180 'clang_warning_flags': [
181 # See https://code.google.com/p/webp/issues/detail?id=253.
182 '-Wno-incompatible-pointer-types',
188 'target_name': 'libwebp',
198 'direct_dependent_settings': {
199 'include_dirs': ['.'],
202 ['OS!="win"', {'product_name': 'webp'}],