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', |
jvanverth | 94a2fbc | 2015-07-02 10:40:24 -0700 | [diff] [blame] | 21 | 'libjpeg.gyp:libjpeg', |
scroggo | 6f5e619 | 2015-06-18 12:53:43 -0700 | [diff] [blame] | 22 | 'libwebp.gyp:libwebp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 23 | ], |
scroggo | 0524590 | 2015-03-25 11:11:52 -0700 | [diff] [blame] | 24 | 'cflags':[ |
| 25 | # FIXME: This gets around a longjmp warning. See |
| 26 | # 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', |
| 28 | ], |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 29 | 'include_dirs': [ |
| 30 | '../include/codec', |
| 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': [ |
| 35 | '../src/codec/SkCodec.cpp', |
tomhudson | 7aa846c | 2015-03-24 13:47:41 -0700 | [diff] [blame] | 36 | '../src/codec/SkCodec_libbmp.cpp', |
msarett | 8c8f22a | 2015-04-01 06:58:48 -0700 | [diff] [blame] | 37 | '../src/codec/SkCodec_libgif.cpp', |
msarett | 9bde918 | 2015-03-25 05:27:48 -0700 | [diff] [blame] | 38 | '../src/codec/SkCodec_libico.cpp', |
| 39 | '../src/codec/SkCodec_libpng.cpp', |
halcanary | a096d7a | 2015-03-27 12:16:53 -0700 | [diff] [blame] | 40 | '../src/codec/SkCodec_wbmp.cpp', |
msarett | 8c8f22a | 2015-04-01 06:58:48 -0700 | [diff] [blame] | 41 | '../src/codec/SkGifInterlaceIter.cpp', |
msarett | e16b04a | 2015-04-15 07:32:19 -0700 | [diff] [blame] | 42 | '../src/codec/SkJpegCodec.cpp', |
| 43 | '../src/codec/SkJpegDecoderMgr.cpp', |
mtklein | 525e90a | 2015-06-18 09:58:57 -0700 | [diff] [blame] | 44 | '../src/codec/SkJpegUtility_codec.cpp', |
msarett | 7411438 | 2015-03-16 11:55:18 -0700 | [diff] [blame] | 45 | '../src/codec/SkMaskSwizzler.cpp', |
| 46 | '../src/codec/SkMasks.cpp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 47 | '../src/codec/SkSwizzler.cpp', |
scroggo | 6f5e619 | 2015-06-18 12:53:43 -0700 | [diff] [blame] | 48 | '../src/codec/SkWebpCodec.cpp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 49 | ], |
| 50 | 'direct_dependent_settings': { |
| 51 | 'include_dirs': [ |
| 52 | '../include/codec', |
| 53 | ], |
| 54 | }, |
djsollen | b2a6fe7 | 2015-04-03 12:35:27 -0700 | [diff] [blame] | 55 | 'conditions': [ |
| 56 | [ 'skia_android_framework == 1', |
| 57 | { |
| 58 | # TODO(djsollen): this is a temporary dependency until we can update |
| 59 | # the android framework to a more recent version of libpng. |
| 60 | 'dependencies': [ |
| 61 | 'libpng.gyp:libpng', |
| 62 | ], |
| 63 | }, { # !skia_android_framework |
| 64 | 'dependencies': [ |
| 65 | 'libpng.gyp:libpng_static', |
| 66 | ], |
| 67 | } |
| 68 | ] |
| 69 | ] |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 70 | }, |
| 71 | ], |
| 72 | } |