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

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: It is 2015 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
« no previous file with comments | « gyp/dm.gypi ('k') | gyp/libjpeg.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:*', 17 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector',
18 'etc1.gyp:libetc1', 18 'etc1.gyp:libetc1',
19 'ktx.gyp:libSkKTX', 19 'ktx.gyp:libSkKTX',
20 'libwebp.gyp:libwebp', 20 'libwebp.gyp:libwebp',
21 'utils.gyp:utils', 21 'utils.gyp:utils',
22 ], 22 ],
23 'include_dirs': [ 23 'include_dirs': [
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
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 '../src/images/SkImageDecoder_libpng.cpp', 109 '../src/images/SkImageDecoder_libpng.cpp',
110 '../src/images/SkImageDecoder_libgif.cpp', 110 '../src/images/SkImageDecoder_libgif.cpp',
111 '../src/images/SkMovie_gif.cpp', 111 '../src/images/SkMovie_gif.cpp',
112 ], 112 ],
113 },{ #else if skia_os != mac 113 },{ #else if skia_os != mac
114 'sources!': [ 114 'sources!': [
115 '../src/ports/SkImageDecoder_CG.cpp', 115 '../src/ports/SkImageDecoder_CG.cpp',
116 ], 116 ],
117 }], 117 }],
118 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { 118 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
119 'export_dependent_settings': [
120 'libpng.gyp:libpng',
121 ],
122 'dependencies': [ 119 'dependencies': [
123 'libpng.gyp:libpng', 120 'libpng.gyp:libpng',
124 ], 121 ],
125 # end libpng stuff 122 # end libpng stuff
126 }], 123 }],
127 [ 'skia_os == "android"', { 124 [ 'skia_os == "android"', {
128 'include_dirs': [ 125 'include_dirs': [
129 '../src/utils', 126 '../src/utils',
130 ], 127 ],
131 'dependencies': [
132 'android_deps.gyp:png',
133 ],
134 'cflags' : [ 128 'cflags' : [
135 # SkImageDecoder_libpng includes png.h. 129 # SkImageDecoder_libpng includes png.h.
136 # In the version of libpng that we use on Android (1.2.46), 130 # 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 131 # there is a missing space between a literal and an identifier
138 # in png.h, triggering a warning in C++11. 132 # in png.h, triggering a warning in C++11.
139 '-Wno-literal-suffix', 133 '-Wno-literal-suffix',
140 ], 134 ],
135 'dependencies': [
136 'libpng.gyp:libpng',
137 ],
141 'conditions': [ 138 'conditions': [
142 [ 'skia_android_framework == 0', { 139 [ 'skia_android_framework == 1', {
143 'export_dependent_settings': [
144 'android_deps.gyp:png',
145 'libjpeg.gyp:*'
146 ],
147 }, {
148 # The android framework disables these decoders as they are of lit tle use to 140 # 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. 141 # Java applications that can't take advantage of the compressed fo rmats.
150 'sources!': [ 142 'sources!': [
151 '../src/images/SkImageDecoder_pkm.cpp', 143 '../src/images/SkImageDecoder_pkm.cpp',
152 '../src/images/SkImageDecoder_ktx.cpp', 144 '../src/images/SkImageDecoder_ktx.cpp',
153 '../src/images/SkImageDecoder_astc.cpp', 145 '../src/images/SkImageDecoder_astc.cpp',
154 ], 146 ],
155 }], 147 }],
156 ], 148 ],
157 }], 149 }],
158 [ 'skia_os == "chromeos"', { 150 [ 'skia_os == "chromeos"', {
159 'dependencies': [ 151 'dependencies': [
160 'libpng.gyp:libpng', 152 'libpng.gyp:libpng',
161 ], 153 ],
162 }], 154 }],
163 [ 'skia_os == "ios"', { 155 [ 'skia_os == "ios"', {
164 'include_dirs': [ 156 'include_dirs': [
165 '../include/utils/mac', 157 '../include/utils/mac',
166 ], 158 ],
167 }], 159 }],
168 ], 160 ],
169 'direct_dependent_settings': { 161 'direct_dependent_settings': {
170 'include_dirs': [ 162 'include_dirs': [
171 '../include/images', 163 '../include/images',
172 ], 164 ],
173 }, 165 },
174 }, 166 },
175 ], 167 ],
176 } 168 }
OLDNEW
« no previous file with comments | « gyp/dm.gypi ('k') | gyp/libjpeg.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698