Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # GYP file for images project. | 6 # GYP file for images project. |
| 7 { | 7 { |
| 8 'targets': [ | 8 'targets': [ |
| 9 { | 9 { |
| 10 'target_name': 'images', | 10 'target_name': 'images', |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 '../include/images', | 24 '../include/images', |
| 25 '../include/private', | 25 '../include/private', |
| 26 '../src/lazy', | 26 '../src/lazy', |
| 27 # for access to SkErrorInternals.h | 27 # for access to SkErrorInternals.h |
| 28 '../src/core/', | 28 '../src/core/', |
| 29 # for access to SkImagePriv.h | 29 # for access to SkImagePriv.h |
| 30 '../src/image/', | 30 '../src/image/', |
| 31 ], | 31 ], |
| 32 'sources': [ | 32 'sources': [ |
| 33 '../include/images/SkForceLinking.h', | 33 '../include/images/SkForceLinking.h', |
| 34 '../src/images/SkJpegUtility.h', | |
| 35 '../include/images/SkMovie.h', | 34 '../include/images/SkMovie.h', |
| 36 '../include/images/SkPageFlipper.h', | 35 '../include/images/SkPageFlipper.h', |
| 37 | 36 |
| 38 '../src/images/bmpdecoderhelper.cpp', | 37 '../src/images/SkForceLinking.cpp', |
| 39 '../src/images/bmpdecoderhelper.h', | 38 '../src/images/SkImageDecoder_FactoryDefault.cpp', |
| 40 | 39 |
| 41 '../src/images/SkForceLinking.cpp', | |
| 42 '../src/images/SkImageDecoder.cpp', | |
| 43 '../src/images/SkImageDecoder_FactoryDefault.cpp', | |
| 44 '../src/images/SkImageDecoder_FactoryRegistrar.cpp', | |
| 45 | |
| 46 # If decoders are added/removed to/from (all/individual) | |
|
scroggo
2016/03/22 18:00:04
Maybe this comment is still relevant for SkImageEn
msarett
2016/03/23 17:52:03
Agreed. Done.
| |
| 47 # platform(s), be sure to update SkForceLinking.cpp | |
| 48 # so the right decoders will be forced to link. | |
| 49 | |
| 50 # IMPORTANT: The build order of the SkImageDecoder_*.cpp files | |
| 51 # defines the order image decoders are tested when decoding a | |
| 52 # stream. The last decoder is the first one tested, so the .cpp | |
| 53 # files should be in listed in order from the least likely to be | |
| 54 # used, to the most likely (jpeg and png should be the last two | |
| 55 # for instance.) As a result, they are deliberately not in | |
| 56 # alphabetical order. | |
| 57 '../src/images/SkImageDecoder_wbmp.cpp', | |
| 58 '../src/images/SkImageDecoder_pkm.cpp', | |
| 59 '../src/images/SkImageDecoder_ktx.cpp', | 40 '../src/images/SkImageDecoder_ktx.cpp', |
| 60 '../src/images/SkImageDecoder_astc.cpp', | |
| 61 '../src/images/SkImageDecoder_libbmp.cpp', | |
| 62 '../src/images/SkImageDecoder_libgif.cpp', | |
| 63 '../src/images/SkImageDecoder_libico.cpp', | |
| 64 '../src/images/SkImageDecoder_libwebp.cpp', | 41 '../src/images/SkImageDecoder_libwebp.cpp', |
| 65 '../src/images/SkImageDecoder_libjpeg.cpp', | 42 '../src/images/SkImageDecoder_libjpeg.cpp', |
| 66 '../src/images/SkImageDecoder_libpng.cpp', | 43 '../src/images/SkImageDecoder_libpng.cpp', |
| 67 | 44 |
| 68 '../src/images/SkImageEncoder.cpp', | 45 '../src/images/SkImageEncoder.cpp', |
| 69 '../src/images/SkImageEncoder_Factory.cpp', | 46 '../src/images/SkImageEncoder_Factory.cpp', |
| 70 '../src/images/SkImageEncoder_argb.cpp', | 47 '../src/images/SkImageEncoder_argb.cpp', |
| 71 '../src/images/SkJpegUtility.cpp', | 48 '../src/images/SkJpegUtility.cpp', |
| 72 '../src/images/SkMovie.cpp', | 49 '../src/images/SkMovie.cpp', |
| 73 '../src/images/SkMovie_gif.cpp', | 50 '../src/images/SkMovie_gif.cpp', |
| 74 '../src/images/SkPageFlipper.cpp', | 51 '../src/images/SkPageFlipper.cpp', |
| 75 '../src/images/SkScaledBitmapSampler.cpp', | |
| 76 '../src/images/SkScaledBitmapSampler.h', | |
| 77 | 52 |
| 78 '../src/ports/SkImageDecoder_CG.cpp', | 53 '../src/ports/SkImageDecoder_CG.cpp', |
| 79 '../src/ports/SkImageDecoder_WIC.cpp', | 54 '../src/ports/SkImageDecoder_WIC.cpp', |
| 80 ], | 55 ], |
| 81 'conditions': [ | 56 'conditions': [ |
| 82 [ 'skia_os == "win"', { | 57 [ 'skia_os == "win"', { |
| 83 'sources!': [ | 58 'sources!': [ |
| 84 '../src/images/SkImageDecoder_FactoryDefault.cpp', | |
| 85 '../src/images/SkImageDecoder_libgif.cpp', | |
| 86 '../src/images/SkImageDecoder_libpng.cpp', | 59 '../src/images/SkImageDecoder_libpng.cpp', |
| 87 '../src/images/SkMovie_gif.cpp', | 60 '../src/images/SkMovie_gif.cpp', |
| 88 ], | 61 ], |
| 89 'dependencies!': [ | 62 'dependencies!': [ |
| 90 'giflib.gyp:giflib' | 63 'giflib.gyp:giflib' |
| 91 ], | 64 ], |
| 92 'link_settings': { | 65 'link_settings': { |
| 93 'libraries': [ | 66 'libraries': [ |
| 94 '-lwindowscodecs.lib', | 67 '-lwindowscodecs.lib', |
| 95 ], | 68 ], |
| 96 }, | 69 }, |
| 97 },{ #else if skia_os != win | 70 },{ #else if skia_os != win |
| 98 'sources!': [ | 71 'sources!': [ |
| 99 '../src/ports/SkImageDecoder_WIC.cpp', | 72 '../src/ports/SkImageDecoder_WIC.cpp', |
| 100 ], | 73 ], |
| 101 }], | 74 }], |
| 102 [ 'skia_os in ["mac", "ios"]', { | 75 [ 'skia_os in ["mac", "ios"]', { |
| 103 'sources!': [ | 76 'sources!': [ |
| 104 '../src/images/SkImageDecoder_FactoryDefault.cpp', | |
| 105 '../src/images/SkImageDecoder_libpng.cpp', | 77 '../src/images/SkImageDecoder_libpng.cpp', |
| 106 '../src/images/SkImageDecoder_libgif.cpp', | |
| 107 '../src/images/SkMovie_gif.cpp', | 78 '../src/images/SkMovie_gif.cpp', |
| 108 ], | 79 ], |
| 109 },{ #else if skia_os != mac | 80 },{ #else if skia_os != mac |
| 110 'sources!': [ | 81 'sources!': [ |
| 111 '../src/ports/SkImageDecoder_CG.cpp', | 82 '../src/ports/SkImageDecoder_CG.cpp', |
| 112 ], | 83 ], |
| 113 }], | 84 }], |
| 114 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { | 85 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
| 115 'dependencies': [ | 86 'dependencies': [ |
| 116 'libpng.gyp:libpng', | 87 'libpng.gyp:libpng', |
| 117 ], | 88 ], |
| 118 # end libpng stuff | 89 # end libpng stuff |
| 119 }], | 90 }], |
| 120 [ 'skia_os == "android"', { | 91 [ 'skia_os == "android"', { |
| 121 'include_dirs': [ | 92 'include_dirs': [ |
| 122 '../src/utils', | 93 '../src/utils', |
| 123 ], | 94 ], |
| 124 'dependencies': [ | 95 'dependencies': [ |
| 125 'libpng.gyp:libpng', | 96 'libpng.gyp:libpng', |
| 126 ], | 97 ], |
| 127 'conditions': [ | 98 'conditions': [ |
| 128 [ 'skia_android_framework == 1', { | 99 [ 'skia_android_framework == 1', { |
| 129 # The android framework disables these decoders as they are of lit tle use to | 100 # The android framework disables these decoders as they are of lit tle use to |
| 130 # Java applications that can't take advantage of the compressed fo rmats. | 101 # Java applications that can't take advantage of the compressed fo rmats. |
| 131 'sources!': [ | 102 'sources!': [ |
| 132 '../src/images/SkImageDecoder_pkm.cpp', | |
| 133 '../src/images/SkImageDecoder_ktx.cpp', | 103 '../src/images/SkImageDecoder_ktx.cpp', |
| 134 '../src/images/SkImageDecoder_astc.cpp', | |
| 135 ], | 104 ], |
| 136 }], | 105 }], |
| 137 ], | 106 ], |
| 138 }], | 107 }], |
| 139 [ 'skia_os == "chromeos"', { | 108 [ 'skia_os == "chromeos"', { |
| 140 'dependencies': [ | 109 'dependencies': [ |
| 141 'libpng.gyp:libpng', | 110 'libpng.gyp:libpng', |
| 142 ], | 111 ], |
| 143 }], | 112 }], |
| 144 [ 'skia_os == "ios"', { | 113 [ 'skia_os == "ios"', { |
| 145 'include_dirs': [ | 114 'include_dirs': [ |
| 146 '../include/utils/mac', | 115 '../include/utils/mac', |
| 147 ], | 116 ], |
| 148 }], | 117 }], |
| 149 ], | 118 ], |
| 150 'direct_dependent_settings': { | 119 'direct_dependent_settings': { |
| 151 'include_dirs': [ | 120 'include_dirs': [ |
| 152 '../include/images', | 121 '../include/images', |
| 153 ], | 122 ], |
| 154 }, | 123 }, |
| 155 }, | 124 }, |
| 156 ], | 125 ], |
| 157 } | 126 } |
| OLD | NEW |