1{ 2 'targets': [ 3 { 4 'target_name': 'images', 5 'product_name': 'skia_images', 6 'type': 'static_library', 7 'standalone_static_library': 1, 8 'dependencies': [ 9 'libjpeg.gyp:*', 10 'utils.gyp:utils', 11 ], 12 'export_dependent_settings': [ 13 'libjpeg.gyp:*', 14 ], 15 'include_dirs': [ 16 '../include/config', 17 '../include/core', 18 '../include/images', 19 ], 20 'sources': [ 21 '../include/images/SkBitmapFactory.h', 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', 32 '../src/images/SkBitmapRegionDecoder.cpp', 33 '../src/images/SkBitmap_RLEPixels.h', 34 '../src/images/SkCreateRLEPixelRef.cpp', 35 '../src/images/SkBitmapFactory.cpp', 36 '../src/images/SkFDStream.cpp', 37 '../src/images/SkImageDecoder.cpp', 38 '../src/images/SkImageDecoder_Factory.cpp', 39 '../src/images/SkImageDecoder_libbmp.cpp', 40 '../src/images/SkImageDecoder_libgif.cpp', 41 '../src/images/SkImageDecoder_libico.cpp', 42 '../src/images/SkImageDecoder_libjpeg.cpp', 43 '../src/images/SkImageDecoder_libpng.cpp', 44 '../src/images/SkImageDecoder_wbmp.cpp', 45 '../src/images/SkImageEncoder.cpp', 46 '../src/images/SkImageEncoder_Factory.cpp', 47 '../src/images/SkImageRef.cpp', 48 '../src/images/SkImageRefPool.cpp', 49 '../src/images/SkImageRefPool.h', 50 '../src/images/SkImageRef_ashmem.h', 51 '../src/images/SkImageRef_ashmem.cpp', 52 '../src/images/SkImageRef_GlobalPool.cpp', 53 '../src/images/SkImages.cpp', 54 '../src/images/SkJpegUtility.cpp', 55 '../src/images/SkMovie.cpp', 56 '../src/images/SkMovie_gif.cpp', 57 '../src/images/SkPageFlipper.cpp', 58 '../src/images/SkScaledBitmapSampler.cpp', 59 '../src/images/SkScaledBitmapSampler.h', 60 61 '../src/ports/SkImageDecoder_CG.cpp', 62 '../src/ports/SkImageDecoder_WIC.cpp', 63 ], 64 'conditions': [ 65 [ 'skia_os == "win"', { 66 'sources!': [ 67 '../src/images/SkFDStream.cpp', 68 '../src/images/SkImageDecoder_Factory.cpp', 69 '../src/images/SkImageDecoder_libgif.cpp', 70 '../src/images/SkImageDecoder_libpng.cpp', 71 '../src/images/SkImageEncoder_Factory.cpp', 72 '../src/images/SkMovie_gif.cpp', 73 ], 74 'link_settings': { 75 'libraries': [ 76 'windowscodecs.lib', 77 ], 78 }, 79 },{ #else if skia_os != win 80 'sources!': [ 81 '../src/ports/SkImageDecoder_WIC.cpp', 82 ], 83 }], 84 [ 'skia_os in ["mac", "ios"]', { 85 'sources!': [ 86 '../src/images/SkImageDecoder_Factory.cpp', 87 '../src/images/SkImageDecoder_libpng.cpp', 88 '../src/images/SkImageDecoder_libgif.cpp', 89 '../src/images/SkImageEncoder_Factory.cpp', 90 '../src/images/SkMovie_gif.cpp', 91 ], 92 },{ #else if skia_os != mac 93 'sources!': [ 94 '../src/ports/SkImageDecoder_CG.cpp', 95 ], 96 }], 97 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl"]', { 98 'sources!': [ 99 '../src/images/SkImageDecoder_libgif.cpp', 100 '../src/images/SkMovie_gif.cpp', 101 ], 102 # libpng stuff: 103 # Any targets that depend on this target should link in libpng and 104 # our code that calls it. 105 # See http://code.google.com/p/gyp/wiki/InputFormatReference#Dependent_Settings 106 'link_settings': { 107 'sources': [ 108 '../src/images/SkImageDecoder_libpng.cpp', 109 ], 110 'libraries': [ 111 '-lpng', 112 ], 113 }, 114 # end libpng stuff 115 }], 116 [ 'skia_os == "android"', { 117 'include_dirs': [ 118 '../src/utils', 119 ], 120 'dependencies': [ 121 'android_deps.gyp:gif', 122 'android_deps.gyp:png', 123 ], 124 'defines': [ 125 'SK_ENABLE_LIBPNG', 126 ], 127 },{ #else if skia_os != android 128 'sources!': [ 129 '../src/images/SkImageRef_ashmem.h', 130 '../src/images/SkImageRef_ashmem.cpp', 131 ], 132 }], 133 [ 'skia_os == "ios"', { 134 'include_dirs': [ 135 '../include/utils/mac', 136 ], 137 }], 138 ], 139 'direct_dependent_settings': { 140 'include_dirs': [ 141 '../include/images', 142 ], 143 }, 144 }, 145 ], 146} 147 148# Local Variables: 149# tab-width:2 150# indent-tabs-mode:nil 151# End: 152# vim: set expandtab tabstop=2 shiftwidth=2: 153