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:*', |
commit-bot@chromium.org | a936e37 | 2013-03-14 14:42:18 +0000 | [diff] [blame] | 12 | 'libwebp.gyp:libwebp', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 13 | 'utils.gyp:utils', |
| 14 | ], |
robertphillips@google.com | 3a4553e | 2012-04-05 14:52:01 +0000 | [diff] [blame] | 15 | 'export_dependent_settings': [ |
| 16 | 'libjpeg.gyp:*', |
| 17 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 18 | 'include_dirs': [ |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 19 | '../include/images', |
halcanary@google.com | ad04eb4 | 2013-11-21 15:32:08 +0000 | [diff] [blame] | 20 | '../src/lazy', |
scroggo@google.com | 39edf4c | 2013-04-25 17:33:51 +0000 | [diff] [blame] | 21 | # for access to SkErrorInternals.h |
| 22 | '../src/core/', |
scroggo@google.com | f8d7d27 | 2013-02-22 21:38:35 +0000 | [diff] [blame] | 23 | # for access to SkImagePriv.h |
| 24 | '../src/image/', |
scroggo@google.com | 1a2e71d | 2013-08-28 19:13:13 +0000 | [diff] [blame] | 25 | # So src/ports/SkImageDecoder_CG can access SkStreamHelpers.h |
| 26 | '../src/images/', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 27 | ], |
| 28 | 'sources': [ |
scroggo@google.com | 7def5e1 | 2013-05-31 14:00:10 +0000 | [diff] [blame] | 29 | '../include/images/SkForceLinking.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 30 | '../include/images/SkImageRef.h', |
| 31 | '../include/images/SkImageRef_GlobalPool.h', |
robertphillips@google.com | cb69319 | 2013-03-22 16:44:14 +0000 | [diff] [blame] | 32 | '../src/images/SkJpegUtility.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 33 | '../include/images/SkMovie.h', |
| 34 | '../include/images/SkPageFlipper.h', |
| 35 | |
| 36 | '../src/images/bmpdecoderhelper.cpp', |
| 37 | '../src/images/bmpdecoderhelper.h', |
commit-bot@chromium.org | a936e37 | 2013-03-14 14:42:18 +0000 | [diff] [blame] | 38 | |
halcanary@google.com | ad04eb4 | 2013-11-21 15:32:08 +0000 | [diff] [blame] | 39 | '../src/images/SkDecodingImageGenerator.cpp', |
halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 40 | '../src/images/SkDecodingImageGenerator.h', |
scroggo@google.com | 7def5e1 | 2013-05-31 14:00:10 +0000 | [diff] [blame] | 41 | '../src/images/SkForceLinking.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 42 | '../src/images/SkImageDecoder.cpp', |
scroggo@google.com | 4c6adf9 | 2013-04-17 21:07:55 +0000 | [diff] [blame] | 43 | '../src/images/SkImageDecoder_FactoryDefault.cpp', |
| 44 | '../src/images/SkImageDecoder_FactoryRegistrar.cpp', |
scroggo@google.com | c4ebdb0 | 2013-05-01 21:17:27 +0000 | [diff] [blame] | 45 | # If decoders are added/removed to/from (all/individual) |
scroggo@google.com | 7def5e1 | 2013-05-31 14:00:10 +0000 | [diff] [blame] | 46 | # platform(s), be sure to update SkForceLinking.cpp |
scroggo@google.com | c4ebdb0 | 2013-05-01 21:17:27 +0000 | [diff] [blame] | 47 | # so the right decoders will be forced to link. |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 48 | '../src/images/SkImageDecoder_libbmp.cpp', |
| 49 | '../src/images/SkImageDecoder_libgif.cpp', |
| 50 | '../src/images/SkImageDecoder_libico.cpp', |
commit-bot@chromium.org | a936e37 | 2013-03-14 14:42:18 +0000 | [diff] [blame] | 51 | '../src/images/SkImageDecoder_libjpeg.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 52 | '../src/images/SkImageDecoder_libpng.cpp', |
commit-bot@chromium.org | a936e37 | 2013-03-14 14:42:18 +0000 | [diff] [blame] | 53 | '../src/images/SkImageDecoder_libwebp.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 54 | '../src/images/SkImageDecoder_wbmp.cpp', |
| 55 | '../src/images/SkImageEncoder.cpp', |
| 56 | '../src/images/SkImageEncoder_Factory.cpp', |
bungeman@google.com | 8c6a4f2 | 2013-04-23 18:06:23 +0000 | [diff] [blame] | 57 | '../src/images/SkImageEncoder_argb.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 58 | '../src/images/SkImageRef.cpp', |
| 59 | '../src/images/SkImageRefPool.cpp', |
| 60 | '../src/images/SkImageRefPool.h', |
djsollen@google.com | 528a556 | 2013-02-01 15:57:13 +0000 | [diff] [blame] | 61 | '../src/images/SkImageRef_ashmem.h', |
| 62 | '../src/images/SkImageRef_ashmem.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 63 | '../src/images/SkImageRef_GlobalPool.cpp', |
scroggo@google.com | 5a7c6be | 2012-10-04 21:46:08 +0000 | [diff] [blame] | 64 | '../src/images/SkImages.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 65 | '../src/images/SkJpegUtility.cpp', |
| 66 | '../src/images/SkMovie.cpp', |
| 67 | '../src/images/SkMovie_gif.cpp', |
| 68 | '../src/images/SkPageFlipper.cpp', |
| 69 | '../src/images/SkScaledBitmapSampler.cpp', |
| 70 | '../src/images/SkScaledBitmapSampler.h', |
scroggo@google.com | dbf9f88 | 2013-08-21 15:01:48 +0000 | [diff] [blame] | 71 | '../src/images/SkStreamHelpers.cpp', |
| 72 | '../src/images/SkStreamHelpers.h', |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 73 | |
| 74 | '../src/ports/SkImageDecoder_CG.cpp', |
| 75 | '../src/ports/SkImageDecoder_WIC.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 76 | ], |
| 77 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 78 | [ 'skia_os == "win"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 79 | 'sources!': [ |
scroggo@google.com | 4c6adf9 | 2013-04-17 21:07:55 +0000 | [diff] [blame] | 80 | '../src/images/SkImageDecoder_FactoryDefault.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 81 | '../src/images/SkImageDecoder_libgif.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 82 | '../src/images/SkImageDecoder_libpng.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 83 | '../src/images/SkMovie_gif.cpp', |
| 84 | ], |
bsalomon@google.com | 897e66c | 2011-11-21 21:04:06 +0000 | [diff] [blame] | 85 | 'link_settings': { |
| 86 | 'libraries': [ |
bungeman@google.com | 24339aa | 2013-12-02 19:54:33 +0000 | [diff] [blame] | 87 | '-lwindowscodecs.lib', |
bsalomon@google.com | 897e66c | 2011-11-21 21:04:06 +0000 | [diff] [blame] | 88 | ], |
| 89 | }, |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 90 | },{ #else if skia_os != win |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 91 | 'sources!': [ |
| 92 | '../src/ports/SkImageDecoder_WIC.cpp', |
| 93 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 94 | }], |
caryclark@google.com | 35f5ac9 | 2012-09-18 15:41:18 +0000 | [diff] [blame] | 95 | [ 'skia_os in ["mac", "ios"]', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 96 | 'sources!': [ |
scroggo@google.com | 4c6adf9 | 2013-04-17 21:07:55 +0000 | [diff] [blame] | 97 | '../src/images/SkImageDecoder_FactoryDefault.cpp', |
reed@google.com | af9d9c2 | 2011-06-15 17:33:29 +0000 | [diff] [blame] | 98 | '../src/images/SkImageDecoder_libpng.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 99 | '../src/images/SkImageDecoder_libgif.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 100 | '../src/images/SkMovie_gif.cpp', |
| 101 | ], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 102 | },{ #else if skia_os != mac |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 103 | 'sources!': [ |
| 104 | '../src/ports/SkImageDecoder_CG.cpp', |
| 105 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 106 | }], |
scroggo@google.com | 3f178280 | 2013-04-11 22:24:35 +0000 | [diff] [blame] | 107 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
scroggo@google.com | 9c5f969 | 2013-04-11 18:32:01 +0000 | [diff] [blame] | 108 | # Any targets that depend on this target should link in libpng, libgif, and |
epoger@google.com | 38a9134 | 2011-06-15 13:45:10 +0000 | [diff] [blame] | 109 | # our code that calls it. |
| 110 | # See http://code.google.com/p/gyp/wiki/InputFormatReference#Dependent_Settings |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 111 | 'link_settings': { |
epoger@google.com | b1b721a | 2011-06-16 12:27:14 +0000 | [diff] [blame] | 112 | 'libraries': [ |
scroggo@google.com | 9c5f969 | 2013-04-11 18:32:01 +0000 | [diff] [blame] | 113 | '-lgif', |
epoger@google.com | b1b721a | 2011-06-16 12:27:14 +0000 | [diff] [blame] | 114 | '-lpng', |
borenet@google.com | 327b9b2 | 2013-03-07 15:33:28 +0000 | [diff] [blame] | 115 | '-lz', |
epoger@google.com | b1b721a | 2011-06-16 12:27:14 +0000 | [diff] [blame] | 116 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 117 | }, |
scroggo@google.com | 9c5f969 | 2013-04-11 18:32:01 +0000 | [diff] [blame] | 118 | # end libpng/libgif stuff |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 119 | }], |
scroggo@google.com | 3f178280 | 2013-04-11 22:24:35 +0000 | [diff] [blame] | 120 | # FIXME: NaCl should be just like linux, etc, above, but it currently is separated out |
| 121 | # to remove gif. Once gif is supported by naclports, this can be merged into the above |
| 122 | # condition. |
| 123 | [ 'skia_os == "nacl"', { |
| 124 | 'sources!': [ |
| 125 | '../src/images/SkImageDecoder_libgif.cpp', |
| 126 | '../src/images/SkMovie_gif.cpp', |
| 127 | ], |
| 128 | 'link_settings': { |
scroggo@google.com | 3f178280 | 2013-04-11 22:24:35 +0000 | [diff] [blame] | 129 | 'libraries': [ |
| 130 | '-lpng', |
| 131 | '-lz', |
| 132 | ], |
| 133 | }, |
| 134 | }], |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 135 | [ 'skia_os == "android"', { |
djsollen@google.com | 528a556 | 2013-02-01 15:57:13 +0000 | [diff] [blame] | 136 | 'include_dirs': [ |
| 137 | '../src/utils', |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 138 | ], |
| 139 | 'dependencies': [ |
borenet@google.com | af73091 | 2012-08-09 15:54:28 +0000 | [diff] [blame] | 140 | 'android_deps.gyp:gif', |
| 141 | 'android_deps.gyp:png', |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 142 | ], |
djsollen@google.com | bcc6d7d | 2013-07-23 15:51:12 +0000 | [diff] [blame] | 143 | 'export_dependent_settings': [ |
| 144 | 'android_deps.gyp:png' |
| 145 | ], |
djsollen@google.com | 528a556 | 2013-02-01 15:57:13 +0000 | [diff] [blame] | 146 | },{ #else if skia_os != android |
| 147 | 'sources!': [ |
| 148 | '../src/images/SkImageRef_ashmem.h', |
| 149 | '../src/images/SkImageRef_ashmem.cpp', |
| 150 | ], |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 151 | }], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 152 | [ 'skia_os == "chromeos"', { |
| 153 | 'dependencies': [ |
| 154 | 'chromeos_deps.gyp:gif', |
| 155 | ], |
| 156 | 'link_settings': { |
| 157 | 'libraries': [ |
| 158 | '-lpng', |
| 159 | ], |
| 160 | }, |
| 161 | }], |
caryclark@google.com | 35f5ac9 | 2012-09-18 15:41:18 +0000 | [diff] [blame] | 162 | [ 'skia_os == "ios"', { |
| 163 | 'include_dirs': [ |
| 164 | '../include/utils/mac', |
| 165 | ], |
| 166 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 167 | ], |
| 168 | 'direct_dependent_settings': { |
| 169 | 'include_dirs': [ |
| 170 | '../include/images', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 171 | ], |
| 172 | }, |
| 173 | }, |
| 174 | ], |
| 175 | } |