| 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 'libwebp.gyp:libwebp', | 12 'libwebp.gyp:libwebp', |
| 13 'utils.gyp:utils', | 13 'utils.gyp:utils', |
| 14 ], | 14 ], |
| 15 'export_dependent_settings': [ | 15 'conditions': [ |
| 16 'libjpeg.gyp:*', | 16 [ 'skia_android_framework == 0', { |
| 17 'export_dependent_settings': [ |
| 18 'libjpeg.gyp:*', |
| 19 ], |
| 20 }], |
| 17 ], | 21 ], |
| 18 'include_dirs': [ | 22 'include_dirs': [ |
| 19 '../include/images', | 23 '../include/images', |
| 20 '../src/lazy', | 24 '../src/lazy', |
| 21 # for access to SkErrorInternals.h | 25 # for access to SkErrorInternals.h |
| 22 '../src/core/', | 26 '../src/core/', |
| 23 # for access to SkImagePriv.h | 27 # for access to SkImagePriv.h |
| 24 '../src/image/', | 28 '../src/image/', |
| 25 # So src/ports/SkImageDecoder_CG can access SkStreamHelpers.h | 29 # So src/ports/SkImageDecoder_CG can access SkStreamHelpers.h |
| 26 '../src/images/', | 30 '../src/images/', |
| 27 ], | 31 ], |
| 28 'sources': [ | 32 'sources': [ |
| 29 '../include/images/SkForceLinking.h', | 33 '../include/images/SkForceLinking.h', |
| 30 '../include/images/SkImageRef.h', | 34 '../include/images/SkImageRef.h', |
| 31 '../include/images/SkImageRef_GlobalPool.h', | 35 '../include/images/SkImageRef_GlobalPool.h', |
| 32 '../src/images/SkJpegUtility.h', | 36 '../src/images/SkJpegUtility.h', |
| 33 '../include/images/SkMovie.h', | 37 '../include/images/SkMovie.h', |
| 34 '../include/images/SkPageFlipper.h', | 38 '../include/images/SkPageFlipper.h', |
| 35 | 39 |
| 36 '../src/images/bmpdecoderhelper.cpp', | 40 '../src/images/bmpdecoderhelper.cpp', |
| 37 '../src/images/bmpdecoderhelper.h', | 41 '../src/images/bmpdecoderhelper.h', |
| 38 | 42 |
| 39 '../src/images/SkDecodingImageGenerator.cpp', | 43 '../src/images/SkDecodingImageGenerator.cpp', |
| 40 '../src/images/SkDecodingImageGenerator.h', | 44 '../src/images/SkDecodingImageGenerator.h', |
| 41 '../src/images/SkForceLinking.cpp', | 45 '../src/images/SkForceLinking.cpp', |
| 42 '../src/images/SkImageDecoder.cpp', | 46 '../src/images/SkImageDecoder.cpp', |
| 43 '../src/images/SkImageDecoder_FactoryDefault.cpp', | 47 '../src/images/SkImageDecoder_FactoryDefault.cpp', |
| 44 '../src/images/SkImageDecoder_FactoryRegistrar.cpp', | 48 '../src/images/SkImageDecoder_FactoryRegistrar.cpp', |
| 49 |
| 45 # If decoders are added/removed to/from (all/individual) | 50 # If decoders are added/removed to/from (all/individual) |
| 46 # platform(s), be sure to update SkForceLinking.cpp | 51 # platform(s), be sure to update SkForceLinking.cpp |
| 47 # so the right decoders will be forced to link. | 52 # so the right decoders will be forced to link. |
| 53 |
| 54 # IMPORTANT: The build order of the SkImageDecoder_*.cpp files |
| 55 # defines the order image decoders are tested when decoding a |
| 56 # stream. The last decoder is the first one tested, so the .cpp |
| 57 # files should be in listed in order from the least likely to be |
| 58 # used, to the most likely (jpeg and png should be the last two |
| 59 # for instance.) As a result, they are deliberately not in |
| 60 # alphabetical order. |
| 61 '../src/images/SkImageDecoder_wbmp.cpp', |
| 48 '../src/images/SkImageDecoder_libbmp.cpp', | 62 '../src/images/SkImageDecoder_libbmp.cpp', |
| 49 '../src/images/SkImageDecoder_libgif.cpp', | 63 '../src/images/SkImageDecoder_libgif.cpp', |
| 50 '../src/images/SkImageDecoder_libico.cpp', | 64 '../src/images/SkImageDecoder_libico.cpp', |
| 65 '../src/images/SkImageDecoder_libwebp.cpp', |
| 51 '../src/images/SkImageDecoder_libjpeg.cpp', | 66 '../src/images/SkImageDecoder_libjpeg.cpp', |
| 52 '../src/images/SkImageDecoder_libpng.cpp', | 67 '../src/images/SkImageDecoder_libpng.cpp', |
| 53 '../src/images/SkImageDecoder_libwebp.cpp', | 68 |
| 54 '../src/images/SkImageDecoder_wbmp.cpp', | |
| 55 '../src/images/SkImageEncoder.cpp', | 69 '../src/images/SkImageEncoder.cpp', |
| 56 '../src/images/SkImageEncoder_Factory.cpp', | 70 '../src/images/SkImageEncoder_Factory.cpp', |
| 57 '../src/images/SkImageEncoder_argb.cpp', | 71 '../src/images/SkImageEncoder_argb.cpp', |
| 58 '../src/images/SkImageRef.cpp', | 72 '../src/images/SkImageRef.cpp', |
| 59 '../src/images/SkImageRefPool.cpp', | 73 '../src/images/SkImageRefPool.cpp', |
| 60 '../src/images/SkImageRefPool.h', | 74 '../src/images/SkImageRefPool.h', |
| 61 '../src/images/SkImageRef_ashmem.h', | 75 '../src/images/SkImageRef_ashmem.h', |
| 62 '../src/images/SkImageRef_ashmem.cpp', | 76 '../src/images/SkImageRef_ashmem.cpp', |
| 63 '../src/images/SkImageRef_GlobalPool.cpp', | 77 '../src/images/SkImageRef_GlobalPool.cpp', |
| 64 '../src/images/SkImages.cpp', | 78 '../src/images/SkImages.cpp', |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 }, | 147 }, |
| 134 }], | 148 }], |
| 135 [ 'skia_os == "android"', { | 149 [ 'skia_os == "android"', { |
| 136 'include_dirs': [ | 150 'include_dirs': [ |
| 137 '../src/utils', | 151 '../src/utils', |
| 138 ], | 152 ], |
| 139 'dependencies': [ | 153 'dependencies': [ |
| 140 'android_deps.gyp:gif', | 154 'android_deps.gyp:gif', |
| 141 'android_deps.gyp:png', | 155 'android_deps.gyp:png', |
| 142 ], | 156 ], |
| 143 'export_dependent_settings': [ | 157 'conditions': [ |
| 144 'android_deps.gyp:png' | 158 [ 'skia_android_framework == 0', { |
| 159 'export_dependent_settings': [ |
| 160 'android_deps.gyp:png' |
| 161 ], |
| 162 }], |
| 145 ], | 163 ], |
| 146 },{ #else if skia_os != android | 164 },{ #else if skia_os != android |
| 147 'sources!': [ | 165 'sources!': [ |
| 148 '../src/images/SkImageRef_ashmem.h', | 166 '../src/images/SkImageRef_ashmem.h', |
| 149 '../src/images/SkImageRef_ashmem.cpp', | 167 '../src/images/SkImageRef_ashmem.cpp', |
| 150 ], | 168 ], |
| 151 }], | 169 }], |
| 152 [ 'skia_os == "chromeos"', { | 170 [ 'skia_os == "chromeos"', { |
| 153 'dependencies': [ | 171 'dependencies': [ |
| 154 'chromeos_deps.gyp:gif', | 172 'chromeos_deps.gyp:gif', |
| (...skipping 11 matching lines...) Expand all Loading... |
| 166 }], | 184 }], |
| 167 ], | 185 ], |
| 168 'direct_dependent_settings': { | 186 'direct_dependent_settings': { |
| 169 'include_dirs': [ | 187 'include_dirs': [ |
| 170 '../include/images', | 188 '../include/images', |
| 171 ], | 189 ], |
| 172 }, | 190 }, |
| 173 }, | 191 }, |
| 174 ], | 192 ], |
| 175 } | 193 } |
| OLD | NEW |