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 | b747b90 | 2015-11-06 11:15:49 -0800 | [diff] [blame] | 20 | 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', |
| 21 | 'libpng.gyp:libpng', |
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 | ], |
| 24 | 'include_dirs': [ |
| 25 | '../include/codec', |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 26 | '../include/private', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 27 | '../src/codec', |
msarett | 9bde918 | 2015-03-25 05:27:48 -0700 | [diff] [blame] | 28 | '../src/core', |
msarett | a51e778 | 2016-01-12 06:51:11 -0800 | [diff] [blame] | 29 | '../src/utils', |
scroggo | 19b9153 | 2016-10-24 09:03:26 -0700 | [diff] [blame] | 30 | '../third_party/gif', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 31 | ], |
| 32 | 'sources': [ |
msarett | 3d9d7a7 | 2015-10-21 10:27:10 -0700 | [diff] [blame] | 33 | '../src/codec/SkAndroidCodec.cpp', |
msarett | b46e5e2 | 2015-07-30 11:36:40 -0700 | [diff] [blame] | 34 | '../src/codec/SkBmpCodec.cpp', |
msarett | 4ab9d5f | 2015-08-06 15:34:42 -0700 | [diff] [blame] | 35 | '../src/codec/SkBmpMaskCodec.cpp', |
| 36 | '../src/codec/SkBmpRLECodec.cpp', |
| 37 | '../src/codec/SkBmpStandardCodec.cpp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 38 | '../src/codec/SkCodec.cpp', |
msarett | 1a46467 | 2016-01-07 13:17:19 -0800 | [diff] [blame] | 39 | '../src/codec/SkGifCodec.cpp', |
| 40 | '../src/codec/SkIcoCodec.cpp', |
msarett | e16b04a | 2015-04-15 07:32:19 -0700 | [diff] [blame] | 41 | '../src/codec/SkJpegCodec.cpp', |
| 42 | '../src/codec/SkJpegDecoderMgr.cpp', |
msarett | c1d0312 | 2016-03-25 08:58:55 -0700 | [diff] [blame] | 43 | '../src/codec/SkJpegUtility.cpp', |
msarett | 7411438 | 2015-03-16 11:55:18 -0700 | [diff] [blame] | 44 | '../src/codec/SkMaskSwizzler.cpp', |
| 45 | '../src/codec/SkMasks.cpp', |
msarett | be1d555 | 2016-01-21 09:05:23 -0800 | [diff] [blame] | 46 | '../src/codec/SkPngCodec.cpp', |
msarett | e6dd004 | 2015-10-09 11:07:34 -0700 | [diff] [blame] | 47 | '../src/codec/SkSampler.cpp', |
scroggo | a3f792d | 2015-10-28 14:06:10 -0700 | [diff] [blame] | 48 | '../src/codec/SkSampledCodec.cpp', |
scroggo | 19b9153 | 2016-10-24 09:03:26 -0700 | [diff] [blame] | 49 | '../src/codec/SkStreamBuffer.cpp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 50 | '../src/codec/SkSwizzler.cpp', |
msarett | 1a46467 | 2016-01-07 13:17:19 -0800 | [diff] [blame] | 51 | '../src/codec/SkWbmpCodec.cpp', |
msarett | 3d9d7a7 | 2015-10-21 10:27:10 -0700 | [diff] [blame] | 52 | '../src/codec/SkWebpAdapterCodec.cpp', |
scroggo | 6f5e619 | 2015-06-18 12:53:43 -0700 | [diff] [blame] | 53 | '../src/codec/SkWebpCodec.cpp', |
msarett | edd2dcf | 2016-01-14 13:12:26 -0800 | [diff] [blame] | 54 | |
| 55 | '../src/codec/SkCodecImageGenerator.cpp', |
msarett | 8715d47 | 2016-02-17 10:02:29 -0800 | [diff] [blame] | 56 | '../src/ports/SkImageGenerator_skia.cpp', |
scroggo | 19b9153 | 2016-10-24 09:03:26 -0700 | [diff] [blame] | 57 | |
scroggo | 3d3a65c | 2016-10-24 12:28:30 -0700 | [diff] [blame] | 58 | '../third_party/gif/SkGifImageReader.cpp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 59 | ], |
| 60 | 'direct_dependent_settings': { |
| 61 | 'include_dirs': [ |
| 62 | '../include/codec', |
| 63 | ], |
| 64 | }, |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 65 | 'conditions': [ |
scroggo | 1497f9f | 2016-02-02 11:56:33 -0800 | [diff] [blame] | 66 | ['skia_codec_decodes_raw', { |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 67 | 'dependencies': [ |
| 68 | 'raw_codec', |
| 69 | ], |
| 70 | },], |
| 71 | ], |
| 72 | }, { |
| 73 | # RAW codec needs exceptions. Due to that, it is a separate target. Its usage can be |
scroggo | 1497f9f | 2016-02-02 11:56:33 -0800 | [diff] [blame] | 74 | # controlled by skia_codec_decodes_raw flag. |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 75 | 'target_name': 'raw_codec', |
| 76 | 'product_name': 'raw_codec', |
| 77 | 'type': 'static_library', |
| 78 | 'dependencies': [ |
| 79 | 'core.gyp:*', |
| 80 | 'dng_sdk.gyp:dng_sdk-selector', |
| 81 | 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', |
| 82 | 'piex.gyp:piex-selector', |
| 83 | ], |
| 84 | 'cflags':[ |
| 85 | '-fexceptions', |
| 86 | ], |
yujieqin | 076d83d | 2016-01-27 08:25:53 -0800 | [diff] [blame] | 87 | 'msvs_settings': { |
| 88 | 'VCCLCompilerTool': { |
| 89 | # Need this because we are handling exception in SkRawCodec, which will trigger warning |
| 90 | # C4530. Add this flag as suggested by the compiler. |
| 91 | 'AdditionalOptions': ['/EHsc', ], |
| 92 | }, |
| 93 | }, |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 94 | 'include_dirs': [ |
| 95 | '../include/codec', |
| 96 | '../include/private', |
| 97 | '../src/codec', |
| 98 | '../src/core', |
| 99 | ], |
| 100 | 'sources': [ |
| 101 | '../src/codec/SkRawAdapterCodec.cpp', |
| 102 | '../src/codec/SkRawCodec.cpp', |
| 103 | ], |
| 104 | 'direct_dependent_settings': { |
| 105 | 'include_dirs': [ |
| 106 | '../include/codec', |
| 107 | ], |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 108 | }, |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 109 | 'conditions': [ |
| 110 | ['skia_arch_type == "x86" or skia_arch_type == "arm"', { |
| 111 | 'defines': [ |
| 112 | 'qDNGBigEndian=0', |
| 113 | ], |
| 114 | }], |
| 115 | ['skia_os == "ios" or skia_os == "mac"', { |
| 116 | 'xcode_settings': { |
| 117 | 'OTHER_CFLAGS': ['-fexceptions'], |
| 118 | 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'], |
| 119 | }, |
| 120 | }], |
| 121 | ], |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 122 | }, |
| 123 | ], |
| 124 | } |