Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Side by Side Diff: gyp/images.gyp

Issue 1406153015: Remove dependencies on Android's forked decoder libraries (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixed images.gyp Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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', 16 'giflib.gyp:giflib',
17 'libjpeg.gyp:*',
18 'etc1.gyp:libetc1', 17 'etc1.gyp:libetc1',
19 'ktx.gyp:libSkKTX', 18 'ktx.gyp:libSkKTX',
20 'libwebp.gyp:libwebp', 19 'libwebp.gyp:libwebp',
21 'utils.gyp:utils', 20 'utils.gyp:utils',
22 ], 21 ],
23 'include_dirs': [ 22 'include_dirs': [
24 '../include/images', 23 '../include/images',
25 '../include/private', 24 '../include/private',
26 '../src/lazy', 25 '../src/lazy',
27 # for access to SkErrorInternals.h 26 # for access to SkErrorInternals.h
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 '../src/images/SkPageFlipper.cpp', 75 '../src/images/SkPageFlipper.cpp',
77 '../src/images/SkScaledBitmapSampler.cpp', 76 '../src/images/SkScaledBitmapSampler.cpp',
78 '../src/images/SkScaledBitmapSampler.h', 77 '../src/images/SkScaledBitmapSampler.h',
79 78
80 '../src/ports/SkImageGenerator_skia.cpp', 79 '../src/ports/SkImageGenerator_skia.cpp',
81 80
82 '../src/ports/SkImageDecoder_CG.cpp', 81 '../src/ports/SkImageDecoder_CG.cpp',
83 '../src/ports/SkImageDecoder_WIC.cpp', 82 '../src/ports/SkImageDecoder_WIC.cpp',
84 ], 83 ],
85 'conditions': [ 84 'conditions': [
85 [ 'skia_android_framework == 0', {
msarett 2015/11/05 16:14:04 It would be cleaner to include this above and then
scroggo 2015/11/05 18:35:53 Yeah, this is an annoying feature of gyp itself -
86 'dependencies': [
87 'libjpeg-turbo.gyp:libjpeg-turbo',
88 ],
89 'export_dependent_settings': [
90 'libjpeg-turbo.gyp:libjpeg-turbo',
91 ],
92 }],
86 [ 'skia_os == "win"', { 93 [ 'skia_os == "win"', {
87 'sources!': [ 94 'sources!': [
88 '../src/images/SkImageDecoder_FactoryDefault.cpp', 95 '../src/images/SkImageDecoder_FactoryDefault.cpp',
89 '../src/images/SkImageDecoder_libgif.cpp', 96 '../src/images/SkImageDecoder_libgif.cpp',
90 '../src/images/SkImageDecoder_libpng.cpp', 97 '../src/images/SkImageDecoder_libpng.cpp',
91 '../src/images/SkMovie_gif.cpp', 98 '../src/images/SkMovie_gif.cpp',
92 ], 99 ],
93 'dependencies!': [ 100 'dependencies!': [
94 'giflib.gyp:giflib' 101 'giflib.gyp:giflib'
95 ], 102 ],
(...skipping 13 matching lines...) Expand all
109 '../src/images/SkImageDecoder_libpng.cpp', 116 '../src/images/SkImageDecoder_libpng.cpp',
110 '../src/images/SkImageDecoder_libgif.cpp', 117 '../src/images/SkImageDecoder_libgif.cpp',
111 '../src/images/SkMovie_gif.cpp', 118 '../src/images/SkMovie_gif.cpp',
112 ], 119 ],
113 },{ #else if skia_os != mac 120 },{ #else if skia_os != mac
114 'sources!': [ 121 'sources!': [
115 '../src/ports/SkImageDecoder_CG.cpp', 122 '../src/ports/SkImageDecoder_CG.cpp',
116 ], 123 ],
117 }], 124 }],
118 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { 125 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
119 'export_dependent_settings': [ 126 'export_dependent_settings': [
scroggo 2015/11/05 22:24:55 Why did this get removed? Is this a separate clean
msarett 2015/11/05 22:39:53 This is a clean-up. libpng.gyp will choose either
120 'libpng.gyp:libpng', 127 'libpng.gyp:libpng',
121 ], 128 ],
122 'dependencies': [ 129 'dependencies': [
123 'libpng.gyp:libpng', 130 'libpng.gyp:libpng',
124 ], 131 ],
125 # end libpng stuff 132 # end libpng stuff
126 }], 133 }],
127 [ 'skia_os == "android"', { 134 [ 'skia_os == "android"', {
128 'include_dirs': [ 135 'include_dirs': [
129 '../src/utils', 136 '../src/utils',
130 ], 137 ],
131 'dependencies': [
132 'android_deps.gyp:png',
133 ],
134 'cflags' : [ 138 'cflags' : [
135 # SkImageDecoder_libpng includes png.h. 139 # SkImageDecoder_libpng includes png.h.
136 # In the version of libpng that we use on Android (1.2.46), 140 # In the version of libpng that we use on Android (1.2.46),
137 # there is a missing space between a literal and an identifier 141 # there is a missing space between a literal and an identifier
138 # in png.h, triggering a warning in C++11. 142 # in png.h, triggering a warning in C++11.
139 '-Wno-literal-suffix', 143 '-Wno-literal-suffix',
140 ], 144 ],
141 'conditions': [ 145 'conditions': [
142 [ 'skia_android_framework == 0', { 146 [ 'skia_android_framework == 0', {
147 'dependencies': [
148 'libpng.gyp:libpng',
scroggo 2015/11/05 18:35:53 I'm confused: images.gyp seems a lot more complica
msarett 2015/11/05 22:13:25 You're right we can simplify this.
149 ],
143 'export_dependent_settings': [ 150 'export_dependent_settings': [
144 'android_deps.gyp:png', 151 'libpng.gyp:libpng',
145 'libjpeg.gyp:*'
146 ], 152 ],
147 }, { 153 }, {
148 # The android framework disables these decoders as they are of lit tle use to 154 # The android framework disables these decoders as they are of lit tle use to
149 # Java applications that can't take advantage of the compressed fo rmats. 155 # Java applications that can't take advantage of the compressed fo rmats.
150 'sources!': [ 156 'sources!': [
151 '../src/images/SkImageDecoder_pkm.cpp', 157 '../src/images/SkImageDecoder_pkm.cpp',
152 '../src/images/SkImageDecoder_ktx.cpp', 158 '../src/images/SkImageDecoder_ktx.cpp',
153 '../src/images/SkImageDecoder_astc.cpp', 159 '../src/images/SkImageDecoder_astc.cpp',
154 ], 160 ],
161 'dependencies': [
162 'android_deps.gyp:libjpeg-turbo',
163 'android_deps.gyp:png',
164 ],
155 }], 165 }],
156 ], 166 ],
157 }], 167 }],
158 [ 'skia_os == "chromeos"', { 168 [ 'skia_os == "chromeos"', {
159 'dependencies': [ 169 'dependencies': [
160 'libpng.gyp:libpng', 170 'libpng.gyp:libpng',
161 ], 171 ],
162 }], 172 }],
163 [ 'skia_os == "ios"', { 173 [ 'skia_os == "ios"', {
164 'include_dirs': [ 174 'include_dirs': [
165 '../include/utils/mac', 175 '../include/utils/mac',
166 ], 176 ],
167 }], 177 }],
168 ], 178 ],
169 'direct_dependent_settings': { 179 'direct_dependent_settings': {
170 'include_dirs': [ 180 'include_dirs': [
171 '../include/images', 181 '../include/images',
172 ], 182 ],
173 }, 183 },
174 }, 184 },
175 ], 185 ],
176 } 186 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698