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 'conditions':[ | 7 'use_system_libwebp%': 0, |
8 ['skia_android_framework == 1', { | |
9 'use_system_libwebp': 1, | |
10 }, { | |
11 'use_system_libwebp%': 0, | |
12 }], | |
13 ], | |
14 }, | 8 }, |
15 'conditions': [ | 9 'conditions': [ |
16 ['use_system_libwebp==0', { | 10 ['use_system_libwebp==0', { |
17 'targets': [ | 11 'targets': [ |
18 { | 12 { |
19 'target_name': 'libwebp_dec', | 13 'target_name': 'libwebp_dec', |
20 'type': 'static_library', | 14 'type': 'static_library', |
21 'include_dirs': [ | 15 'include_dirs': [ |
22 '../third_party/externals/libwebp', | 16 '../third_party/externals/libwebp', |
23 ], | 17 ], |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 'include_dirs': [ | 149 'include_dirs': [ |
156 '../third_party/externals/libwebp/src', | 150 '../third_party/externals/libwebp/src', |
157 ], | 151 ], |
158 }, | 152 }, |
159 'conditions': [ | 153 'conditions': [ |
160 ['OS!="win"', {'product_name': 'webp'}], | 154 ['OS!="win"', {'product_name': 'webp'}], |
161 ], | 155 ], |
162 }, | 156 }, |
163 ], | 157 ], |
164 }, { | 158 }, { |
165 # use_system_libwep == 1 | |
166 'targets': [ | 159 'targets': [ |
167 { | 160 { |
168 'target_name': 'libwebp', | 161 'target_name': 'libwebp', |
169 'type': 'none', | 162 'type': 'none', |
170 'conditions': [ | 163 'direct_dependent_settings': { |
171 [ 'skia_android_framework', { | 164 'defines': [ |
172 'direct_dependent_settings': { | 165 'ENABLE_WEBP', |
173 'libraries': [ | |
174 'libwebp-decode.a', | |
175 'libwebp-encode.a', | |
176 ], | |
177 'include_dirs': [ | |
178 'external/webp/include', | |
179 ], | |
180 }, | |
181 }, { # skia_android_framework == 0 | |
182 'direct_dependent_settings': { | |
183 'defines': [ | |
184 'ENABLE_WEBP', | |
185 ], | |
186 }, | |
187 'link_settings': { | |
188 'libraries': [ | |
189 '-lwebp', | |
190 ], | |
191 }, | |
192 }, | |
193 ], | 166 ], |
194 ], | 167 }, |
| 168 'link_settings': { |
| 169 'libraries': [ |
| 170 '-lwebp', |
| 171 ], |
| 172 }, |
195 } | 173 } |
196 ], | 174 ], |
197 }], | 175 }], |
198 ], | 176 ], |
199 } | 177 } |
OLD | NEW |