OLD | NEW |
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, |
11 }, { | 11 }, { |
12 'use_system_libwebp%': 0, | 12 'use_system_libwebp%': 0, |
13 }], | 13 }], |
14 ], | 14 ], |
15 }, | 15 }, |
16 'conditions': [ | 16 'conditions': [ |
17 ['use_system_libwebp==0', { | 17 ['use_system_libwebp==0', { |
18 'targets': [ | 18 'targets': [ |
19 { | 19 { |
20 'target_name': 'libwebp_dec', | 20 'target_name': 'libwebp_dec', |
21 'type': 'static_library', | 21 'type': 'static_library', |
| 22 'includes': [ |
| 23 'libwebp_skia.gypi', |
| 24 ], |
22 'include_dirs': [ | 25 'include_dirs': [ |
23 '../third_party/externals/libwebp', | 26 '../third_party/externals/libwebp', |
24 ], | 27 ], |
25 'sources': [ | 28 'sources': [ |
26 '../third_party/externals/libwebp/src/dec/alpha.c', | 29 '../third_party/externals/libwebp/src/dec/alpha.c', |
27 '../third_party/externals/libwebp/src/dec/buffer.c', | 30 '../third_party/externals/libwebp/src/dec/buffer.c', |
28 '../third_party/externals/libwebp/src/dec/frame.c', | 31 '../third_party/externals/libwebp/src/dec/frame.c', |
29 '../third_party/externals/libwebp/src/dec/idec.c', | 32 '../third_party/externals/libwebp/src/dec/idec.c', |
30 '../third_party/externals/libwebp/src/dec/io.c', | 33 '../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', | 34 '../third_party/externals/libwebp/src/dec/quant.c', |
33 '../third_party/externals/libwebp/src/dec/tree.c', | 35 '../third_party/externals/libwebp/src/dec/tree.c', |
34 '../third_party/externals/libwebp/src/dec/vp8.c', | 36 '../third_party/externals/libwebp/src/dec/vp8.c', |
35 '../third_party/externals/libwebp/src/dec/vp8l.c', | 37 '../third_party/externals/libwebp/src/dec/vp8l.c', |
36 '../third_party/externals/libwebp/src/dec/webp.c', | 38 '../third_party/externals/libwebp/src/dec/webp.c', |
37 ], | 39 ], |
38 'cflags': [ '-w' ], | 40 'cflags': [ '-w' ], |
39 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, | 41 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, |
40 }, | 42 }, |
41 { | 43 { |
42 'target_name': 'libwebp_demux', | 44 'target_name': 'libwebp_demux', |
43 'type': 'static_library', | 45 'type': 'static_library', |
| 46 'includes': [ |
| 47 'libwebp_skia.gypi', |
| 48 ], |
44 'include_dirs': [ | 49 'include_dirs': [ |
45 '../third_party/externals/libwebp', | 50 '../third_party/externals/libwebp', |
46 ], | 51 ], |
47 'sources': [ | 52 'sources': [ |
48 '../third_party/externals/libwebp/src/demux/demux.c', | 53 '../third_party/externals/libwebp/src/demux/demux.c', |
49 ], | 54 ], |
50 'cflags': [ '-w' ], | 55 'cflags': [ '-w' ], |
51 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, | 56 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, |
52 }, | 57 }, |
53 { | 58 { |
54 'target_name': 'libwebp_dsp', | 59 'target_name': 'libwebp_dsp', |
55 'type': 'static_library', | 60 'type': 'static_library', |
| 61 'includes': [ |
| 62 'libwebp_skia.gypi', |
| 63 ], |
56 'include_dirs': [ | 64 'include_dirs': [ |
57 '../third_party/externals/libwebp', | 65 '../third_party/externals/libwebp', |
58 ], | 66 ], |
59 'sources': [ | 67 'sources': [ |
| 68 '../third_party/externals/libwebp/src/dsp/alpha_processing.c', |
| 69 '../third_party/externals/libwebp/src/dsp/alpha_processing_sse2.c', |
60 '../third_party/externals/libwebp/src/dsp/cpu.c', | 70 '../third_party/externals/libwebp/src/dsp/cpu.c', |
61 '../third_party/externals/libwebp/src/dsp/dec.c', | 71 '../third_party/externals/libwebp/src/dsp/dec.c', |
| 72 '../third_party/externals/libwebp/src/dsp/dec_clip_tables.c', |
62 '../third_party/externals/libwebp/src/dsp/dec_sse2.c', | 73 '../third_party/externals/libwebp/src/dsp/dec_sse2.c', |
63 '../third_party/externals/libwebp/src/dsp/enc.c', | 74 '../third_party/externals/libwebp/src/dsp/enc.c', |
64 '../third_party/externals/libwebp/src/dsp/enc_sse2.c', | 75 '../third_party/externals/libwebp/src/dsp/enc_sse2.c', |
65 '../third_party/externals/libwebp/src/dsp/lossless.c', | 76 '../third_party/externals/libwebp/src/dsp/lossless.c', |
| 77 '../third_party/externals/libwebp/src/dsp/lossless_sse2.c', |
66 '../third_party/externals/libwebp/src/dsp/upsampling.c', | 78 '../third_party/externals/libwebp/src/dsp/upsampling.c', |
67 '../third_party/externals/libwebp/src/dsp/upsampling_sse2.c', | 79 '../third_party/externals/libwebp/src/dsp/upsampling_sse2.c', |
68 '../third_party/externals/libwebp/src/dsp/yuv.c', | 80 '../third_party/externals/libwebp/src/dsp/yuv.c', |
| 81 '../third_party/externals/libwebp/src/dsp/yuv_sse2.c', |
69 ], | 82 ], |
70 'cflags': [ '-w' ], | 83 'cflags': [ '-w' ], |
71 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, | 84 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, |
72 'conditions': [ | 85 'conditions': [ |
73 ['skia_os == "android"', { | 86 ['skia_os == "android"', { |
74 'dependencies' : [ | 87 'dependencies' : [ |
75 'android_deps.gyp:cpu_features', | 88 'android_deps.gyp:cpu_features', |
76 ], | 89 ], |
77 }], | 90 }], |
78 ], | 91 ], |
79 }, | 92 }, |
80 { | 93 { |
81 'target_name': 'libwebp_dsp_neon', | 94 'target_name': 'libwebp_dsp_neon', |
| 95 'includes': [ |
| 96 'libwebp_skia.gypi', |
| 97 ], |
82 'conditions': [ | 98 'conditions': [ |
| 99 ['arm_version == 7', { |
| 100 'cflags': [ '-mfpu=neon' ], |
| 101 }], |
83 ['arm_version >= 7', { | 102 ['arm_version >= 7', { |
84 'type': 'static_library', | 103 'type': 'static_library', |
85 'include_dirs': [ | 104 'include_dirs': [ |
86 '../third_party/externals/libwebp', | 105 '../third_party/externals/libwebp', |
87 ], | 106 ], |
88 'sources': [ | 107 'sources': [ |
89 '../third_party/externals/libwebp/src/dsp/dec_neon.c', | 108 '../third_party/externals/libwebp/src/dsp/dec_neon.c', |
90 '../third_party/externals/libwebp/src/dsp/enc_neon.c', | 109 '../third_party/externals/libwebp/src/dsp/enc_neon.c', |
| 110 '../third_party/externals/libwebp/src/dsp/lossless_neon.c', |
91 '../third_party/externals/libwebp/src/dsp/upsampling_neon.c', | 111 '../third_party/externals/libwebp/src/dsp/upsampling_neon.c', |
92 ], | 112 ], |
93 # behavior similar dsp_neon.c.neon in an Android.mk | 113 # behavior similar dsp_neon.c.neon in an Android.mk |
94 'cflags!': [ | 114 'cflags!': [ |
95 '-mfpu=vfpv3-d16', | 115 '-mfpu=vfpv3-d16', |
96 ], | 116 ], |
97 'cflags': [ '-mfpu=neon', '-w' ], | 117 'cflags': [ '-w' ], |
98 },{ # !(arm_version >= 7) | 118 },{ # !(arm_version >= 7) |
99 'type': 'none', | 119 'type': 'none', |
100 }], | 120 }], |
101 ], | 121 ], |
102 }, | 122 }, |
103 { | 123 { |
104 'target_name': 'libwebp_enc', | 124 'target_name': 'libwebp_enc', |
105 'type': 'static_library', | 125 'type': 'static_library', |
| 126 'includes': [ |
| 127 'libwebp_skia.gypi', |
| 128 ], |
106 'include_dirs': [ | 129 'include_dirs': [ |
107 '../third_party/externals/libwebp', | 130 '../third_party/externals/libwebp', |
108 ], | 131 ], |
109 'sources': [ | 132 'sources': [ |
110 '../third_party/externals/libwebp/src/enc/alpha.c', | 133 '../third_party/externals/libwebp/src/enc/alpha.c', |
111 '../third_party/externals/libwebp/src/enc/analysis.c', | 134 '../third_party/externals/libwebp/src/enc/analysis.c', |
112 '../third_party/externals/libwebp/src/enc/backward_references.c', | 135 '../third_party/externals/libwebp/src/enc/backward_references.c', |
113 '../third_party/externals/libwebp/src/enc/config.c', | 136 '../third_party/externals/libwebp/src/enc/config.c', |
114 '../third_party/externals/libwebp/src/enc/cost.c', | 137 '../third_party/externals/libwebp/src/enc/cost.c', |
115 '../third_party/externals/libwebp/src/enc/filter.c', | 138 '../third_party/externals/libwebp/src/enc/filter.c', |
116 '../third_party/externals/libwebp/src/enc/frame.c', | 139 '../third_party/externals/libwebp/src/enc/frame.c', |
117 '../third_party/externals/libwebp/src/enc/histogram.c', | 140 '../third_party/externals/libwebp/src/enc/histogram.c', |
118 '../third_party/externals/libwebp/src/enc/iterator.c', | 141 '../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', | 142 '../third_party/externals/libwebp/src/enc/picture.c', |
| 143 '../third_party/externals/libwebp/src/enc/picture_csp.c', |
121 '../third_party/externals/libwebp/src/enc/quant.c', | 144 '../third_party/externals/libwebp/src/enc/quant.c', |
122 '../third_party/externals/libwebp/src/enc/syntax.c', | 145 '../third_party/externals/libwebp/src/enc/syntax.c', |
123 '../third_party/externals/libwebp/src/enc/token.c', | 146 '../third_party/externals/libwebp/src/enc/token.c', |
124 '../third_party/externals/libwebp/src/enc/tree.c', | 147 '../third_party/externals/libwebp/src/enc/tree.c', |
125 '../third_party/externals/libwebp/src/enc/vp8l.c', | 148 '../third_party/externals/libwebp/src/enc/vp8l.c', |
126 '../third_party/externals/libwebp/src/enc/webpenc.c', | 149 '../third_party/externals/libwebp/src/enc/webpenc.c', |
127 ], | 150 ], |
128 'cflags': [ '-w' ], | 151 'cflags': [ '-w' ], |
129 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, | 152 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, |
130 }, | 153 }, |
131 { | 154 { |
132 'target_name': 'libwebp_utils', | 155 'target_name': 'libwebp_utils', |
133 'type': 'static_library', | 156 'type': 'static_library', |
| 157 'includes': [ |
| 158 'libwebp_skia.gypi', |
| 159 ], |
134 'include_dirs': [ | 160 'include_dirs': [ |
135 '../third_party/externals/libwebp', | 161 '../third_party/externals/libwebp', |
136 ], | 162 ], |
137 'sources': [ | 163 'sources': [ |
138 '../third_party/externals/libwebp/src/utils/bit_reader.c', | 164 '../third_party/externals/libwebp/src/utils/bit_reader.c', |
139 '../third_party/externals/libwebp/src/utils/bit_writer.c', | 165 '../third_party/externals/libwebp/src/utils/bit_writer.c', |
140 '../third_party/externals/libwebp/src/utils/color_cache.c', | 166 '../third_party/externals/libwebp/src/utils/color_cache.c', |
141 '../third_party/externals/libwebp/src/utils/filters.c', | 167 '../third_party/externals/libwebp/src/utils/filters.c', |
142 '../third_party/externals/libwebp/src/utils/huffman.c', | 168 '../third_party/externals/libwebp/src/utils/huffman.c', |
143 '../third_party/externals/libwebp/src/utils/huffman_encode.c', | 169 '../third_party/externals/libwebp/src/utils/huffman_encode.c', |
144 '../third_party/externals/libwebp/src/utils/quant_levels.c', | 170 '../third_party/externals/libwebp/src/utils/quant_levels.c', |
145 '../third_party/externals/libwebp/src/utils/quant_levels_dec.c', | 171 '../third_party/externals/libwebp/src/utils/quant_levels_dec.c', |
| 172 '../third_party/externals/libwebp/src/utils/random.c', |
146 '../third_party/externals/libwebp/src/utils/rescaler.c', | 173 '../third_party/externals/libwebp/src/utils/rescaler.c', |
147 '../third_party/externals/libwebp/src/utils/thread.c', | 174 '../third_party/externals/libwebp/src/utils/thread.c', |
148 '../third_party/externals/libwebp/src/utils/utils.c', | 175 '../third_party/externals/libwebp/src/utils/utils.c', |
149 ], | 176 ], |
150 'cflags': [ '-w' ], | 177 'cflags': [ '-w' ], |
151 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, | 178 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, |
152 }, | 179 }, |
153 { | 180 { |
154 'target_name': 'libwebp', | 181 'target_name': 'libwebp', |
155 'type': 'none', | 182 'type': 'none', |
(...skipping 11 matching lines...) Expand all Loading... |
167 ], | 194 ], |
168 'cflags': [ '-w' ], | 195 'cflags': [ '-w' ], |
169 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, | 196 'xcode_settings': { 'WARNING_CFLAGS': [ '-w' ] }, |
170 }, | 197 }, |
171 'conditions': [ | 198 'conditions': [ |
172 ['OS!="win"', {'product_name': 'webp'}], | 199 ['OS!="win"', {'product_name': 'webp'}], |
173 ], | 200 ], |
174 }, | 201 }, |
175 ], | 202 ], |
176 }, { | 203 }, { |
177 # use_system_libwep == 1 | 204 # use_system_libwebp == 1 |
178 'targets': [ | 205 'targets': [ |
179 { | 206 { |
180 'target_name': 'libwebp', | 207 'target_name': 'libwebp', |
181 'type': 'none', | 208 'type': 'none', |
182 'conditions': [ | 209 'conditions': [ |
183 [ 'skia_android_framework', { | 210 [ 'skia_android_framework', { |
184 'direct_dependent_settings': { | 211 'direct_dependent_settings': { |
185 'libraries': [ | 212 'libraries': [ |
186 'libwebp-decode.a', | 213 'libwebp-decode.a', |
187 'libwebp-encode.a', | 214 'libwebp-encode.a', |
(...skipping 14 matching lines...) Expand all Loading... |
202 ], | 229 ], |
203 }, | 230 }, |
204 }, | 231 }, |
205 ], | 232 ], |
206 ], | 233 ], |
207 } | 234 } |
208 ], | 235 ], |
209 }], | 236 }], |
210 ], | 237 ], |
211 } | 238 } |
OLD | NEW |