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

Side by Side Diff: platform_tools/android/gyp/dependencies.gypi

Issue 1180983002: Switch SkJpegCode to libjpeg-turbo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Adding turbo to DEPS Created 5 years, 5 months 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 # This GYP file stores the dependencies necessary to build Skia on the Android 6 # This GYP file stores the dependencies necessary to build Skia on the Android
7 # platform. The OS doesn't provide many stable libraries as part of the 7 # platform. The OS doesn't provide many stable libraries as part of the
8 # distribution so we have to build a few of them ourselves. 8 # distribution so we have to build a few of them ourselves.
9 # 9 #
10 # NOTE: We tried adding the gyp file to the android/ directory at the root of 10 # NOTE: We tried adding the gyp file to the android/ directory at the root of
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 '../third_party/externals/jpeg/jidctfst.c', 176 '../third_party/externals/jpeg/jidctfst.c',
177 '../third_party/externals/jpeg/jidctint.c', 177 '../third_party/externals/jpeg/jidctint.c',
178 '../third_party/externals/jpeg/jidctred.c', 178 '../third_party/externals/jpeg/jidctred.c',
179 '../third_party/externals/jpeg/jmem-ashmem.c', 179 '../third_party/externals/jpeg/jmem-ashmem.c',
180 '../third_party/externals/jpeg/jmemmgr.c', 180 '../third_party/externals/jpeg/jmemmgr.c',
181 '../third_party/externals/jpeg/jquant1.c', 181 '../third_party/externals/jpeg/jquant1.c',
182 '../third_party/externals/jpeg/jquant2.c', 182 '../third_party/externals/jpeg/jquant2.c',
183 '../third_party/externals/jpeg/jutils.c', 183 '../third_party/externals/jpeg/jutils.c',
184 ], 184 ],
185 'conditions': [ 185 'conditions': [
186 [ 'arm_neon == 1 and skia_clang_build == 0', 186 # TODO (msarett): Reenable compiling of assembly files.
187 { 187 #[ 'arm_neon == 1 and skia_clang_build == 0',
188 'sources' : [ 188 # {
189 '../third_party/externals/jpeg/armv6_idct.S', 189 # 'sources' : [
190 '../third_party/externals/jpeg/jsimd_arm_neon.S', 190 # '../third_party/externals/jpeg/armv6_idct.S',
191 '../third_party/externals/jpeg/jsimd_neon.c', 191 # '../third_party/externals/jpeg/jsimd_arm_neon.S',
192 ], 192 # '../third_party/externals/jpeg/jsimd_neon.c',
193 'defines' : [ 193 # ],
194 'NV_ARM_NEON', 194 # 'defines' : [
195 ], 195 # 'NV_ARM_NEON',
196 }, 196 # ],
197 ], 197 # },
198 [ 'skia_arch_type == "mips" and mips_dsp == 2', 198 #],
199 { 199 #[ 'skia_arch_type == "mips" and mips_dsp == 2',
200 'sources' : [ 200 # {
201 '../third_party/externals/jpeg/mips_jidctfst.c', 201 # 'sources' : [
202 '../third_party/externals/jpeg/mips_idct_le.S', 202 # '../third_party/externals/jpeg/mips_jidctfst.c',
203 ], 203 # '../third_party/externals/jpeg/mips_idct_le.S',
204 'defines' : [ 204 # ],
205 'ANDROID_MIPS_IDCT', 205 # 'defines' : [
206 ], 206 # 'ANDROID_MIPS_IDCT',
207 }, 207 # ],
208 ], 208 # },
209 #],
209 [ '"x86" in skia_arch_type', 210 [ '"x86" in skia_arch_type',
210 { 211 {
211 'sources' : [ 212 'sources' : [
212 '../third_party/externals/jpeg/jidctintelsse.c', 213 '../third_party/externals/jpeg/jidctintelsse.c',
213 ], 214 ],
214 'defines' : [ 215 'defines' : [
215 'ANDROID_INTELSSE2_IDCT', 216 'ANDROID_INTELSSE2_IDCT',
216 ], 217 ],
217 }, 218 },
218 ], 219 ],
219 ], 220 ],
220 'include_dirs': [ 221 'include_dirs': [
222 '../third_party/jpeg/',
221 '../third_party/externals/jpeg', 223 '../third_party/externals/jpeg',
222 ], 224 ],
223 'cflags': [ 225 'cflags': [
224 '-w', 226 '-w',
225 '-fvisibility=hidden', 227 '-fvisibility=hidden',
226 '-DAVOID_TABLES', 228 '-DAVOID_TABLES',
227 '-DUSE_ANDROID_ASHMEM', 229 '-DUSE_ANDROID_ASHMEM',
228 '-O3', 230 '-O3',
229 '-fstrict-aliasing', 231 '-fstrict-aliasing',
230 '-fprefetch-loop-arrays', 232 '-fprefetch-loop-arrays',
231 '-DANDROID_TILE_BASED_DECODE', 233 '-DANDROID_TILE_BASED_DECODE',
234 # Trick libjpeg into thinking that jpeglib.h has already been included, and then include
235 # our own version that mangles the function names. This trick prevents us from being able
236 # to compile assembly files. This should be ok because it is a temporar y measure. When we
237 # want to benchmark decodes with DCT_IFAST on Neon, we will simply remov e these flags from
238 # this gyp file and make a one line modification to externals/libjpeg.
239 # TODO (msarett): Reenable compiling of assembly files.
240 '-DJPEGLIB_H',
241 '-include manglejpeglib.h',
232 ], 242 ],
233 'direct_dependent_settings': { 243 'direct_dependent_settings': {
234 'include_dirs': [ 244 'include_dirs': [
245 '../third_party/jpeg',
235 '../third_party/externals/jpeg', 246 '../third_party/externals/jpeg',
236 ], 247 ],
237 } 248 }
238 }, 249 },
239 { 250 {
240 # This target is a dependency for all console-type Skia applications which 251 # This target is a dependency for all console-type Skia applications which
241 # will run on Android. Since Android requires us to load native code in 252 # will run on Android. Since Android requires us to load native code in
242 # shared libraries, we need a common entry point to wrap around main(). 253 # shared libraries, we need a common entry point to wrap around main().
243 # Here we also change the type of all would-be executables to be shared 254 # Here we also change the type of all would-be executables to be shared
244 # libraries. The alternative would be to introduce a condition in every 255 # libraries. The alternative would be to introduce a condition in every
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 '../../../tools/timer/', 330 '../../../tools/timer/',
320 ], 331 ],
321 'sources': [ 332 'sources': [
322 '../visualbench/jni/SkOSWindow_AndroidNative.cpp', 333 '../visualbench/jni/SkOSWindow_AndroidNative.cpp',
323 '../visualbench/jni/main.cpp', 334 '../visualbench/jni/main.cpp',
324 ], 335 ],
325 }, 336 },
326 }, 337 },
327 ] 338 ]
328 } 339 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698