bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +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:*', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 10 | 'utils.gyp:utils', |
| 11 | ], |
robertphillips@google.com | 3a4553e | 2012-04-05 14:52:01 +0000 | [diff] [blame] | 12 | 'export_dependent_settings': [ |
| 13 | 'libjpeg.gyp:*', |
| 14 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 15 | 'include_dirs': [ |
bungeman@google.com | 5a64e58 | 2012-03-29 14:51:56 +0000 | [diff] [blame] | 16 | '../include/config', |
| 17 | '../include/core', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 18 | '../include/images', |
| 19 | ], |
| 20 | 'sources': [ |
scroggo@google.com | 9f686f3 | 2012-11-29 21:05:37 +0000 | [diff] [blame] | 21 | '../include/images/SkBitmapFactory.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 22 | '../include/images/SkFlipPixelRef.h', |
| 23 | '../include/images/SkImageDecoder.h', |
| 24 | '../include/images/SkImageEncoder.h', |
| 25 | '../include/images/SkImageRef.h', |
| 26 | '../include/images/SkImageRef_GlobalPool.h', |
| 27 | '../include/images/SkJpegUtility.h', |
| 28 | '../include/images/SkMovie.h', |
| 29 | '../include/images/SkPageFlipper.h', |
| 30 | |
| 31 | '../src/images/bmpdecoderhelper.cpp', |
| 32 | '../src/images/bmpdecoderhelper.h', |
scroggo@google.com | 9f686f3 | 2012-11-29 21:05:37 +0000 | [diff] [blame] | 33 | '../src/images/SkBitmapFactory.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 34 | '../src/images/SkFDStream.cpp', |
| 35 | '../src/images/SkFlipPixelRef.cpp', |
| 36 | '../src/images/SkImageDecoder.cpp', |
| 37 | '../src/images/SkImageDecoder_Factory.cpp', |
robertphillips@google.com | 3a4553e | 2012-04-05 14:52:01 +0000 | [diff] [blame] | 38 | '../src/images/SkImageDecoder_libjpeg.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 39 | '../src/images/SkImageDecoder_libbmp.cpp', |
| 40 | '../src/images/SkImageDecoder_libgif.cpp', |
| 41 | '../src/images/SkImageDecoder_libico.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 42 | '../src/images/SkImageDecoder_libpng.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 43 | '../src/images/SkImageDecoder_wbmp.cpp', |
| 44 | '../src/images/SkImageEncoder.cpp', |
| 45 | '../src/images/SkImageEncoder_Factory.cpp', |
| 46 | '../src/images/SkImageRef.cpp', |
| 47 | '../src/images/SkImageRefPool.cpp', |
| 48 | '../src/images/SkImageRefPool.h', |
| 49 | '../src/images/SkImageRef_GlobalPool.cpp', |
scroggo@google.com | 5a7c6be | 2012-10-04 21:46:08 +0000 | [diff] [blame] | 50 | '../src/images/SkImages.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 51 | '../src/images/SkJpegUtility.cpp', |
| 52 | '../src/images/SkMovie.cpp', |
| 53 | '../src/images/SkMovie_gif.cpp', |
| 54 | '../src/images/SkPageFlipper.cpp', |
| 55 | '../src/images/SkScaledBitmapSampler.cpp', |
| 56 | '../src/images/SkScaledBitmapSampler.h', |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 57 | |
| 58 | '../src/ports/SkImageDecoder_CG.cpp', |
| 59 | '../src/ports/SkImageDecoder_WIC.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 60 | ], |
| 61 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 62 | [ 'skia_os == "win"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 63 | 'sources!': [ |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 64 | '../src/images/SkFDStream.cpp', |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 65 | '../src/images/SkImageDecoder_Factory.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 66 | '../src/images/SkImageDecoder_libgif.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 67 | '../src/images/SkImageDecoder_libpng.cpp', |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 68 | '../src/images/SkImageEncoder_Factory.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 69 | '../src/images/SkMovie_gif.cpp', |
| 70 | ], |
bsalomon@google.com | 897e66c | 2011-11-21 21:04:06 +0000 | [diff] [blame] | 71 | 'link_settings': { |
| 72 | 'libraries': [ |
| 73 | 'windowscodecs.lib', |
| 74 | ], |
| 75 | }, |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 76 | },{ #else if skia_os != win |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 77 | 'sources!': [ |
| 78 | '../src/ports/SkImageDecoder_WIC.cpp', |
| 79 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 80 | }], |
caryclark@google.com | 35f5ac9 | 2012-09-18 15:41:18 +0000 | [diff] [blame] | 81 | [ 'skia_os in ["mac", "ios"]', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 82 | 'sources!': [ |
reed@google.com | af9d9c2 | 2011-06-15 17:33:29 +0000 | [diff] [blame] | 83 | '../src/images/SkImageDecoder_Factory.cpp', |
| 84 | '../src/images/SkImageDecoder_libpng.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 85 | '../src/images/SkImageDecoder_libgif.cpp', |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 86 | '../src/images/SkImageEncoder_Factory.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 87 | '../src/images/SkMovie_gif.cpp', |
| 88 | ], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 89 | },{ #else if skia_os != mac |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 90 | 'sources!': [ |
| 91 | '../src/ports/SkImageDecoder_CG.cpp', |
| 92 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 93 | }], |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 94 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl"]', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 95 | 'sources!': [ |
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 | 38a9134 | 2011-06-15 13:45:10 +0000 | [diff] [blame] | 99 | # libpng stuff: |
| 100 | # Any targets that depend on this target should link in libpng and |
| 101 | # our code that calls it. |
| 102 | # See http://code.google.com/p/gyp/wiki/InputFormatReference#Dependent_Settings |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 103 | 'link_settings': { |
senorblanco@chromium.org | 10a9465 | 2011-06-20 19:56:53 +0000 | [diff] [blame] | 104 | 'sources': [ |
| 105 | '../src/images/SkImageDecoder_libpng.cpp', |
| 106 | ], |
epoger@google.com | b1b721a | 2011-06-16 12:27:14 +0000 | [diff] [blame] | 107 | 'libraries': [ |
| 108 | '-lpng', |
| 109 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 110 | }, |
epoger@google.com | 38a9134 | 2011-06-15 13:45:10 +0000 | [diff] [blame] | 111 | # end libpng stuff |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 112 | }], |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 113 | [ 'skia_os == "android"', { |
| 114 | 'sources!': [ |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 115 | ], |
| 116 | 'dependencies': [ |
borenet@google.com | af73091 | 2012-08-09 15:54:28 +0000 | [diff] [blame] | 117 | 'android_deps.gyp:gif', |
| 118 | 'android_deps.gyp:png', |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 119 | ], |
djsollen@google.com | 85c1c6e | 2012-02-24 19:45:16 +0000 | [diff] [blame] | 120 | 'defines': [ |
| 121 | 'SK_ENABLE_LIBPNG', |
| 122 | ], |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 123 | }], |
caryclark@google.com | 35f5ac9 | 2012-09-18 15:41:18 +0000 | [diff] [blame] | 124 | [ 'skia_os == "ios"', { |
| 125 | 'include_dirs': [ |
| 126 | '../include/utils/mac', |
| 127 | ], |
| 128 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 129 | ], |
| 130 | 'direct_dependent_settings': { |
| 131 | 'include_dirs': [ |
| 132 | '../include/images', |
| 133 | ], |
| 134 | }, |
| 135 | }, |
| 136 | ], |
| 137 | } |
| 138 | |
| 139 | # Local Variables: |
| 140 | # tab-width:2 |
| 141 | # indent-tabs-mode:nil |
| 142 | # End: |
| 143 | # vim: set expandtab tabstop=2 shiftwidth=2: |