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', |
msarett | b747b90 | 2015-11-06 11:15:49 -0800 | [diff] [blame] | 21 | 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', |
| 22 | 'libpng.gyp:libpng', |
scroggo | 6f5e619 | 2015-06-18 12:53:43 -0700 | [diff] [blame] | 23 | 'libwebp.gyp:libwebp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 24 | ], |
scroggo | 0524590 | 2015-03-25 11:11:52 -0700 | [diff] [blame] | 25 | 'cflags':[ |
| 26 | # FIXME: This gets around a longjmp warning. See |
| 27 | # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio |
herb | 39cbd2b | 2015-12-09 12:27:31 -0800 | [diff] [blame] | 28 | '-Wno-clobbered -Wno-error', |
scroggo | 0524590 | 2015-03-25 11:11:52 -0700 | [diff] [blame] | 29 | ], |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 30 | 'include_dirs': [ |
| 31 | '../include/codec', |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 32 | '../include/private', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 33 | '../src/codec', |
msarett | 9bde918 | 2015-03-25 05:27:48 -0700 | [diff] [blame] | 34 | '../src/core', |
msarett | a51e778 | 2016-01-12 06:51:11 -0800 | [diff] [blame] | 35 | '../src/utils', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 36 | ], |
| 37 | 'sources': [ |
msarett | 3d9d7a7 | 2015-10-21 10:27:10 -0700 | [diff] [blame] | 38 | '../src/codec/SkAndroidCodec.cpp', |
msarett | b46e5e2 | 2015-07-30 11:36:40 -0700 | [diff] [blame] | 39 | '../src/codec/SkBmpCodec.cpp', |
msarett | 4ab9d5f | 2015-08-06 15:34:42 -0700 | [diff] [blame] | 40 | '../src/codec/SkBmpMaskCodec.cpp', |
| 41 | '../src/codec/SkBmpRLECodec.cpp', |
| 42 | '../src/codec/SkBmpStandardCodec.cpp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 43 | '../src/codec/SkCodec.cpp', |
msarett | 1a46467 | 2016-01-07 13:17:19 -0800 | [diff] [blame] | 44 | '../src/codec/SkGifCodec.cpp', |
| 45 | '../src/codec/SkIcoCodec.cpp', |
msarett | e16b04a | 2015-04-15 07:32:19 -0700 | [diff] [blame] | 46 | '../src/codec/SkJpegCodec.cpp', |
| 47 | '../src/codec/SkJpegDecoderMgr.cpp', |
mtklein | 525e90a | 2015-06-18 09:58:57 -0700 | [diff] [blame] | 48 | '../src/codec/SkJpegUtility_codec.cpp', |
msarett | 7411438 | 2015-03-16 11:55:18 -0700 | [diff] [blame] | 49 | '../src/codec/SkMaskSwizzler.cpp', |
| 50 | '../src/codec/SkMasks.cpp', |
msarett | be1d555 | 2016-01-21 09:05:23 -0800 | [diff] [blame] | 51 | '../src/codec/SkPngCodec.cpp', |
msarett | e6dd004 | 2015-10-09 11:07:34 -0700 | [diff] [blame] | 52 | '../src/codec/SkSampler.cpp', |
scroggo | a3f792d | 2015-10-28 14:06:10 -0700 | [diff] [blame] | 53 | '../src/codec/SkSampledCodec.cpp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 54 | '../src/codec/SkSwizzler.cpp', |
msarett | 1a46467 | 2016-01-07 13:17:19 -0800 | [diff] [blame] | 55 | '../src/codec/SkWbmpCodec.cpp', |
msarett | 3d9d7a7 | 2015-10-21 10:27:10 -0700 | [diff] [blame] | 56 | '../src/codec/SkWebpAdapterCodec.cpp', |
scroggo | 6f5e619 | 2015-06-18 12:53:43 -0700 | [diff] [blame] | 57 | '../src/codec/SkWebpCodec.cpp', |
msarett | edd2dcf | 2016-01-14 13:12:26 -0800 | [diff] [blame] | 58 | |
| 59 | '../src/codec/SkCodecImageGenerator.cpp', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 60 | ], |
| 61 | 'direct_dependent_settings': { |
| 62 | 'include_dirs': [ |
| 63 | '../include/codec', |
| 64 | ], |
| 65 | }, |
msarett | b747b90 | 2015-11-06 11:15:49 -0800 | [diff] [blame] | 66 | 'defines': [ |
| 67 | 'TURBO_HAS_SKIP', |
| 68 | ], |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 69 | 'conditions': [ |
| 70 | # FIXME: fix the support for Windows. (Issue with _hypot in DNG SDK). |
| 71 | ['skia_codec_decodes_raw and skia_os != "win" and skia_os != "chromeos"', { |
| 72 | 'dependencies': [ |
| 73 | 'raw_codec', |
| 74 | ], |
| 75 | },], |
| 76 | ], |
| 77 | }, { |
| 78 | # RAW codec needs exceptions. Due to that, it is a separate target. Its usage can be |
| 79 | # controlled by SK_CODEC_DECODES_RAW flag. |
| 80 | 'target_name': 'raw_codec', |
| 81 | 'product_name': 'raw_codec', |
| 82 | 'type': 'static_library', |
| 83 | 'dependencies': [ |
| 84 | 'core.gyp:*', |
| 85 | 'dng_sdk.gyp:dng_sdk-selector', |
| 86 | 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', |
| 87 | 'piex.gyp:piex-selector', |
| 88 | ], |
| 89 | 'cflags':[ |
| 90 | '-fexceptions', |
| 91 | ], |
| 92 | 'include_dirs': [ |
| 93 | '../include/codec', |
| 94 | '../include/private', |
| 95 | '../src/codec', |
| 96 | '../src/core', |
| 97 | ], |
| 98 | 'sources': [ |
| 99 | '../src/codec/SkRawAdapterCodec.cpp', |
| 100 | '../src/codec/SkRawCodec.cpp', |
| 101 | ], |
| 102 | 'direct_dependent_settings': { |
| 103 | 'include_dirs': [ |
| 104 | '../include/codec', |
| 105 | ], |
| 106 | 'defines': [ |
| 107 | 'SK_CODEC_DECODES_RAW', |
| 108 | ], |
| 109 | }, |
| 110 | 'defines': [ |
| 111 | 'SK_CODEC_DECODES_RAW', |
| 112 | ], |
| 113 | 'conditions': [ |
| 114 | ['skia_arch_type == "x86" or skia_arch_type == "arm"', { |
| 115 | 'defines': [ |
| 116 | 'qDNGBigEndian=0', |
| 117 | ], |
| 118 | }], |
| 119 | ['skia_os == "ios" or skia_os == "mac"', { |
| 120 | 'xcode_settings': { |
| 121 | 'OTHER_CFLAGS': ['-fexceptions'], |
| 122 | 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'], |
| 123 | }, |
| 124 | }], |
| 125 | ], |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 126 | }, |
| 127 | ], |
| 128 | } |