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

Side by Side Diff: gyp/libwebp.gyp

Issue 154053002: Reland "Gyp file changes for the android framework." (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix android build. Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « gyp/images.gyp ('k') | gyp/opts.gyp » ('j') | 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 'use_system_libwebp%': 0, 7 'conditions':[
8 ['skia_android_framework == 1', {
9 'use_system_libwebp': 1,
10 }, {
11 'use_system_libwebp%': 0,
12 }],
13 ],
8 }, 14 },
9 'conditions': [ 15 'conditions': [
10 ['use_system_libwebp==0', { 16 ['use_system_libwebp==0', {
11 'targets': [ 17 'targets': [
12 { 18 {
13 'target_name': 'libwebp_dec', 19 'target_name': 'libwebp_dec',
14 'type': 'static_library', 20 'type': 'static_library',
15 'include_dirs': [ 21 'include_dirs': [
16 '../third_party/externals/libwebp', 22 '../third_party/externals/libwebp',
17 ], 23 ],
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 'include_dirs': [ 155 'include_dirs': [
150 '../third_party/externals/libwebp/src', 156 '../third_party/externals/libwebp/src',
151 ], 157 ],
152 }, 158 },
153 'conditions': [ 159 'conditions': [
154 ['OS!="win"', {'product_name': 'webp'}], 160 ['OS!="win"', {'product_name': 'webp'}],
155 ], 161 ],
156 }, 162 },
157 ], 163 ],
158 }, { 164 }, {
165 # use_system_libwep == 1
159 'targets': [ 166 'targets': [
160 { 167 {
161 'target_name': 'libwebp', 168 'target_name': 'libwebp',
162 'type': 'none', 169 'type': 'none',
163 'direct_dependent_settings': { 170 'conditions': [
164 'defines': [ 171 [ 'skia_android_framework', {
165 'ENABLE_WEBP', 172 'direct_dependent_settings': {
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 },
166 ], 193 ],
167 }, 194 ],
168 'link_settings': {
169 'libraries': [
170 '-lwebp',
171 ],
172 },
173 } 195 }
174 ], 196 ],
175 }], 197 }],
176 ], 198 ],
177 } 199 }
OLDNEW
« no previous file with comments | « gyp/images.gyp ('k') | gyp/opts.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698