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