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