| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 # Turn on all of the codecs, since we know that we have all of the | 67 # Turn on all of the codecs, since we know that we have all of the |
| 68 # necessary dependencies. Clients that are missing some of the | 68 # necessary dependencies. Clients that are missing some of the |
| 69 # required decoding libraries may choose to turn the codecs on or | 69 # required decoding libraries may choose to turn the codecs on or |
| 70 # off individually. | 70 # off individually. |
| 71 'SK_CODEC_DECODES_GIF', | 71 'SK_CODEC_DECODES_GIF', |
| 72 'SK_CODEC_DECODES_JPEG', | 72 'SK_CODEC_DECODES_JPEG', |
| 73 'SK_CODEC_DECODES_PNG', | 73 'SK_CODEC_DECODES_PNG', |
| 74 'SK_CODEC_DECODES_WEBP', | 74 'SK_CODEC_DECODES_WEBP', |
| 75 | 75 |
| 76 # Turn on libjpeg-turbo optimizations since we know that the | 76 # Turn on libjpeg-turbo optimizations since we know that the |
| 77 # appropriate version of libjpeg-turbo is present. | 77 # appropriate version of libjpeg-turbo is present. |
| 78 'TURBO_HAS_CROP', |
| 78 'TURBO_HAS_SKIP', | 79 'TURBO_HAS_SKIP', |
| 79 'TURBO_HAS_565', | 80 'TURBO_HAS_565', |
| 80 ], | 81 ], |
| 81 'conditions': [ | 82 'conditions': [ |
| 82 ['skia_codec_decodes_raw', { | 83 ['skia_codec_decodes_raw', { |
| 83 'dependencies': [ | 84 'dependencies': [ |
| 84 'raw_codec', | 85 'raw_codec', |
| 85 ], | 86 ], |
| 86 },], | 87 },], |
| 87 ['skia_android_framework == 0', { | |
| 88 'defines': [ | |
| 89 # TODO (msarett): Add this optimization to Android. | |
| 90 # https://buganizer.corp.google.com/u/0/issues/27290496 | |
| 91 'TURBO_HAS_CROP', | |
| 92 ], | |
| 93 },], | |
| 94 ], | 88 ], |
| 95 }, { | 89 }, { |
| 96 # RAW codec needs exceptions. Due to that, it is a separate target. Its us
age can be | 90 # RAW codec needs exceptions. Due to that, it is a separate target. Its us
age can be |
| 97 # controlled by skia_codec_decodes_raw flag. | 91 # controlled by skia_codec_decodes_raw flag. |
| 98 'target_name': 'raw_codec', | 92 'target_name': 'raw_codec', |
| 99 'product_name': 'raw_codec', | 93 'product_name': 'raw_codec', |
| 100 'type': 'static_library', | 94 'type': 'static_library', |
| 101 'dependencies': [ | 95 'dependencies': [ |
| 102 'core.gyp:*', | 96 'core.gyp:*', |
| 103 'dng_sdk.gyp:dng_sdk-selector', | 97 'dng_sdk.gyp:dng_sdk-selector', |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 ['skia_os == "ios" or skia_os == "mac"', { | 132 ['skia_os == "ios" or skia_os == "mac"', { |
| 139 'xcode_settings': { | 133 'xcode_settings': { |
| 140 'OTHER_CFLAGS': ['-fexceptions'], | 134 'OTHER_CFLAGS': ['-fexceptions'], |
| 141 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'], | 135 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'], |
| 142 }, | 136 }, |
| 143 }], | 137 }], |
| 144 ], | 138 ], |
| 145 }, | 139 }, |
| 146 ], | 140 ], |
| 147 } | 141 } |
| OLD | NEW |