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', |
34 '../include/images/SkMovie.h', | 35 '../include/images/SkMovie.h', |
35 '../include/images/SkPageFlipper.h', | 36 '../include/images/SkPageFlipper.h', |
36 | 37 |
| 38 '../src/images/bmpdecoderhelper.cpp', |
| 39 '../src/images/bmpdecoderhelper.h', |
| 40 |
37 '../src/images/SkForceLinking.cpp', | 41 '../src/images/SkForceLinking.cpp', |
| 42 '../src/images/SkImageDecoder.cpp', |
38 '../src/images/SkImageDecoder_FactoryDefault.cpp', | 43 '../src/images/SkImageDecoder_FactoryDefault.cpp', |
| 44 '../src/images/SkImageDecoder_FactoryRegistrar.cpp', |
39 | 45 |
40 # If encoders are added/removed to/from (all/individual) | 46 # If decoders are added/removed to/from (all/individual) |
41 # platform(s), be sure to update SkForceLinking.cpp | 47 # platform(s), be sure to update SkForceLinking.cpp |
42 # so the right decoders will be forced to link. | 48 # so the right decoders will be forced to link. |
43 | 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', |
44 '../src/images/SkImageDecoder_ktx.cpp', | 59 '../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', |
45 '../src/images/SkImageDecoder_libwebp.cpp', | 64 '../src/images/SkImageDecoder_libwebp.cpp', |
46 '../src/images/SkImageDecoder_libjpeg.cpp', | 65 '../src/images/SkImageDecoder_libjpeg.cpp', |
47 '../src/images/SkImageDecoder_libpng.cpp', | 66 '../src/images/SkImageDecoder_libpng.cpp', |
48 | 67 |
49 '../src/images/SkImageEncoder.cpp', | 68 '../src/images/SkImageEncoder.cpp', |
50 '../src/images/SkImageEncoder_Factory.cpp', | 69 '../src/images/SkImageEncoder_Factory.cpp', |
51 '../src/images/SkImageEncoder_argb.cpp', | 70 '../src/images/SkImageEncoder_argb.cpp', |
52 '../src/images/SkJpegUtility.cpp', | 71 '../src/images/SkJpegUtility.cpp', |
53 '../src/images/SkMovie.cpp', | 72 '../src/images/SkMovie.cpp', |
54 '../src/images/SkMovie_gif.cpp', | 73 '../src/images/SkMovie_gif.cpp', |
55 '../src/images/SkPageFlipper.cpp', | 74 '../src/images/SkPageFlipper.cpp', |
| 75 '../src/images/SkScaledBitmapSampler.cpp', |
| 76 '../src/images/SkScaledBitmapSampler.h', |
56 | 77 |
57 '../src/ports/SkImageDecoder_CG.cpp', | 78 '../src/ports/SkImageDecoder_CG.cpp', |
58 '../src/ports/SkImageDecoder_WIC.cpp', | 79 '../src/ports/SkImageDecoder_WIC.cpp', |
59 ], | 80 ], |
60 'conditions': [ | 81 'conditions': [ |
61 [ 'skia_os == "win"', { | 82 [ 'skia_os == "win"', { |
62 'sources!': [ | 83 'sources!': [ |
| 84 '../src/images/SkImageDecoder_FactoryDefault.cpp', |
| 85 '../src/images/SkImageDecoder_libgif.cpp', |
63 '../src/images/SkImageDecoder_libpng.cpp', | 86 '../src/images/SkImageDecoder_libpng.cpp', |
64 '../src/images/SkMovie_gif.cpp', | 87 '../src/images/SkMovie_gif.cpp', |
65 ], | 88 ], |
66 'dependencies!': [ | 89 'dependencies!': [ |
67 'giflib.gyp:giflib' | 90 'giflib.gyp:giflib' |
68 ], | 91 ], |
69 'link_settings': { | 92 'link_settings': { |
70 'libraries': [ | 93 'libraries': [ |
71 '-lwindowscodecs.lib', | 94 '-lwindowscodecs.lib', |
72 ], | 95 ], |
73 }, | 96 }, |
74 },{ #else if skia_os != win | 97 },{ #else if skia_os != win |
75 'sources!': [ | 98 'sources!': [ |
76 '../src/ports/SkImageDecoder_WIC.cpp', | 99 '../src/ports/SkImageDecoder_WIC.cpp', |
77 ], | 100 ], |
78 }], | 101 }], |
79 [ 'skia_os in ["mac", "ios"]', { | 102 [ 'skia_os in ["mac", "ios"]', { |
80 'sources!': [ | 103 'sources!': [ |
| 104 '../src/images/SkImageDecoder_FactoryDefault.cpp', |
81 '../src/images/SkImageDecoder_libpng.cpp', | 105 '../src/images/SkImageDecoder_libpng.cpp', |
| 106 '../src/images/SkImageDecoder_libgif.cpp', |
82 '../src/images/SkMovie_gif.cpp', | 107 '../src/images/SkMovie_gif.cpp', |
83 ], | 108 ], |
84 },{ #else if skia_os != mac | 109 },{ #else if skia_os != mac |
85 'sources!': [ | 110 'sources!': [ |
86 '../src/ports/SkImageDecoder_CG.cpp', | 111 '../src/ports/SkImageDecoder_CG.cpp', |
87 ], | 112 ], |
88 }], | 113 }], |
89 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { | 114 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
90 'dependencies': [ | 115 'dependencies': [ |
91 'libpng.gyp:libpng', | 116 'libpng.gyp:libpng', |
92 ], | 117 ], |
93 # end libpng stuff | 118 # end libpng stuff |
94 }], | 119 }], |
95 [ 'skia_os == "android"', { | 120 [ 'skia_os == "android"', { |
96 'include_dirs': [ | 121 'include_dirs': [ |
97 '../src/utils', | 122 '../src/utils', |
98 ], | 123 ], |
99 'dependencies': [ | 124 'dependencies': [ |
100 'libpng.gyp:libpng', | 125 'libpng.gyp:libpng', |
101 ], | 126 ], |
102 'conditions': [ | 127 'conditions': [ |
103 [ 'skia_android_framework == 1', { | 128 [ 'skia_android_framework == 1', { |
104 # The android framework disables these decoders as they are of lit
tle use to | 129 # The android framework disables these decoders as they are of lit
tle use to |
105 # Java applications that can't take advantage of the compressed fo
rmats. | 130 # Java applications that can't take advantage of the compressed fo
rmats. |
106 'sources!': [ | 131 'sources!': [ |
| 132 '../src/images/SkImageDecoder_pkm.cpp', |
107 '../src/images/SkImageDecoder_ktx.cpp', | 133 '../src/images/SkImageDecoder_ktx.cpp', |
| 134 '../src/images/SkImageDecoder_astc.cpp', |
108 ], | 135 ], |
109 }], | 136 }], |
110 ], | 137 ], |
111 }], | 138 }], |
112 [ 'skia_os == "chromeos"', { | 139 [ 'skia_os == "chromeos"', { |
113 'dependencies': [ | 140 'dependencies': [ |
114 'libpng.gyp:libpng', | 141 'libpng.gyp:libpng', |
115 ], | 142 ], |
116 }], | 143 }], |
117 [ 'skia_os == "ios"', { | 144 [ 'skia_os == "ios"', { |
118 'include_dirs': [ | 145 'include_dirs': [ |
119 '../include/utils/mac', | 146 '../include/utils/mac', |
120 ], | 147 ], |
121 }], | 148 }], |
122 ], | 149 ], |
123 'direct_dependent_settings': { | 150 'direct_dependent_settings': { |
124 'include_dirs': [ | 151 'include_dirs': [ |
125 '../include/images', | 152 '../include/images', |
126 ], | 153 ], |
127 }, | 154 }, |
128 }, | 155 }, |
129 ], | 156 ], |
130 } | 157 } |
OLD | NEW |