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