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 ['skia_android_framework == 1', {
9 'use_system_libwebp': 1,
11 'use_system_libwebp%': 0,
16 ['use_system_libwebp==0', {
19 'target_name': 'libwebp_dec',
20 'type': 'static_library',
22 '../third_party/externals/libwebp',
25 '../third_party/externals/libwebp/src/dec/alpha.c',
26 '../third_party/externals/libwebp/src/dec/buffer.c',
27 '../third_party/externals/libwebp/src/dec/frame.c',
28 '../third_party/externals/libwebp/src/dec/idec.c',
29 '../third_party/externals/libwebp/src/dec/io.c',
30 '../third_party/externals/libwebp/src/dec/layer.c',
31 '../third_party/externals/libwebp/src/dec/quant.c',
32 '../third_party/externals/libwebp/src/dec/tree.c',
33 '../third_party/externals/libwebp/src/dec/vp8.c',
34 '../third_party/externals/libwebp/src/dec/vp8l.c',
35 '../third_party/externals/libwebp/src/dec/webp.c',
39 'target_name': 'libwebp_demux',
40 'type': 'static_library',
42 '../third_party/externals/libwebp',
45 '../third_party/externals/libwebp/src/demux/demux.c',
49 'target_name': 'libwebp_dsp',
50 'type': 'static_library',
52 '../third_party/externals/libwebp',
55 '../third_party/externals/libwebp/src/dsp/cpu.c',
56 '../third_party/externals/libwebp/src/dsp/dec.c',
57 '../third_party/externals/libwebp/src/dsp/dec_sse2.c',
58 '../third_party/externals/libwebp/src/dsp/enc.c',
59 '../third_party/externals/libwebp/src/dsp/enc_sse2.c',
60 '../third_party/externals/libwebp/src/dsp/lossless.c',
61 '../third_party/externals/libwebp/src/dsp/upsampling.c',
62 '../third_party/externals/libwebp/src/dsp/upsampling_sse2.c',
63 '../third_party/externals/libwebp/src/dsp/yuv.c',
66 ['skia_os == "android"', {
68 'android_deps.gyp:cpu_features',
74 'target_name': 'libwebp_dsp_neon',
76 ['arm_version >= 7', {
77 'type': 'static_library',
79 '../third_party/externals/libwebp',
82 '../third_party/externals/libwebp/src/dsp/dec_neon.c',
83 '../third_party/externals/libwebp/src/dsp/enc_neon.c',
84 '../third_party/externals/libwebp/src/dsp/upsampling_neon.c',
86 # behavior similar dsp_neon.c.neon in an Android.mk
90 'cflags': [ '-mfpu=neon' ],
91 },{ # !(arm_version >= 7)
97 'target_name': 'libwebp_enc',
98 'type': 'static_library',
100 '../third_party/externals/libwebp',
103 '../third_party/externals/libwebp/src/enc/alpha.c',
104 '../third_party/externals/libwebp/src/enc/analysis.c',
105 '../third_party/externals/libwebp/src/enc/backward_references.c',
106 '../third_party/externals/libwebp/src/enc/config.c',
107 '../third_party/externals/libwebp/src/enc/cost.c',
108 '../third_party/externals/libwebp/src/enc/filter.c',
109 '../third_party/externals/libwebp/src/enc/frame.c',
110 '../third_party/externals/libwebp/src/enc/histogram.c',
111 '../third_party/externals/libwebp/src/enc/iterator.c',
112 '../third_party/externals/libwebp/src/enc/layer.c',
113 '../third_party/externals/libwebp/src/enc/picture.c',
114 '../third_party/externals/libwebp/src/enc/quant.c',
115 '../third_party/externals/libwebp/src/enc/syntax.c',
116 '../third_party/externals/libwebp/src/enc/token.c',
117 '../third_party/externals/libwebp/src/enc/tree.c',
118 '../third_party/externals/libwebp/src/enc/vp8l.c',
119 '../third_party/externals/libwebp/src/enc/webpenc.c',
124 'target_name': 'libwebp_utils',
125 'type': 'static_library',
127 '../third_party/externals/libwebp',
130 '../third_party/externals/libwebp/src/utils/bit_reader.c',
131 '../third_party/externals/libwebp/src/utils/bit_writer.c',
132 '../third_party/externals/libwebp/src/utils/color_cache.c',
133 '../third_party/externals/libwebp/src/utils/filters.c',
134 '../third_party/externals/libwebp/src/utils/huffman.c',
135 '../third_party/externals/libwebp/src/utils/huffman_encode.c',
136 '../third_party/externals/libwebp/src/utils/quant_levels.c',
137 '../third_party/externals/libwebp/src/utils/quant_levels_dec.c',
138 '../third_party/externals/libwebp/src/utils/rescaler.c',
139 '../third_party/externals/libwebp/src/utils/thread.c',
140 '../third_party/externals/libwebp/src/utils/utils.c',
144 'target_name': 'libwebp',
154 'direct_dependent_settings': {
156 '../third_party/externals/libwebp/src',
160 ['OS!="win"', {'product_name': 'webp'}],
165 # use_system_libwep == 1
168 'target_name': 'libwebp',
171 [ 'skia_android_framework', {
172 'direct_dependent_settings': {
178 'external/webp/include',
181 }, { # skia_android_framework == 0
182 'direct_dependent_settings': {