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