| OLD | NEW |
| 1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 # Copyright 2015 Google Inc. | 5 # Copyright 2015 Google Inc. |
| 6 # | 6 # |
| 7 # Use of this source code is governed by a BSD-style license that can be | 7 # Use of this source code is governed by a BSD-style license that can be |
| 8 # found in the LICENSE file. | 8 # found in the LICENSE file. |
| 9 | 9 |
| 10 # GYP file for codec project. | 10 # GYP file for codec project. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 '../src/codec/SkSampledCodec.cpp', | 51 '../src/codec/SkSampledCodec.cpp', |
| 52 '../src/codec/SkSwizzler.cpp', | 52 '../src/codec/SkSwizzler.cpp', |
| 53 '../src/codec/SkWebpAdapterCodec.cpp', | 53 '../src/codec/SkWebpAdapterCodec.cpp', |
| 54 '../src/codec/SkWebpCodec.cpp', | 54 '../src/codec/SkWebpCodec.cpp', |
| 55 ], | 55 ], |
| 56 'direct_dependent_settings': { | 56 'direct_dependent_settings': { |
| 57 'include_dirs': [ | 57 'include_dirs': [ |
| 58 '../include/codec', | 58 '../include/codec', |
| 59 ], | 59 ], |
| 60 }, | 60 }, |
| 61 'defines': [ |
| 62 'TURBO_HAS_SKIP', |
| 63 ], |
| 61 'conditions': [ | 64 'conditions': [ |
| 62 [ 'skia_android_framework == 1', | 65 [ 'skia_android_framework == 1', |
| 63 { | 66 { |
| 64 # TODO(djsollen): this is a temporary dependency until we can update | 67 # TODO(djsollen): this is a temporary dependency until we can update |
| 65 # the android framework to a more recent version of libpng. | 68 # the android framework to a more recent version of libpng. |
| 66 'dependencies': [ | 69 'dependencies': [ |
| 67 'libpng.gyp:libpng', | 70 'libpng.gyp:libpng', |
| 71 'android_deps.gyp:libjpeg-turbo', |
| 68 ], | 72 ], |
| 69 # TODO(msarett): Add libjpeg-turbo to Android so we can compile SkJp
egCodec | 73 'export_dependent_settings': [ |
| 70 # for the framework. | 74 'android_deps.gyp:libjpeg-turbo' |
| 71 'sources!': [ | |
| 72 '../src/codec/SkJpegCodec.cpp', | |
| 73 '../src/codec/SkJpegDecoderMgr.cpp', | |
| 74 '../src/codec/SkJpegUtility_codec.cpp', | |
| 75 ], | 75 ], |
| 76 }, { # !skia_android_framework | 76 }, { # !skia_android_framework |
| 77 'dependencies': [ | 77 'dependencies': [ |
| 78 # TODO(msarett): Add libjpeg-turbo to Android so this can be a glo
bal | |
| 79 # dependency. | |
| 80 'libjpeg-turbo.gyp:libjpeg-turbo', | 78 'libjpeg-turbo.gyp:libjpeg-turbo', |
| 81 'libpng.gyp:libpng_static', | 79 'libpng.gyp:libpng_static', |
| 82 ], | 80 ], |
| 83 'export_dependent_settings': [ | 81 'export_dependent_settings': [ |
| 84 'libjpeg-turbo.gyp:libjpeg-turbo', | 82 'libjpeg-turbo.gyp:libjpeg-turbo', |
| 85 ], | 83 ], |
| 86 'defines': [ | |
| 87 'TURBO_HAS_SKIP', | |
| 88 ], | |
| 89 } | 84 } |
| 90 ] | 85 ] |
| 91 ] | 86 ] |
| 92 }, | 87 }, |
| 93 ], | 88 ], |
| 94 } | 89 } |
| OLD | NEW |