Chromium Code Reviews| Index: skia/skia.gyp |
| diff --git a/skia/skia.gyp b/skia/skia.gyp |
| index aedee811032a23a4b7875e4dcdc75d2c95cdf2fb..c605c68bf29c117d33cea6bc1b46001c66f112e4 100644 |
| --- a/skia/skia.gyp |
| +++ b/skia/skia.gyp |
| @@ -1072,18 +1072,25 @@ |
| ], |
| 'conditions': [ |
| ['OS=="android"', { |
| - 'defines': [ |
| - 'SK_BUILD_FOR_ANDROID_NDK', |
| + 'dependencies!': [ |
| + 'skia_opts', |
| + '../third_party/zlib/zlib.gyp:zlib', |
| ], |
| 'conditions': [ |
| - [ '_toolset == "target"', { |
| + ['use_system_skia==1', { |
| 'defines': [ |
| 'SK_RELEASE', # Assume platform has a release build. |
| ], |
| - 'dependencies!': [ |
| - 'skia_opts', |
| - '../third_party/zlib/zlib.gyp:zlib', |
| + 'include_dirs!': [ |
| + 'config', # Avoid including Chromium skia config. |
| + ], |
| + 'libraries': [ |
| + '-lskia', |
| ], |
| + }, { # !use_system_skia |
| + 'defines': [ |
| + 'SK_BUILD_FOR_ANDROID_NDK', # Don't use non-NDK available stuff. |
|
Mark Mentovai
2012/07/04 01:59:51
I’d put this comment on its own line to keep this
newt (away)
2012/07/09 22:20:12
Done.
|
| + ], |
| }], |
| [ '_toolset == "target" and android_build_type == 0', { |
| 'defines': [ |