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