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 | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 21 | ], |
scroggo | 0524590 | 2015-03-25 11:11:52 -0700 | [diff] [blame] | 22 | 'cflags':[ |
| 23 | # FIXME: This gets around a longjmp warning. See |
| 24 | # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio |
| 25 | '-Wno-clobbered', |
| 26 | ], |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 27 | 'include_dirs': [ |
| 28 | '../include/codec', |
| 29 | '../src/codec', |
msarett | 9bde918 | 2015-03-25 05:27:48 -0700 | [diff] [blame] | 30 | '../src/core', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 31 | ], |
| 32 | 'sources': [ |
| 33 | '../src/codec/SkCodec.cpp', |
tomhudson | 7aa846c | 2015-03-24 13:47:41 -0700 | [diff] [blame] | 34 | '../src/codec/SkCodec_libbmp.cpp', |
msarett | 8c8f22a | 2015-04-01 06:58:48 -0700 | [diff] [blame] | 35 | '../src/codec/SkCodec_libgif.cpp', |
msarett | 9bde918 | 2015-03-25 05:27:48 -0700 | [diff] [blame] | 36 | '../src/codec/SkCodec_libico.cpp', |
| 37 | '../src/codec/SkCodec_libpng.cpp', |
halcanary | a096d7a | 2015-03-27 12:16:53 -0700 | [diff] [blame] | 38 | '../src/codec/SkCodec_wbmp.cpp', |
msarett | 8c8f22a | 2015-04-01 06:58:48 -0700 | [diff] [blame] | 39 | '../src/codec/SkGifInterlaceIter.cpp', |
msarett | 7411438 | 2015-03-16 11:55:18 -0700 | [diff] [blame] | 40 | '../src/codec/SkMaskSwizzler.cpp', |
| 41 | '../src/codec/SkMasks.cpp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 42 | '../src/codec/SkSwizzler.cpp', |
| 43 | ], |
| 44 | 'direct_dependent_settings': { |
| 45 | 'include_dirs': [ |
| 46 | '../include/codec', |
| 47 | ], |
| 48 | }, |
djsollen | b2a6fe7 | 2015-04-03 12:35:27 -0700 | [diff] [blame^] | 49 | 'conditions': [ |
| 50 | [ 'skia_android_framework == 1', |
| 51 | { |
| 52 | # TODO(djsollen): this is a temporary dependency until we can update |
| 53 | # the android framework to a more recent version of libpng. |
| 54 | 'dependencies': [ |
| 55 | 'libpng.gyp:libpng', |
| 56 | ], |
| 57 | }, { # !skia_android_framework |
| 58 | 'dependencies': [ |
| 59 | 'libpng.gyp:libpng_static', |
| 60 | ], |
| 61 | } |
| 62 | ] |
| 63 | ] |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 64 | }, |
| 65 | ], |
| 66 | } |