scroggo | 648ac53 | 2015-03-25 07:16:13 -0700 | [diff] [blame] | 1 | # Copyright 2015 Google Inc. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
scroggo | 3e56227 | 2015-03-25 10:22:41 -0700 | [diff] [blame] | 5 | # Copyright 2015 Google Inc. |
| 6 | # |
| 7 | # Use of this source code is governed by a BSD-style license that can be |
| 8 | # found in the LICENSE file. |
scroggo | 648ac53 | 2015-03-25 07:16:13 -0700 | [diff] [blame] | 9 | |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 10 | # GYP file for codec project. |
| 11 | { |
| 12 | 'targets': [ |
| 13 | { |
| 14 | 'target_name': 'codec', |
| 15 | 'product_name': 'skia_codec', |
| 16 | 'type': 'static_library', |
| 17 | 'standalone_static_library': 1, |
| 18 | 'dependencies': [ |
| 19 | 'core.gyp:*', |
msarett | 8c8f22a | 2015-04-01 06:58:48 -0700 | [diff] [blame] | 20 | 'giflib.gyp:giflib', |
scroggo | 6f5e619 | 2015-06-18 12:53:43 -0700 | [diff] [blame] | 21 | 'libwebp.gyp:libwebp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 22 | ], |
scroggo | 0524590 | 2015-03-25 11:11:52 -0700 | [diff] [blame] | 23 | 'cflags':[ |
| 24 | # 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 |
| 26 | '-Wno-clobbered', |
| 27 | ], |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 28 | 'include_dirs': [ |
| 29 | '../include/codec', |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 30 | '../include/private', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 31 | '../src/codec', |
msarett | 9bde918 | 2015-03-25 05:27:48 -0700 | [diff] [blame] | 32 | '../src/core', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 33 | ], |
| 34 | 'sources': [ |
msarett | b46e5e2 | 2015-07-30 11:36:40 -0700 | [diff] [blame] | 35 | '../src/codec/SkBmpCodec.cpp', |
msarett | 4ab9d5f | 2015-08-06 15:34:42 -0700 | [diff] [blame] | 36 | '../src/codec/SkBmpMaskCodec.cpp', |
| 37 | '../src/codec/SkBmpRLECodec.cpp', |
| 38 | '../src/codec/SkBmpStandardCodec.cpp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 39 | '../src/codec/SkCodec.cpp', |
msarett | 8c8f22a | 2015-04-01 06:58:48 -0700 | [diff] [blame] | 40 | '../src/codec/SkCodec_libgif.cpp', |
msarett | 9bde918 | 2015-03-25 05:27:48 -0700 | [diff] [blame] | 41 | '../src/codec/SkCodec_libico.cpp', |
| 42 | '../src/codec/SkCodec_libpng.cpp', |
halcanary | a096d7a | 2015-03-27 12:16:53 -0700 | [diff] [blame] | 43 | '../src/codec/SkCodec_wbmp.cpp', |
msarett | 8c8f22a | 2015-04-01 06:58:48 -0700 | [diff] [blame] | 44 | '../src/codec/SkGifInterlaceIter.cpp', |
msarett | e16b04a | 2015-04-15 07:32:19 -0700 | [diff] [blame] | 45 | '../src/codec/SkJpegCodec.cpp', |
| 46 | '../src/codec/SkJpegDecoderMgr.cpp', |
mtklein | 525e90a | 2015-06-18 09:58:57 -0700 | [diff] [blame] | 47 | '../src/codec/SkJpegUtility_codec.cpp', |
msarett | 7411438 | 2015-03-16 11:55:18 -0700 | [diff] [blame] | 48 | '../src/codec/SkMaskSwizzler.cpp', |
| 49 | '../src/codec/SkMasks.cpp', |
emmaleer | 8f4ba76 | 2015-08-14 07:44:46 -0700 | [diff] [blame^] | 50 | '../src/codec/SkScaledCodec.cpp', |
scroggo | 1c005e4 | 2015-08-04 09:24:45 -0700 | [diff] [blame] | 51 | '../src/codec/SkScanlineDecoder.cpp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 52 | '../src/codec/SkSwizzler.cpp', |
scroggo | 6f5e619 | 2015-06-18 12:53:43 -0700 | [diff] [blame] | 53 | '../src/codec/SkWebpCodec.cpp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 54 | ], |
| 55 | 'direct_dependent_settings': { |
| 56 | 'include_dirs': [ |
| 57 | '../include/codec', |
| 58 | ], |
| 59 | }, |
djsollen | b2a6fe7 | 2015-04-03 12:35:27 -0700 | [diff] [blame] | 60 | 'conditions': [ |
| 61 | [ 'skia_android_framework == 1', |
| 62 | { |
| 63 | # TODO(djsollen): this is a temporary dependency until we can update |
| 64 | # the android framework to a more recent version of libpng. |
| 65 | 'dependencies': [ |
| 66 | 'libpng.gyp:libpng', |
| 67 | ], |
msarett | 5513691 | 2015-07-22 09:08:28 -0700 | [diff] [blame] | 68 | # TODO(msarett): Add libjpeg-turbo to Android so we can compile SkJpegCodec |
msarett | 1c8a587 | 2015-07-07 08:50:01 -0700 | [diff] [blame] | 69 | # for the framework. |
| 70 | 'sources!': [ |
| 71 | '../src/codec/SkJpegCodec.cpp', |
| 72 | '../src/codec/SkJpegDecoderMgr.cpp', |
| 73 | '../src/codec/SkJpegUtility_codec.cpp', |
| 74 | ], |
djsollen | b2a6fe7 | 2015-04-03 12:35:27 -0700 | [diff] [blame] | 75 | }, { # !skia_android_framework |
| 76 | 'dependencies': [ |
msarett | 5513691 | 2015-07-22 09:08:28 -0700 | [diff] [blame] | 77 | # TODO(msarett): Add libjpeg-turbo to Android so this can be a global |
| 78 | # dependency. |
| 79 | 'libjpeg-turbo.gyp:libjpeg-turbo', |
djsollen | b2a6fe7 | 2015-04-03 12:35:27 -0700 | [diff] [blame] | 80 | 'libpng.gyp:libpng_static', |
| 81 | ], |
msarett | 5513691 | 2015-07-22 09:08:28 -0700 | [diff] [blame] | 82 | 'export_dependent_settings': [ |
| 83 | 'libjpeg-turbo.gyp:libjpeg-turbo', |
| 84 | ], |
msarett | 1c8a587 | 2015-07-07 08:50:01 -0700 | [diff] [blame] | 85 | 'cflags': [ |
| 86 | '-DTURBO_HAS_SKIP', |
| 87 | ], |
djsollen | b2a6fe7 | 2015-04-03 12:35:27 -0700 | [diff] [blame] | 88 | } |
| 89 | ] |
| 90 | ] |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 91 | }, |
| 92 | ], |
| 93 | } |