scroggo@google.com | 73e4d57 | 2013-05-20 22:15:32 +0000 | [diff] [blame] | 1 | # GYP file for images project. |
scroggo@google.com | 4c6adf9 | 2013-04-17 21:07:55 +0000 | [diff] [blame] | 2 | { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 3 | 'targets': [ |
| 4 | { |
| 5 | 'target_name': 'images', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 6 | 'product_name': 'skia_images', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 7 | 'type': 'static_library', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 8 | 'standalone_static_library': 1, |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 9 | 'dependencies': [ |
bungeman@google.com | b8f3655 | 2013-07-22 14:39:45 +0000 | [diff] [blame] | 10 | 'core.gyp:*', |
robertphillips@google.com | 3a4553e | 2012-04-05 14:52:01 +0000 | [diff] [blame] | 11 | 'libjpeg.gyp:*', |
robertphillips@google.com | 8cf81e0 | 2014-05-22 18:40:29 +0000 | [diff] [blame] | 12 | 'etc1.gyp:libetc1', |
krajcevski | 99ffe24 | 2014-06-03 13:04:35 -0700 | [diff] [blame] | 13 | 'ktx.gyp:libSkKTX', |
commit-bot@chromium.org | a936e37 | 2013-03-14 14:42:18 +0000 | [diff] [blame] | 14 | 'libwebp.gyp:libwebp', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 15 | 'utils.gyp:utils', |
| 16 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 17 | 'include_dirs': [ |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 18 | '../include/images', |
halcanary@google.com | ad04eb4 | 2013-11-21 15:32:08 +0000 | [diff] [blame] | 19 | '../src/lazy', |
scroggo@google.com | 39edf4c | 2013-04-25 17:33:51 +0000 | [diff] [blame] | 20 | # for access to SkErrorInternals.h |
| 21 | '../src/core/', |
scroggo@google.com | f8d7d27 | 2013-02-22 21:38:35 +0000 | [diff] [blame] | 22 | # for access to SkImagePriv.h |
| 23 | '../src/image/', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 24 | ], |
| 25 | 'sources': [ |
commit-bot@chromium.org | 29239a0 | 2014-05-27 14:59:47 +0000 | [diff] [blame] | 26 | '../include/images/SkDecodingImageGenerator.h', |
scroggo@google.com | 7def5e1 | 2013-05-31 14:00:10 +0000 | [diff] [blame] | 27 | '../include/images/SkForceLinking.h', |
robertphillips@google.com | cb69319 | 2013-03-22 16:44:14 +0000 | [diff] [blame] | 28 | '../src/images/SkJpegUtility.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 29 | '../include/images/SkMovie.h', |
| 30 | '../include/images/SkPageFlipper.h', |
| 31 | |
| 32 | '../src/images/bmpdecoderhelper.cpp', |
| 33 | '../src/images/bmpdecoderhelper.h', |
commit-bot@chromium.org | a936e37 | 2013-03-14 14:42:18 +0000 | [diff] [blame] | 34 | |
halcanary@google.com | ad04eb4 | 2013-11-21 15:32:08 +0000 | [diff] [blame] | 35 | '../src/images/SkDecodingImageGenerator.cpp', |
scroggo@google.com | 7def5e1 | 2013-05-31 14:00:10 +0000 | [diff] [blame] | 36 | '../src/images/SkForceLinking.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 37 | '../src/images/SkImageDecoder.cpp', |
scroggo@google.com | 4c6adf9 | 2013-04-17 21:07:55 +0000 | [diff] [blame] | 38 | '../src/images/SkImageDecoder_FactoryDefault.cpp', |
| 39 | '../src/images/SkImageDecoder_FactoryRegistrar.cpp', |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 40 | |
scroggo@google.com | c4ebdb0 | 2013-05-01 21:17:27 +0000 | [diff] [blame] | 41 | # If decoders are added/removed to/from (all/individual) |
scroggo@google.com | 7def5e1 | 2013-05-31 14:00:10 +0000 | [diff] [blame] | 42 | # platform(s), be sure to update SkForceLinking.cpp |
scroggo@google.com | c4ebdb0 | 2013-05-01 21:17:27 +0000 | [diff] [blame] | 43 | # so the right decoders will be forced to link. |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 44 | |
| 45 | # IMPORTANT: The build order of the SkImageDecoder_*.cpp files |
| 46 | # defines the order image decoders are tested when decoding a |
| 47 | # stream. The last decoder is the first one tested, so the .cpp |
| 48 | # files should be in listed in order from the least likely to be |
| 49 | # used, to the most likely (jpeg and png should be the last two |
| 50 | # for instance.) As a result, they are deliberately not in |
| 51 | # alphabetical order. |
| 52 | '../src/images/SkImageDecoder_wbmp.cpp', |
robertphillips@google.com | 8cf81e0 | 2014-05-22 18:40:29 +0000 | [diff] [blame] | 53 | '../src/images/SkImageDecoder_pkm.cpp', |
krajcevski | 99ffe24 | 2014-06-03 13:04:35 -0700 | [diff] [blame] | 54 | '../src/images/SkImageDecoder_ktx.cpp', |
krajcevski | 95b1b3d | 2014-08-07 12:58:38 -0700 | [diff] [blame] | 55 | '../src/images/SkImageDecoder_astc.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 56 | '../src/images/SkImageDecoder_libbmp.cpp', |
| 57 | '../src/images/SkImageDecoder_libgif.cpp', |
| 58 | '../src/images/SkImageDecoder_libico.cpp', |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 59 | '../src/images/SkImageDecoder_libwebp.cpp', |
commit-bot@chromium.org | a936e37 | 2013-03-14 14:42:18 +0000 | [diff] [blame] | 60 | '../src/images/SkImageDecoder_libjpeg.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 61 | '../src/images/SkImageDecoder_libpng.cpp', |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 62 | |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 63 | '../src/images/SkImageEncoder.cpp', |
| 64 | '../src/images/SkImageEncoder_Factory.cpp', |
bungeman@google.com | 8c6a4f2 | 2013-04-23 18:06:23 +0000 | [diff] [blame] | 65 | '../src/images/SkImageEncoder_argb.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 66 | '../src/images/SkJpegUtility.cpp', |
| 67 | '../src/images/SkMovie.cpp', |
| 68 | '../src/images/SkMovie_gif.cpp', |
| 69 | '../src/images/SkPageFlipper.cpp', |
| 70 | '../src/images/SkScaledBitmapSampler.cpp', |
| 71 | '../src/images/SkScaledBitmapSampler.h', |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 72 | |
| 73 | '../src/ports/SkImageDecoder_CG.cpp', |
| 74 | '../src/ports/SkImageDecoder_WIC.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 75 | ], |
| 76 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 77 | [ 'skia_os == "win"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 78 | 'sources!': [ |
scroggo@google.com | 4c6adf9 | 2013-04-17 21:07:55 +0000 | [diff] [blame] | 79 | '../src/images/SkImageDecoder_FactoryDefault.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 80 | '../src/images/SkImageDecoder_libgif.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 81 | '../src/images/SkImageDecoder_libpng.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 82 | '../src/images/SkMovie_gif.cpp', |
| 83 | ], |
bsalomon@google.com | 897e66c | 2011-11-21 21:04:06 +0000 | [diff] [blame] | 84 | 'link_settings': { |
| 85 | 'libraries': [ |
bungeman@google.com | 24339aa | 2013-12-02 19:54:33 +0000 | [diff] [blame] | 86 | '-lwindowscodecs.lib', |
bsalomon@google.com | 897e66c | 2011-11-21 21:04:06 +0000 | [diff] [blame] | 87 | ], |
| 88 | }, |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 89 | },{ #else if skia_os != win |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 90 | 'sources!': [ |
| 91 | '../src/ports/SkImageDecoder_WIC.cpp', |
| 92 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 93 | }], |
caryclark@google.com | 35f5ac9 | 2012-09-18 15:41:18 +0000 | [diff] [blame] | 94 | [ 'skia_os in ["mac", "ios"]', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 95 | 'sources!': [ |
scroggo@google.com | 4c6adf9 | 2013-04-17 21:07:55 +0000 | [diff] [blame] | 96 | '../src/images/SkImageDecoder_FactoryDefault.cpp', |
reed@google.com | af9d9c2 | 2011-06-15 17:33:29 +0000 | [diff] [blame] | 97 | '../src/images/SkImageDecoder_libpng.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 98 | '../src/images/SkImageDecoder_libgif.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 99 | '../src/images/SkMovie_gif.cpp', |
| 100 | ], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 101 | },{ #else if skia_os != mac |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 102 | 'sources!': [ |
| 103 | '../src/ports/SkImageDecoder_CG.cpp', |
| 104 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 105 | }], |
scroggo@google.com | 3f17828 | 2013-04-11 22:24:35 +0000 | [diff] [blame] | 106 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 107 | 'export_dependent_settings': [ |
| 108 | 'libpng.gyp:libpng', |
| 109 | 'giflib.gyp:giflib' |
| 110 | ], |
| 111 | 'dependencies': [ |
| 112 | 'libpng.gyp:libpng', |
| 113 | 'giflib.gyp:giflib' |
| 114 | ], |
scroggo@google.com | 9c5f969 | 2013-04-11 18:32:01 +0000 | [diff] [blame] | 115 | # end libpng/libgif stuff |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 116 | }], |
scroggo@google.com | 3f17828 | 2013-04-11 22:24:35 +0000 | [diff] [blame] | 117 | # FIXME: NaCl should be just like linux, etc, above, but it currently is separated out |
| 118 | # to remove gif. Once gif is supported by naclports, this can be merged into the above |
| 119 | # condition. |
| 120 | [ 'skia_os == "nacl"', { |
| 121 | 'sources!': [ |
| 122 | '../src/images/SkImageDecoder_libgif.cpp', |
| 123 | '../src/images/SkMovie_gif.cpp', |
| 124 | ], |
scroggo@google.com | 3f17828 | 2013-04-11 22:24:35 +0000 | [diff] [blame] | 125 | }], |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 126 | [ 'skia_os == "android"', { |
djsollen@google.com | 528a556 | 2013-02-01 15:57:13 +0000 | [diff] [blame] | 127 | 'include_dirs': [ |
| 128 | '../src/utils', |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 129 | ], |
| 130 | 'dependencies': [ |
borenet@google.com | af73091 | 2012-08-09 15:54:28 +0000 | [diff] [blame] | 131 | 'android_deps.gyp:gif', |
| 132 | 'android_deps.gyp:png', |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 133 | ], |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 134 | 'conditions': [ |
| 135 | [ 'skia_android_framework == 0', { |
| 136 | 'export_dependent_settings': [ |
djsollen | 38e44b0 | 2014-08-28 05:41:21 -0700 | [diff] [blame] | 137 | 'android_deps.gyp:png', |
| 138 | 'libjpeg.gyp:*' |
| 139 | ], |
| 140 | }, { |
| 141 | # The android framework disables these decoders as they are of little use to |
| 142 | # Java applications that can't take advantage of the compressed formats. |
| 143 | 'sources!': [ |
| 144 | '../src/images/SkImageDecoder_pkm.cpp', |
| 145 | '../src/images/SkImageDecoder_ktx.cpp', |
| 146 | '../src/images/SkImageDecoder_astc.cpp', |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 147 | ], |
| 148 | }], |
djsollen@google.com | bcc6d7d | 2013-07-23 15:51:12 +0000 | [diff] [blame] | 149 | ], |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 150 | }], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 151 | [ 'skia_os == "chromeos"', { |
| 152 | 'dependencies': [ |
| 153 | 'chromeos_deps.gyp:gif', |
commit-bot@chromium.org | 2ea14c6 | 2014-02-24 21:39:01 +0000 | [diff] [blame] | 154 | 'libpng.gyp:libpng', |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 155 | ], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 156 | }], |
caryclark@google.com | 35f5ac9 | 2012-09-18 15:41:18 +0000 | [diff] [blame] | 157 | [ 'skia_os == "ios"', { |
| 158 | 'include_dirs': [ |
| 159 | '../include/utils/mac', |
| 160 | ], |
| 161 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 162 | ], |
| 163 | 'direct_dependent_settings': { |
| 164 | 'include_dirs': [ |
| 165 | '../include/images', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 166 | ], |
| 167 | }, |
| 168 | }, |
| 169 | ], |
| 170 | } |