Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: gyp/libwebp.gyp

Issue 1178013008: Use the upstream version of libwebp, v0.4.3. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Use the upstream version of libwebp Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'skia_warnings_as_errors': 0, 7 'skia_warnings_as_errors': 0,
8 'conditions':[ 8 'conditions':[
9 ['skia_android_framework == 1', { 9 ['skia_android_framework == 1', {
10 'use_system_libwebp': 1, 10 'use_system_libwebp': 1,
(...skipping 10 matching lines...) Expand all
21 'type': 'static_library', 21 'type': 'static_library',
22 'include_dirs': [ 22 'include_dirs': [
23 '../third_party/externals/libwebp', 23 '../third_party/externals/libwebp',
24 ], 24 ],
25 'sources': [ 25 'sources': [
26 '../third_party/externals/libwebp/src/dec/alpha.c', 26 '../third_party/externals/libwebp/src/dec/alpha.c',
27 '../third_party/externals/libwebp/src/dec/buffer.c', 27 '../third_party/externals/libwebp/src/dec/buffer.c',
28 '../third_party/externals/libwebp/src/dec/frame.c', 28 '../third_party/externals/libwebp/src/dec/frame.c',
29 '../third_party/externals/libwebp/src/dec/idec.c', 29 '../third_party/externals/libwebp/src/dec/idec.c',
30 '../third_party/externals/libwebp/src/dec/io.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', 31 '../third_party/externals/libwebp/src/dec/quant.c',
33 '../third_party/externals/libwebp/src/dec/tree.c', 32 '../third_party/externals/libwebp/src/dec/tree.c',
34 '../third_party/externals/libwebp/src/dec/vp8.c', 33 '../third_party/externals/libwebp/src/dec/vp8.c',
35 '../third_party/externals/libwebp/src/dec/vp8l.c', 34 '../third_party/externals/libwebp/src/dec/vp8l.c',
36 '../third_party/externals/libwebp/src/dec/webp.c', 35 '../third_party/externals/libwebp/src/dec/webp.c',
37 ], 36 ],
38 'cflags': [ '-w' ], 37 'cflags': [ '-w' ],
39 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, 38 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] },
40 }, 39 },
41 { 40 {
42 'target_name': 'libwebp_demux', 41 'target_name': 'libwebp_demux',
43 'type': 'static_library', 42 'type': 'static_library',
44 'include_dirs': [ 43 'include_dirs': [
45 '../third_party/externals/libwebp', 44 '../third_party/externals/libwebp',
46 ], 45 ],
47 'sources': [ 46 'sources': [
48 '../third_party/externals/libwebp/src/demux/demux.c', 47 '../third_party/externals/libwebp/src/demux/demux.c',
49 ], 48 ],
50 'cflags': [ '-w' ], 49 'cflags': [ '-w' ],
51 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, 50 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] },
52 }, 51 },
53 { 52 {
54 'target_name': 'libwebp_dsp', 53 'target_name': 'libwebp_dsp',
55 'type': 'static_library', 54 'type': 'static_library',
56 'include_dirs': [ 55 'include_dirs': [
57 '../third_party/externals/libwebp', 56 '../third_party/externals/libwebp',
58 ], 57 ],
59 'sources': [ 58 'sources': [
59 '../third_party/externals/libwebp/src/dsp/alpha_processing.c',
60 '../third_party/externals/libwebp/src/dsp/alpha_processing_sse2.c',
60 '../third_party/externals/libwebp/src/dsp/cpu.c', 61 '../third_party/externals/libwebp/src/dsp/cpu.c',
61 '../third_party/externals/libwebp/src/dsp/dec.c', 62 '../third_party/externals/libwebp/src/dsp/dec.c',
63 '../third_party/externals/libwebp/src/dsp/dec_clip_tables.c',
62 '../third_party/externals/libwebp/src/dsp/dec_sse2.c', 64 '../third_party/externals/libwebp/src/dsp/dec_sse2.c',
63 '../third_party/externals/libwebp/src/dsp/enc.c', 65 '../third_party/externals/libwebp/src/dsp/enc.c',
64 '../third_party/externals/libwebp/src/dsp/enc_sse2.c', 66 '../third_party/externals/libwebp/src/dsp/enc_sse2.c',
65 '../third_party/externals/libwebp/src/dsp/lossless.c', 67 '../third_party/externals/libwebp/src/dsp/lossless.c',
68 '../third_party/externals/libwebp/src/dsp/lossless_sse2.c',
66 '../third_party/externals/libwebp/src/dsp/upsampling.c', 69 '../third_party/externals/libwebp/src/dsp/upsampling.c',
67 '../third_party/externals/libwebp/src/dsp/upsampling_sse2.c', 70 '../third_party/externals/libwebp/src/dsp/upsampling_sse2.c',
68 '../third_party/externals/libwebp/src/dsp/yuv.c', 71 '../third_party/externals/libwebp/src/dsp/yuv.c',
72 '../third_party/externals/libwebp/src/dsp/yuv_sse2.c',
69 ], 73 ],
70 'cflags': [ '-w' ], 74 'cflags': [ '-w' ],
71 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, 75 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] },
72 'conditions': [ 76 'conditions': [
73 ['skia_os == "android"', { 77 ['skia_os == "android"', {
74 'dependencies' : [ 78 'dependencies' : [
75 'android_deps.gyp:cpu_features', 79 'android_deps.gyp:cpu_features',
76 ], 80 ],
77 }], 81 }],
78 ], 82 ],
79 }, 83 },
80 { 84 {
81 'target_name': 'libwebp_dsp_neon', 85 'target_name': 'libwebp_dsp_neon',
82 'conditions': [ 86 'conditions': [
83 ['arm_version >= 7', { 87 ['arm_version >= 7', {
84 'type': 'static_library', 88 'type': 'static_library',
85 'include_dirs': [ 89 'include_dirs': [
86 '../third_party/externals/libwebp', 90 '../third_party/externals/libwebp',
87 ], 91 ],
88 'sources': [ 92 'sources': [
89 '../third_party/externals/libwebp/src/dsp/dec_neon.c', 93 '../third_party/externals/libwebp/src/dsp/dec_neon.c',
90 '../third_party/externals/libwebp/src/dsp/enc_neon.c', 94 '../third_party/externals/libwebp/src/dsp/enc_neon.c',
jzern 2015/07/08 06:27:14 0.4.3 has a lossless_neon.c too
scroggo 2015/07/08 16:06:42 Added.
91 '../third_party/externals/libwebp/src/dsp/upsampling_neon.c', 95 '../third_party/externals/libwebp/src/dsp/upsampling_neon.c',
92 ], 96 ],
93 # behavior similar dsp_neon.c.neon in an Android.mk 97 # behavior similar dsp_neon.c.neon in an Android.mk
94 'cflags!': [ 98 'cflags!': [
95 '-mfpu=vfpv3-d16', 99 '-mfpu=vfpv3-d16',
96 ], 100 ],
97 'cflags': [ '-mfpu=neon', '-w' ], 101 'cflags': [ '-mfpu=neon', '-w' ],
98 },{ # !(arm_version >= 7) 102 },{ # !(arm_version >= 7)
99 'type': 'none', 103 'type': 'none',
100 }], 104 }],
101 ], 105 ],
102 }, 106 },
103 { 107 {
104 'target_name': 'libwebp_enc', 108 'target_name': 'libwebp_enc',
105 'type': 'static_library', 109 'type': 'static_library',
106 'include_dirs': [ 110 'include_dirs': [
107 '../third_party/externals/libwebp', 111 '../third_party/externals/libwebp',
108 ], 112 ],
109 'sources': [ 113 'sources': [
110 '../third_party/externals/libwebp/src/enc/alpha.c', 114 '../third_party/externals/libwebp/src/enc/alpha.c',
111 '../third_party/externals/libwebp/src/enc/analysis.c', 115 '../third_party/externals/libwebp/src/enc/analysis.c',
112 '../third_party/externals/libwebp/src/enc/backward_references.c', 116 '../third_party/externals/libwebp/src/enc/backward_references.c',
113 '../third_party/externals/libwebp/src/enc/config.c', 117 '../third_party/externals/libwebp/src/enc/config.c',
114 '../third_party/externals/libwebp/src/enc/cost.c', 118 '../third_party/externals/libwebp/src/enc/cost.c',
115 '../third_party/externals/libwebp/src/enc/filter.c', 119 '../third_party/externals/libwebp/src/enc/filter.c',
116 '../third_party/externals/libwebp/src/enc/frame.c', 120 '../third_party/externals/libwebp/src/enc/frame.c',
117 '../third_party/externals/libwebp/src/enc/histogram.c', 121 '../third_party/externals/libwebp/src/enc/histogram.c',
118 '../third_party/externals/libwebp/src/enc/iterator.c', 122 '../third_party/externals/libwebp/src/enc/iterator.c',
119 '../third_party/externals/libwebp/src/enc/layer.c',
120 '../third_party/externals/libwebp/src/enc/picture.c', 123 '../third_party/externals/libwebp/src/enc/picture.c',
124 '../third_party/externals/libwebp/src/enc/picture_csp.c',
121 '../third_party/externals/libwebp/src/enc/quant.c', 125 '../third_party/externals/libwebp/src/enc/quant.c',
122 '../third_party/externals/libwebp/src/enc/syntax.c', 126 '../third_party/externals/libwebp/src/enc/syntax.c',
123 '../third_party/externals/libwebp/src/enc/token.c', 127 '../third_party/externals/libwebp/src/enc/token.c',
124 '../third_party/externals/libwebp/src/enc/tree.c', 128 '../third_party/externals/libwebp/src/enc/tree.c',
125 '../third_party/externals/libwebp/src/enc/vp8l.c', 129 '../third_party/externals/libwebp/src/enc/vp8l.c',
126 '../third_party/externals/libwebp/src/enc/webpenc.c', 130 '../third_party/externals/libwebp/src/enc/webpenc.c',
127 ], 131 ],
128 'cflags': [ '-w' ], 132 'cflags': [ '-w' ],
129 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, 133 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] },
130 }, 134 },
131 { 135 {
132 'target_name': 'libwebp_utils', 136 'target_name': 'libwebp_utils',
133 'type': 'static_library', 137 'type': 'static_library',
134 'include_dirs': [ 138 'include_dirs': [
135 '../third_party/externals/libwebp', 139 '../third_party/externals/libwebp',
136 ], 140 ],
137 'sources': [ 141 'sources': [
138 '../third_party/externals/libwebp/src/utils/bit_reader.c', 142 '../third_party/externals/libwebp/src/utils/bit_reader.c',
139 '../third_party/externals/libwebp/src/utils/bit_writer.c', 143 '../third_party/externals/libwebp/src/utils/bit_writer.c',
140 '../third_party/externals/libwebp/src/utils/color_cache.c', 144 '../third_party/externals/libwebp/src/utils/color_cache.c',
141 '../third_party/externals/libwebp/src/utils/filters.c', 145 '../third_party/externals/libwebp/src/utils/filters.c',
142 '../third_party/externals/libwebp/src/utils/huffman.c', 146 '../third_party/externals/libwebp/src/utils/huffman.c',
143 '../third_party/externals/libwebp/src/utils/huffman_encode.c', 147 '../third_party/externals/libwebp/src/utils/huffman_encode.c',
144 '../third_party/externals/libwebp/src/utils/quant_levels.c', 148 '../third_party/externals/libwebp/src/utils/quant_levels.c',
145 '../third_party/externals/libwebp/src/utils/quant_levels_dec.c', 149 '../third_party/externals/libwebp/src/utils/quant_levels_dec.c',
150 '../third_party/externals/libwebp/src/utils/random.c',
146 '../third_party/externals/libwebp/src/utils/rescaler.c', 151 '../third_party/externals/libwebp/src/utils/rescaler.c',
147 '../third_party/externals/libwebp/src/utils/thread.c', 152 '../third_party/externals/libwebp/src/utils/thread.c',
148 '../third_party/externals/libwebp/src/utils/utils.c', 153 '../third_party/externals/libwebp/src/utils/utils.c',
149 ], 154 ],
150 'cflags': [ '-w' ], 155 'cflags': [ '-w' ],
151 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, 156 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] },
152 }, 157 },
153 { 158 {
154 'target_name': 'libwebp', 159 'target_name': 'libwebp',
155 'type': 'none', 160 'type': 'none',
(...skipping 11 matching lines...) Expand all
167 ], 172 ],
168 'cflags': [ '-w' ], 173 'cflags': [ '-w' ],
169 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, 174 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] },
170 }, 175 },
171 'conditions': [ 176 'conditions': [
172 ['OS!="win"', {'product_name': 'webp'}], 177 ['OS!="win"', {'product_name': 'webp'}],
173 ], 178 ],
174 }, 179 },
175 ], 180 ],
176 }, { 181 }, {
177 # use_system_libwep == 1 182 # use_system_libwebp == 1
178 'targets': [ 183 'targets': [
179 { 184 {
180 'target_name': 'libwebp', 185 'target_name': 'libwebp',
181 'type': 'none', 186 'type': 'none',
182 'conditions': [ 187 'conditions': [
183 [ 'skia_android_framework', { 188 [ 'skia_android_framework', {
184 'direct_dependent_settings': { 189 'direct_dependent_settings': {
185 'libraries': [ 190 'libraries': [
186 'libwebp-decode.a', 191 'libwebp-decode.a',
187 'libwebp-encode.a', 192 'libwebp-encode.a',
(...skipping 14 matching lines...) Expand all
202 ], 207 ],
203 }, 208 },
204 }, 209 },
205 ], 210 ],
206 ], 211 ],
207 } 212 }
208 ], 213 ],
209 }], 214 }],
210 ], 215 ],
211 } 216 }
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698