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', |
11 'product_name': 'skia_images', | 11 'product_name': 'skia_images', |
12 'type': 'static_library', | 12 'type': 'static_library', |
13 'standalone_static_library': 1, | 13 'standalone_static_library': 1, |
14 'dependencies': [ | 14 'dependencies': [ |
15 'core.gyp:*', | 15 'core.gyp:*', |
16 'giflib.gyp:giflib', | |
17 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', | 16 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', |
18 'etc1.gyp:libetc1', | 17 'etc1.gyp:libetc1', |
19 'ktx.gyp:libSkKTX', | 18 'ktx.gyp:libSkKTX', |
20 'libpng.gyp:libpng', | 19 'libpng.gyp:libpng', |
21 'libwebp.gyp:libwebp', | 20 'libwebp.gyp:libwebp', |
22 'utils.gyp:utils', | 21 'utils.gyp:utils', |
23 ], | 22 ], |
24 'include_dirs': [ | 23 'include_dirs': [ |
25 '../include/images', | 24 '../include/images', |
26 '../include/private', | 25 '../include/private', |
27 '../src/lazy', | 26 '../src/lazy', |
28 # for access to SkErrorInternals.h | 27 # for access to SkErrorInternals.h |
29 '../src/core/', | 28 '../src/core/', |
30 # for access to SkImagePriv.h | 29 # for access to SkImagePriv.h |
31 '../src/image/', | 30 '../src/image/', |
32 ], | 31 ], |
33 'sources': [ | 32 'sources': [ |
34 '../include/images/SkForceLinking.h', | 33 '../include/images/SkForceLinking.h', |
35 '../include/images/SkMovie.h', | |
36 | 34 |
37 '../src/images/SkForceLinking.cpp', | 35 '../src/images/SkForceLinking.cpp', |
38 '../src/images/SkMovie_FactoryDefault.cpp', | |
39 | 36 |
40 # If encoders are added/removed to/from (all/individual) | 37 # If encoders are added/removed to/from (all/individual) |
41 # platform(s), be sure to update SkForceLinking.cpp | 38 # platform(s), be sure to update SkForceLinking.cpp |
42 # so the right decoders will be forced to link. | 39 # so the right decoders will be forced to link. |
43 | 40 |
44 '../src/images/SkKTXImageEncoder.cpp', | 41 '../src/images/SkKTXImageEncoder.cpp', |
45 '../src/images/SkWEBPImageEncoder.cpp', | 42 '../src/images/SkWEBPImageEncoder.cpp', |
46 '../src/images/SkJPEGImageEncoder.cpp', | 43 '../src/images/SkJPEGImageEncoder.cpp', |
47 '../src/images/SkPNGImageEncoder.cpp', | 44 '../src/images/SkPNGImageEncoder.cpp', |
48 | 45 |
49 '../src/images/SkImageEncoder.cpp', | 46 '../src/images/SkImageEncoder.cpp', |
50 '../src/images/SkImageEncoder_Factory.cpp', | 47 '../src/images/SkImageEncoder_Factory.cpp', |
51 '../src/images/SkJPEGWriteUtility.cpp', | 48 '../src/images/SkJPEGWriteUtility.cpp', |
52 '../src/images/SkMovie.cpp', | |
53 '../src/images/SkGIFMovie.cpp', | |
54 | 49 |
55 '../src/ports/SkImageEncoder_CG.cpp', | 50 '../src/ports/SkImageEncoder_CG.cpp', |
56 '../src/ports/SkImageEncoder_WIC.cpp', | 51 '../src/ports/SkImageEncoder_WIC.cpp', |
57 ], | 52 ], |
58 'conditions': [ | 53 'conditions': [ |
59 [ 'skia_os == "win"', { | 54 [ 'skia_os == "win"', { |
60 'sources!': [ | |
61 '../src/images/SkGIFMovie.cpp', | |
62 ], | |
63 'dependencies!': [ | |
64 'giflib.gyp:giflib' | |
65 ], | |
66 'link_settings': { | 55 'link_settings': { |
67 'libraries': [ | 56 'libraries': [ |
68 '-lwindowscodecs.lib', | 57 '-lwindowscodecs.lib', |
69 ], | 58 ], |
70 }, | 59 }, |
71 },{ #else if skia_os != win | 60 },{ #else if skia_os != win |
72 'sources!': [ | 61 'sources!': [ |
73 '../src/ports/SkImageEncoder_WIC.cpp', | 62 '../src/ports/SkImageEncoder_WIC.cpp', |
74 ], | 63 ], |
75 }], | 64 }], |
76 [ 'skia_os in ["mac", "ios"]', { | 65 [ 'skia_os in ["mac", "ios"]', { |
77 'sources!': [ | |
78 '../src/images/SkGIFMovie.cpp', | |
79 ], | |
80 },{ #else if skia_os != mac | 66 },{ #else if skia_os != mac |
81 'sources!': [ | 67 'sources!': [ |
82 '../src/ports/SkImageEncoder_CG.cpp', | 68 '../src/ports/SkImageEncoder_CG.cpp', |
83 ], | 69 ], |
84 }], | 70 }], |
85 [ 'skia_os == "android"', { | 71 [ 'skia_os == "android"', { |
86 'include_dirs': [ | 72 'include_dirs': [ |
87 '../src/utils', | 73 '../src/utils', |
88 ], | 74 ], |
89 'dependencies': [ | 75 'dependencies': [ |
(...skipping 16 matching lines...) Expand all Loading... |
106 }], | 92 }], |
107 ], | 93 ], |
108 'direct_dependent_settings': { | 94 'direct_dependent_settings': { |
109 'include_dirs': [ | 95 'include_dirs': [ |
110 '../include/images', | 96 '../include/images', |
111 ], | 97 ], |
112 }, | 98 }, |
113 }, | 99 }, |
114 ], | 100 ], |
115 } | 101 } |
OLD | NEW |