| OLD | NEW |
| 1 # GYP file for images project. | 1 # GYP file for images project. |
| 2 { | 2 { |
| 3 'targets': [ | 3 'targets': [ |
| 4 { | 4 { |
| 5 'target_name': 'images', | 5 'target_name': 'images', |
| 6 'product_name': 'skia_images', | 6 'product_name': 'skia_images', |
| 7 'type': 'static_library', | 7 'type': 'static_library', |
| 8 'standalone_static_library': 1, | 8 'standalone_static_library': 1, |
| 9 'dependencies': [ | 9 'dependencies': [ |
| 10 'core.gyp:*', | 10 'core.gyp:*', |
| 11 'libjpeg.gyp:*', | 11 'libjpeg.gyp:*', |
| 12 'etc1.gyp:libetc1', | 12 'etc1.gyp:libetc1', |
| 13 'ktx.gyp:libSkKTX', | 13 'ktx.gyp:libSkKTX', |
| 14 'libwebp.gyp:libwebp', | 14 'libwebp.gyp:libwebp', |
| 15 'utils.gyp:utils', | 15 'utils.gyp:utils', |
| 16 ], | 16 ], |
| 17 'include_dirs': [ | 17 'include_dirs': [ |
| 18 '../include/images', | 18 '../include/images', |
| 19 '../src/lazy', | 19 '../src/lazy', |
| 20 # for access to SkErrorInternals.h | 20 # for access to SkErrorInternals.h |
| 21 '../src/core/', | 21 '../src/core/', |
| 22 # for access to SkImagePriv.h | 22 # for access to SkImagePriv.h |
| 23 '../src/image/', | 23 '../src/image/', |
| 24 ], | 24 ], |
| 25 'sources': [ | 25 'sources': [ |
| 26 '../include/images/SkDecodingImageGenerator.h', | 26 '../include/images/SkDecodingImageGenerator.h', |
| 27 '../include/images/SkForceLinking.h', | |
| 28 '../src/images/SkJpegUtility.h', | |
| 29 '../include/images/SkMovie.h', | 27 '../include/images/SkMovie.h', |
| 30 '../include/images/SkPageFlipper.h', | 28 '../include/images/SkPageFlipper.h', |
| 31 | |
| 32 '../src/images/bmpdecoderhelper.cpp', | |
| 33 '../src/images/bmpdecoderhelper.h', | |
| 34 | |
| 35 '../src/images/SkDecodingImageGenerator.cpp', | 29 '../src/images/SkDecodingImageGenerator.cpp', |
| 36 '../src/images/SkForceLinking.cpp', | |
| 37 '../src/images/SkImageDecoder.cpp', | 30 '../src/images/SkImageDecoder.cpp', |
| 38 '../src/images/SkImageDecoder_FactoryDefault.cpp', | 31 '../src/images/SkImageDecoder_Factory.cpp', |
| 39 '../src/images/SkImageDecoder_FactoryRegistrar.cpp', | 32 '../src/images/SkImageDecoder_astc.cpp', |
| 40 | 33 '../src/images/SkImageDecoder_astc.h', |
| 41 # If decoders are added/removed to/from (all/individual) | 34 '../src/images/SkImageDecoder_ktx.cpp', |
| 42 # platform(s), be sure to update SkForceLinking.cpp | 35 '../src/images/SkImageDecoder_ktx.h', |
| 43 # so the right decoders will be forced to link. | 36 '../src/images/SkImageDecoder_libbmp.cpp', |
| 44 | 37 '../src/images/SkImageDecoder_libbmp.h', |
| 45 # IMPORTANT: The build order of the SkImageDecoder_*.cpp files | 38 '../src/images/SkImageDecoder_libgif.cpp', |
| 46 # defines the order image decoders are tested when decoding a | 39 '../src/images/SkImageDecoder_libgif.h', |
| 47 # stream. The last decoder is the first one tested, so the .cpp | 40 '../src/images/SkImageDecoder_libico.cpp', |
| 48 # files should be in listed in order from the least likely to be | 41 '../src/images/SkImageDecoder_libico.h', |
| 49 # used, to the most likely (jpeg and png should be the last two | 42 '../src/images/SkImageDecoder_libjpeg.cpp', |
| 50 # for instance.) As a result, they are deliberately not in | 43 '../src/images/SkImageDecoder_libjpeg.h', |
| 51 # alphabetical order. | 44 '../src/images/SkImageDecoder_libpng.cpp', |
| 45 '../src/images/SkImageDecoder_libpng.h', |
| 46 '../src/images/SkImageDecoder_libwebp.cpp', |
| 47 '../src/images/SkImageDecoder_libwebp.h', |
| 48 '../src/images/SkImageDecoder_pkm.cpp', |
| 49 '../src/images/SkImageDecoder_pkm.h', |
| 52 '../src/images/SkImageDecoder_wbmp.cpp', | 50 '../src/images/SkImageDecoder_wbmp.cpp', |
| 53 '../src/images/SkImageDecoder_pkm.cpp', | 51 '../src/images/SkImageDecoder_wbmp.h', |
| 54 '../src/images/SkImageDecoder_ktx.cpp', | |
| 55 '../src/images/SkImageDecoder_astc.cpp', | |
| 56 '../src/images/SkImageDecoder_libbmp.cpp', | |
| 57 '../src/images/SkImageDecoder_libgif.cpp', | |
| 58 '../src/images/SkImageDecoder_libico.cpp', | |
| 59 '../src/images/SkImageDecoder_libwebp.cpp', | |
| 60 '../src/images/SkImageDecoder_libjpeg.cpp', | |
| 61 '../src/images/SkImageDecoder_libpng.cpp', | |
| 62 | |
| 63 '../src/images/SkImageEncoder.cpp', | 52 '../src/images/SkImageEncoder.cpp', |
| 64 '../src/images/SkImageEncoder_Factory.cpp', | 53 '../src/images/SkImageEncoder_Factory.cpp', |
| 65 '../src/images/SkImageEncoder_argb.cpp', | 54 '../src/images/SkImageEncoder_argb.cpp', |
| 55 '../src/images/SkImageEncoder_argb.h', |
| 66 '../src/images/SkJpegUtility.cpp', | 56 '../src/images/SkJpegUtility.cpp', |
| 57 '../src/images/SkJpegUtility.h', |
| 67 '../src/images/SkMovie.cpp', | 58 '../src/images/SkMovie.cpp', |
| 68 '../src/images/SkMovie_gif.cpp', | 59 '../src/images/SkMovie_gif.cpp', |
| 60 '../src/images/SkMovie_gif.h', |
| 69 '../src/images/SkPageFlipper.cpp', | 61 '../src/images/SkPageFlipper.cpp', |
| 70 '../src/images/SkScaledBitmapSampler.cpp', | 62 '../src/images/SkScaledBitmapSampler.cpp', |
| 71 '../src/images/SkScaledBitmapSampler.h', | 63 '../src/images/SkScaledBitmapSampler.h', |
| 72 | 64 '../src/images/bmpdecoderhelper.cpp', |
| 65 '../src/images/bmpdecoderhelper.h', |
| 73 '../src/ports/SkImageDecoder_CG.cpp', | 66 '../src/ports/SkImageDecoder_CG.cpp', |
| 67 '../src/ports/SkImageDecoder_CG.h', |
| 74 '../src/ports/SkImageDecoder_WIC.cpp', | 68 '../src/ports/SkImageDecoder_WIC.cpp', |
| 69 '../src/ports/SkImageDecoder_WIC.h', |
| 75 ], | 70 ], |
| 76 'conditions': [ | 71 'conditions': [ |
| 77 [ 'skia_os == "win"', { | 72 [ 'skia_os == "win"', { |
| 73 'include_dirs': [ |
| 74 '../src/ports', |
| 75 ], |
| 78 'sources!': [ | 76 'sources!': [ |
| 79 '../src/images/SkImageDecoder_FactoryDefault.cpp', | |
| 80 '../src/images/SkImageDecoder_libgif.cpp', | 77 '../src/images/SkImageDecoder_libgif.cpp', |
| 78 '../src/images/SkImageDecoder_libgif.h', |
| 81 '../src/images/SkImageDecoder_libpng.cpp', | 79 '../src/images/SkImageDecoder_libpng.cpp', |
| 80 '../src/images/SkImageDecoder_libpng.h', |
| 82 '../src/images/SkMovie_gif.cpp', | 81 '../src/images/SkMovie_gif.cpp', |
| 82 '../src/images/SkMovie_gif.h', |
| 83 ], | 83 ], |
| 84 'link_settings': { | 84 'link_settings': { |
| 85 'libraries': [ | 85 'libraries': [ |
| 86 '-lwindowscodecs.lib', | 86 '-lwindowscodecs.lib', |
| 87 ], | 87 ], |
| 88 }, | 88 }, |
| 89 },{ #else if skia_os != win | 89 },{ #else if skia_os != win |
| 90 'sources!': [ | 90 'sources!': [ |
| 91 '../src/ports/SkImageDecoder_WIC.cpp', | 91 '../src/ports/SkImageDecoder_WIC.cpp', |
| 92 '../src/ports/SkImageDecoder_WIC.h', |
| 92 ], | 93 ], |
| 93 }], | 94 }], |
| 94 [ 'skia_os in ["mac", "ios"]', { | 95 [ 'skia_os in ["mac", "ios"]', { |
| 96 'include_dirs': [ |
| 97 '../src/ports', |
| 98 ], |
| 95 'sources!': [ | 99 'sources!': [ |
| 96 '../src/images/SkImageDecoder_FactoryDefault.cpp', | |
| 97 '../src/images/SkImageDecoder_libpng.cpp', | 100 '../src/images/SkImageDecoder_libpng.cpp', |
| 101 '../src/images/SkImageDecoder_libpng.h', |
| 98 '../src/images/SkImageDecoder_libgif.cpp', | 102 '../src/images/SkImageDecoder_libgif.cpp', |
| 103 '../src/images/SkImageDecoder_libgif.h', |
| 99 '../src/images/SkMovie_gif.cpp', | 104 '../src/images/SkMovie_gif.cpp', |
| 105 '../src/images/SkMovie_gif.h', |
| 100 ], | 106 ], |
| 101 },{ #else if skia_os != mac | 107 },{ #else if skia_os != mac |
| 102 'sources!': [ | 108 'sources!': [ |
| 103 '../src/ports/SkImageDecoder_CG.cpp', | 109 '../src/ports/SkImageDecoder_CG.cpp', |
| 110 '../src/ports/SkImageDecoder_CG.h', |
| 104 ], | 111 ], |
| 105 }], | 112 }], |
| 106 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { | 113 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
| 107 'export_dependent_settings': [ | 114 'export_dependent_settings': [ |
| 108 'libpng.gyp:libpng', | 115 'libpng.gyp:libpng', |
| 109 'giflib.gyp:giflib' | 116 'giflib.gyp:giflib' |
| 110 ], | 117 ], |
| 111 'dependencies': [ | 118 'dependencies': [ |
| 112 'libpng.gyp:libpng', | 119 'libpng.gyp:libpng', |
| 113 'giflib.gyp:giflib' | 120 'giflib.gyp:giflib' |
| 114 ], | 121 ], |
| 115 # end libpng/libgif stuff | 122 # end libpng/libgif stuff |
| 116 }], | 123 }], |
| 117 # FIXME: NaCl should be just like linux, etc, above, but it currently is
separated out | 124 # 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 | 125 # to remove gif. Once gif is supported by naclports, this can be merged
into the above |
| 119 # condition. | 126 # condition. |
| 120 [ 'skia_os == "nacl"', { | 127 [ 'skia_os == "nacl"', { |
| 121 'sources!': [ | 128 'sources!': [ |
| 122 '../src/images/SkImageDecoder_libgif.cpp', | 129 '../src/images/SkImageDecoder_libgif.cpp', |
| 130 '../src/images/SkImageDecoder_libgif.h', |
| 123 '../src/images/SkMovie_gif.cpp', | 131 '../src/images/SkMovie_gif.cpp', |
| 132 '../src/images/SkMovie_gif.h', |
| 124 ], | 133 ], |
| 125 }], | 134 }], |
| 126 [ 'skia_os == "android"', { | 135 [ 'skia_os == "android"', { |
| 127 'include_dirs': [ | 136 'include_dirs': [ |
| 128 '../src/utils', | 137 '../src/utils', |
| 129 ], | 138 ], |
| 130 'dependencies': [ | 139 'dependencies': [ |
| 131 'android_deps.gyp:gif', | 140 'android_deps.gyp:gif', |
| 132 'android_deps.gyp:png', | 141 'android_deps.gyp:png', |
| 133 ], | 142 ], |
| 134 'conditions': [ | 143 'conditions': [ |
| 135 [ 'skia_android_framework == 0', { | 144 [ 'skia_android_framework == 0', { |
| 136 'export_dependent_settings': [ | 145 'export_dependent_settings': [ |
| 137 'android_deps.gyp:png', | 146 'android_deps.gyp:png', |
| 138 'libjpeg.gyp:*' | 147 'libjpeg.gyp:*' |
| 139 ], | 148 ], |
| 140 }, { | 149 }, { |
| 141 # The android framework disables these decoders as they are of lit
tle use to | 150 # The android framework disables these decoders as they are of lit
tle use to |
| 142 # Java applications that can't take advantage of the compressed fo
rmats. | 151 # Java applications that can't take advantage of the compressed fo
rmats. |
| 143 'sources!': [ | 152 'sources!': [ |
| 144 '../src/images/SkImageDecoder_pkm.cpp', | 153 '../src/images/SkImageDecoder_pkm.cpp', |
| 154 '../src/images/SkImageDecoder_pkm.h', |
| 145 '../src/images/SkImageDecoder_ktx.cpp', | 155 '../src/images/SkImageDecoder_ktx.cpp', |
| 156 '../src/images/SkImageDecoder_ktx.h', |
| 146 '../src/images/SkImageDecoder_astc.cpp', | 157 '../src/images/SkImageDecoder_astc.cpp', |
| 158 '../src/images/SkImageDecoder_astc.h', |
| 147 ], | 159 ], |
| 148 }], | 160 }], |
| 149 ], | 161 ], |
| 150 }], | 162 }], |
| 151 [ 'skia_os == "chromeos"', { | 163 [ 'skia_os == "chromeos"', { |
| 152 'dependencies': [ | 164 'dependencies': [ |
| 153 'chromeos_deps.gyp:gif', | 165 'chromeos_deps.gyp:gif', |
| 154 'libpng.gyp:libpng', | 166 'libpng.gyp:libpng', |
| 155 ], | 167 ], |
| 156 }], | 168 }], |
| 157 [ 'skia_os == "ios"', { | 169 [ 'skia_os == "ios"', { |
| 158 'include_dirs': [ | 170 'include_dirs': [ |
| 159 '../include/utils/mac', | 171 '../include/utils/mac', |
| 160 ], | 172 ], |
| 161 }], | 173 }], |
| 162 ], | 174 ], |
| 163 'direct_dependent_settings': { | 175 'direct_dependent_settings': { |
| 164 'include_dirs': [ | 176 'include_dirs': [ |
| 165 '../include/images', | 177 '../include/images', |
| 166 ], | 178 ], |
| 167 }, | 179 }, |
| 168 }, | 180 }, |
| 169 ], | 181 ], |
| 170 } | 182 } |
| OLD | NEW |