| 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. |
| 11 { | 11 { |
| 12 'targets': [ | 12 'targets': [ |
| 13 { | 13 { |
| 14 'target_name': 'codec', | 14 'target_name': 'codec', |
| 15 'product_name': 'skia_codec', | 15 'product_name': 'skia_codec', |
| 16 'type': 'static_library', | 16 'type': 'static_library', |
| 17 'standalone_static_library': 1, | 17 'standalone_static_library': 1, |
| 18 'dependencies': [ | 18 'dependencies': [ |
| 19 'core.gyp:*', | 19 'core.gyp:*', |
| 20 'giflib.gyp:giflib', | 20 'giflib.gyp:giflib', |
| 21 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', | 21 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', |
| 22 'libpng.gyp:libpng', | 22 'libpng.gyp:libpng', |
| 23 'libwebp.gyp:libwebp', | 23 'libwebp.gyp:libwebp', |
| 24 ], | 24 ], |
| 25 'cflags':[ | 25 'cflags':[ |
| 26 # FIXME: This gets around a longjmp warning. See | 26 # FIXME: This gets around a warning: "Argument might be clobbered by lon
gjmp". |
| 27 # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-
GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio | 27 '-Wno-clobbered -Wno-error', |
| 28 '-Wno-clobbered -Wno-error', | |
| 29 ], | 28 ], |
| 30 'include_dirs': [ | 29 'include_dirs': [ |
| 31 '../include/codec', | 30 '../include/codec', |
| 32 '../include/private', | 31 '../include/private', |
| 33 '../src/codec', | 32 '../src/codec', |
| 34 '../src/core', | 33 '../src/core', |
| 35 '../src/utils', | 34 '../src/utils', |
| 36 ], | 35 ], |
| 37 'sources': [ | 36 'sources': [ |
| 38 '../src/codec/SkAndroidCodec.cpp', | 37 '../src/codec/SkAndroidCodec.cpp', |
| (...skipping 19 matching lines...) Expand all Loading... |
| 58 '../src/codec/SkWebpCodec.cpp', | 57 '../src/codec/SkWebpCodec.cpp', |
| 59 | 58 |
| 60 '../src/codec/SkCodecImageGenerator.cpp', | 59 '../src/codec/SkCodecImageGenerator.cpp', |
| 61 ], | 60 ], |
| 62 'direct_dependent_settings': { | 61 'direct_dependent_settings': { |
| 63 'include_dirs': [ | 62 'include_dirs': [ |
| 64 '../include/codec', | 63 '../include/codec', |
| 65 ], | 64 ], |
| 66 }, | 65 }, |
| 67 'defines': [ | 66 'defines': [ |
| 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 |
| 69 # required decoding libraries may choose to turn the codecs on or |
| 70 # off individually. |
| 71 'SK_CODEC_DECODES_GIF', |
| 72 'SK_CODEC_DECODES_JPEG', |
| 73 'SK_CODEC_DECODES_PNG', |
| 74 'SK_CODEC_DECODES_WEBP', |
| 75 |
| 76 # Turn on libjpeg-turbo optimizations since we know that the |
| 77 # appropriate version of libjpeg-turbo is present. |
| 68 'TURBO_HAS_SKIP', | 78 'TURBO_HAS_SKIP', |
| 69 'TURBO_HAS_565', | 79 'TURBO_HAS_565', |
| 70 ], | 80 ], |
| 71 'conditions': [ | 81 'conditions': [ |
| 72 ['skia_codec_decodes_raw', { | 82 ['skia_codec_decodes_raw', { |
| 73 'dependencies': [ | 83 'dependencies': [ |
| 74 'raw_codec', | 84 'raw_codec', |
| 75 ], | 85 ], |
| 76 },], | 86 },], |
| 77 ], | 87 ], |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 ['skia_os == "ios" or skia_os == "mac"', { | 131 ['skia_os == "ios" or skia_os == "mac"', { |
| 122 'xcode_settings': { | 132 'xcode_settings': { |
| 123 'OTHER_CFLAGS': ['-fexceptions'], | 133 'OTHER_CFLAGS': ['-fexceptions'], |
| 124 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'], | 134 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'], |
| 125 }, | 135 }, |
| 126 }], | 136 }], |
| 127 ], | 137 ], |
| 128 }, | 138 }, |
| 129 ], | 139 ], |
| 130 } | 140 } |
| OLD | NEW |