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