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

Unified Diff: gyp/libjpeg-turbo.gyp

Issue 1228823006: Do not try to compile x86 and x86_64 .asm files on Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/libjpeg-turbo.gyp
diff --git a/gyp/libjpeg-turbo.gyp b/gyp/libjpeg-turbo.gyp
index 25a919fb99ffad17dd51bc9f505f37cf6f61ab4e..eafd6cb10494fccd0f97e47d3d616c80ff4f201c 100644
--- a/gyp/libjpeg-turbo.gyp
+++ b/gyp/libjpeg-turbo.gyp
@@ -113,10 +113,17 @@
# from asm files. This flag disables UseLibraryDependencyInputs to
# avoid this problem.
'msvs_2010_disable_uldi_when_referenced': 1,
-
+
# Add target-specific source files.
'conditions': [
- [ 'skia_arch_type == "x86"', {
+ # FIXME (msarett): Reenable yasm on Android for x86 and x86_64
+ # https://code.google.com/p/skia/issues/detail?id=4028
+ [ 'skia_os == "android" and "x86" in skia_arch_type', {
+ 'sources': [
+ '../third_party/externals/libjpeg-turbo/jsimd_none.c',
+ ],
+ }],
+ [ 'skia_arch_type == "x86" and skia_os != "android"', {
'sources': [
'../third_party/externals/libjpeg-turbo/simd/jsimd_i386.c',
'../third_party/externals/libjpeg-turbo/simd/jccolor-mmx.asm',
@@ -154,7 +161,7 @@
'../third_party/externals/libjpeg-turbo/simd/jsimdcpu.asm',
],
}],
- [ 'skia_arch_type == "x86_64"', {
+ [ 'skia_arch_type == "x86_64" and skia_os != "android"', {
'sources': [
'../third_party/externals/libjpeg-turbo/simd/jsimd_x86_64.c',
'../third_party/externals/libjpeg-turbo/simd/jccolor-sse2-64.asm',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698