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.
7 'skia_warnings_as_errors': 0,
9 ['skia_android_framework == 1', {
10 'use_system_libwebp': 1,
12 'use_system_libwebp%': 0,
17 ['use_system_libwebp==0', {
20 'target_name': 'libwebp_dec',
21 'type': 'static_library',
23 '../third_party/externals/libwebp',
26 '../third_party/externals/libwebp/src/dec/alpha.c',
27 '../third_party/externals/libwebp/src/dec/buffer.c',
28 '../third_party/externals/libwebp/src/dec/frame.c',
29 '../third_party/externals/libwebp/src/dec/idec.c',
30 '../third_party/externals/libwebp/src/dec/io.c',
31 '../third_party/externals/libwebp/src/dec/layer.c',
32 '../third_party/externals/libwebp/src/dec/quant.c',
33 '../third_party/externals/libwebp/src/dec/tree.c',
34 '../third_party/externals/libwebp/src/dec/vp8.c',
35 '../third_party/externals/libwebp/src/dec/vp8l.c',
36 '../third_party/externals/libwebp/src/dec/webp.c',
41 'target_name': 'libwebp_demux',
42 'type': 'static_library',
44 '../third_party/externals/libwebp',
47 '../third_party/externals/libwebp/src/demux/demux.c',
52 'target_name': 'libwebp_dsp',
53 'type': 'static_library',
55 '../third_party/externals/libwebp',
58 '../third_party/externals/libwebp/src/dsp/cpu.c',
59 '../third_party/externals/libwebp/src/dsp/dec.c',
60 '../third_party/externals/libwebp/src/dsp/dec_sse2.c',
61 '../third_party/externals/libwebp/src/dsp/enc.c',
62 '../third_party/externals/libwebp/src/dsp/enc_sse2.c',
63 '../third_party/externals/libwebp/src/dsp/lossless.c',
64 '../third_party/externals/libwebp/src/dsp/upsampling.c',
65 '../third_party/externals/libwebp/src/dsp/upsampling_sse2.c',
66 '../third_party/externals/libwebp/src/dsp/yuv.c',
70 ['skia_os == "android"', {
72 'android_deps.gyp:cpu_features',
78 'target_name': 'libwebp_dsp_neon',
80 ['arm_version >= 7', {
81 'type': 'static_library',
83 '../third_party/externals/libwebp',
86 '../third_party/externals/libwebp/src/dsp/dec_neon.c',
87 '../third_party/externals/libwebp/src/dsp/enc_neon.c',
88 '../third_party/externals/libwebp/src/dsp/upsampling_neon.c',
90 # behavior similar dsp_neon.c.neon in an Android.mk
94 'cflags': [ '-mfpu=neon', '-w' ],
95 },{ # !(arm_version >= 7)
101 'target_name': 'libwebp_enc',
102 'type': 'static_library',
104 '../third_party/externals/libwebp',
107 '../third_party/externals/libwebp/src/enc/alpha.c',
108 '../third_party/externals/libwebp/src/enc/analysis.c',
109 '../third_party/externals/libwebp/src/enc/backward_references.c',
110 '../third_party/externals/libwebp/src/enc/config.c',
111 '../third_party/externals/libwebp/src/enc/cost.c',
112 '../third_party/externals/libwebp/src/enc/filter.c',
113 '../third_party/externals/libwebp/src/enc/frame.c',
114 '../third_party/externals/libwebp/src/enc/histogram.c',
115 '../third_party/externals/libwebp/src/enc/iterator.c',
116 '../third_party/externals/libwebp/src/enc/layer.c',
117 '../third_party/externals/libwebp/src/enc/picture.c',
118 '../third_party/externals/libwebp/src/enc/quant.c',
119 '../third_party/externals/libwebp/src/enc/syntax.c',
120 '../third_party/externals/libwebp/src/enc/token.c',
121 '../third_party/externals/libwebp/src/enc/tree.c',
122 '../third_party/externals/libwebp/src/enc/vp8l.c',
123 '../third_party/externals/libwebp/src/enc/webpenc.c',
128 'target_name': 'libwebp_utils',
129 'type': 'static_library',
131 '../third_party/externals/libwebp',
134 '../third_party/externals/libwebp/src/utils/bit_reader.c',
135 '../third_party/externals/libwebp/src/utils/bit_writer.c',
136 '../third_party/externals/libwebp/src/utils/color_cache.c',
137 '../third_party/externals/libwebp/src/utils/filters.c',
138 '../third_party/externals/libwebp/src/utils/huffman.c',
139 '../third_party/externals/libwebp/src/utils/huffman_encode.c',
140 '../third_party/externals/libwebp/src/utils/quant_levels.c',
141 '../third_party/externals/libwebp/src/utils/quant_levels_dec.c',
142 '../third_party/externals/libwebp/src/utils/rescaler.c',
143 '../third_party/externals/libwebp/src/utils/thread.c',
144 '../third_party/externals/libwebp/src/utils/utils.c',
149 'target_name': 'libwebp',
159 'direct_dependent_settings': {
161 '../third_party/externals/libwebp/src',
164 '-Wno-unused-function', # In C++11 mode, we get this warning when including decode.h.
168 ['OS!="win"', {'product_name': 'webp'}],
173 # use_system_libwep == 1
176 'target_name': 'libwebp',
179 [ 'skia_android_framework', {
180 'direct_dependent_settings': {
186 'external/webp/include',
189 }, { # skia_android_framework == 0
190 'direct_dependent_settings': {