| 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', |
| 22 'libpng.gyp:libpng', |
| 21 'libwebp.gyp:libwebp', | 23 'libwebp.gyp:libwebp', |
| 22 ], | 24 ], |
| 23 'cflags':[ | 25 'cflags':[ |
| 24 # FIXME: This gets around a longjmp warning. See | 26 # FIXME: This gets around a longjmp warning. See |
| 25 # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-
GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio | 27 # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-
GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio |
| 26 '-Wno-clobbered', | 28 '-Wno-clobbered', |
| 27 ], | 29 ], |
| 28 'include_dirs': [ | 30 'include_dirs': [ |
| 29 '../include/codec', | 31 '../include/codec', |
| 30 '../include/private', | 32 '../include/private', |
| (...skipping 20 matching lines...) Expand all Loading... |
| 51 '../src/codec/SkSampledCodec.cpp', | 53 '../src/codec/SkSampledCodec.cpp', |
| 52 '../src/codec/SkSwizzler.cpp', | 54 '../src/codec/SkSwizzler.cpp', |
| 53 '../src/codec/SkWebpAdapterCodec.cpp', | 55 '../src/codec/SkWebpAdapterCodec.cpp', |
| 54 '../src/codec/SkWebpCodec.cpp', | 56 '../src/codec/SkWebpCodec.cpp', |
| 55 ], | 57 ], |
| 56 'direct_dependent_settings': { | 58 'direct_dependent_settings': { |
| 57 'include_dirs': [ | 59 'include_dirs': [ |
| 58 '../include/codec', | 60 '../include/codec', |
| 59 ], | 61 ], |
| 60 }, | 62 }, |
| 61 'conditions': [ | 63 'defines': [ |
| 62 [ 'skia_android_framework == 1', | 64 'TURBO_HAS_SKIP', |
| 63 { | 65 ], |
| 64 # TODO(djsollen): this is a temporary dependency until we can update | |
| 65 # the android framework to a more recent version of libpng. | |
| 66 'dependencies': [ | |
| 67 'libpng.gyp:libpng', | |
| 68 ], | |
| 69 # TODO(msarett): Add libjpeg-turbo to Android so we can compile SkJp
egCodec | |
| 70 # for the framework. | |
| 71 'sources!': [ | |
| 72 '../src/codec/SkJpegCodec.cpp', | |
| 73 '../src/codec/SkJpegDecoderMgr.cpp', | |
| 74 '../src/codec/SkJpegUtility_codec.cpp', | |
| 75 ], | |
| 76 }, { # !skia_android_framework | |
| 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', | |
| 81 'libpng.gyp:libpng_static', | |
| 82 ], | |
| 83 'export_dependent_settings': [ | |
| 84 'libjpeg-turbo.gyp:libjpeg-turbo', | |
| 85 ], | |
| 86 'defines': [ | |
| 87 'TURBO_HAS_SKIP', | |
| 88 ], | |
| 89 } | |
| 90 ] | |
| 91 ] | |
| 92 }, | 66 }, |
| 93 ], | 67 ], |
| 94 } | 68 } |
| OLD | NEW |