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

Side by Side Diff: gyp/libjpeg-turbo.gyp

Issue 1239333002: Reenable yasm for Android x86 and x86-64 on Linux (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Adding documentation 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
« no previous file with comments | « no previous file | gyp/yasm.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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'xcode_settings': { 6 'xcode_settings': {
7 'SYMROOT': '<(DEPTH)/xcodebuild', 7 'SYMROOT': '<(DEPTH)/xcodebuild',
8 }, 8 },
9 'variables': { 9 'variables': {
10 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/externals/li bjpeg-turbo', 10 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/externals/li bjpeg-turbo',
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 ], 118 ],
119 }, 119 },
120 'msvs_disabled_warnings': [4018, 4101], 120 'msvs_disabled_warnings': [4018, 4101],
121 # VS2010 does not correctly incrementally link obj files generated 121 # VS2010 does not correctly incrementally link obj files generated
122 # from asm files. This flag disables UseLibraryDependencyInputs to 122 # from asm files. This flag disables UseLibraryDependencyInputs to
123 # avoid this problem. 123 # avoid this problem.
124 'msvs_2010_disable_uldi_when_referenced': 1, 124 'msvs_2010_disable_uldi_when_referenced': 1,
125 125
126 # Add target-specific source files. 126 # Add target-specific source files.
127 'conditions': [ 127 'conditions': [
128 # FIXME (msarett): Reenable yasm on Android for x86 and x86_64 128 # TODO (msarett): Is it possible to enable cross compiling for Android o n other platforms?
129 # https://code.google.com/p/skia/issues/detail?id=4028 129 [ 'skia_os == "android" and host_os != "linux" and "x86" in skia_arch_ty pe', {
130 [ 'skia_os == "android" and "x86" in skia_arch_type', { 130 'sources': [
131 'sources': [ 131 '../third_party/externals/libjpeg-turbo/jsimd_none.c',
132 '../third_party/externals/libjpeg-turbo/jsimd_none.c', 132 ],
133 ],
134 }], 133 }],
135 [ 'skia_arch_type == "x86" and skia_os != "android"', { 134 [ 'skia_arch_type == "x86" and (skia_os != "android" or host_os == "linu x")', {
136 'sources': [ 135 'sources': [
137 '../third_party/externals/libjpeg-turbo/simd/jsimd_i386.c', 136 '../third_party/externals/libjpeg-turbo/simd/jsimd_i386.c',
138 '../third_party/externals/libjpeg-turbo/simd/jccolor-mmx.asm', 137 '../third_party/externals/libjpeg-turbo/simd/jccolor-mmx.asm',
139 '../third_party/externals/libjpeg-turbo/simd/jccolor-sse2.asm', 138 '../third_party/externals/libjpeg-turbo/simd/jccolor-sse2.asm',
140 '../third_party/externals/libjpeg-turbo/simd/jcgray-mmx.asm', 139 '../third_party/externals/libjpeg-turbo/simd/jcgray-mmx.asm',
141 '../third_party/externals/libjpeg-turbo/simd/jcgray-sse2.asm', 140 '../third_party/externals/libjpeg-turbo/simd/jcgray-sse2.asm',
142 '../third_party/externals/libjpeg-turbo/simd/jcsample-mmx.asm', 141 '../third_party/externals/libjpeg-turbo/simd/jcsample-mmx.asm',
143 '../third_party/externals/libjpeg-turbo/simd/jcsample-sse2.asm', 142 '../third_party/externals/libjpeg-turbo/simd/jcsample-sse2.asm',
144 '../third_party/externals/libjpeg-turbo/simd/jdcolor-mmx.asm', 143 '../third_party/externals/libjpeg-turbo/simd/jdcolor-mmx.asm',
145 '../third_party/externals/libjpeg-turbo/simd/jdcolor-sse2.asm', 144 '../third_party/externals/libjpeg-turbo/simd/jdcolor-sse2.asm',
(...skipping 17 matching lines...) Expand all
163 '../third_party/externals/libjpeg-turbo/simd/jidctred-mmx.asm', 162 '../third_party/externals/libjpeg-turbo/simd/jidctred-mmx.asm',
164 '../third_party/externals/libjpeg-turbo/simd/jidctred-sse2.asm', 163 '../third_party/externals/libjpeg-turbo/simd/jidctred-sse2.asm',
165 '../third_party/externals/libjpeg-turbo/simd/jquant-3dn.asm', 164 '../third_party/externals/libjpeg-turbo/simd/jquant-3dn.asm',
166 '../third_party/externals/libjpeg-turbo/simd/jquantf-sse2.asm', 165 '../third_party/externals/libjpeg-turbo/simd/jquantf-sse2.asm',
167 '../third_party/externals/libjpeg-turbo/simd/jquanti-sse2.asm', 166 '../third_party/externals/libjpeg-turbo/simd/jquanti-sse2.asm',
168 '../third_party/externals/libjpeg-turbo/simd/jquant-mmx.asm', 167 '../third_party/externals/libjpeg-turbo/simd/jquant-mmx.asm',
169 '../third_party/externals/libjpeg-turbo/simd/jquant-sse.asm', 168 '../third_party/externals/libjpeg-turbo/simd/jquant-sse.asm',
170 '../third_party/externals/libjpeg-turbo/simd/jsimdcpu.asm', 169 '../third_party/externals/libjpeg-turbo/simd/jsimdcpu.asm',
171 ], 170 ],
172 }], 171 }],
173 [ 'skia_arch_type == "x86_64" and skia_os != "android"', { 172 [ 'skia_arch_type == "x86_64" and (skia_os != "android" or host_os == "l inux")', {
174 'sources': [ 173 'sources': [
175 '../third_party/externals/libjpeg-turbo/simd/jsimd_x86_64.c', 174 '../third_party/externals/libjpeg-turbo/simd/jsimd_x86_64.c',
176 '../third_party/externals/libjpeg-turbo/simd/jccolor-sse2-64.asm', 175 '../third_party/externals/libjpeg-turbo/simd/jccolor-sse2-64.asm',
177 '../third_party/externals/libjpeg-turbo/simd/jcgray-sse2-64.asm', 176 '../third_party/externals/libjpeg-turbo/simd/jcgray-sse2-64.asm',
178 '../third_party/externals/libjpeg-turbo/simd/jcsample-sse2-64.asm', 177 '../third_party/externals/libjpeg-turbo/simd/jcsample-sse2-64.asm',
179 '../third_party/externals/libjpeg-turbo/simd/jdcolor-sse2-64.asm', 178 '../third_party/externals/libjpeg-turbo/simd/jdcolor-sse2-64.asm',
180 '../third_party/externals/libjpeg-turbo/simd/jdmerge-sse2-64.asm', 179 '../third_party/externals/libjpeg-turbo/simd/jdmerge-sse2-64.asm',
181 '../third_party/externals/libjpeg-turbo/simd/jdsample-sse2-64.asm', 180 '../third_party/externals/libjpeg-turbo/simd/jdsample-sse2-64.asm',
182 '../third_party/externals/libjpeg-turbo/simd/jfdctflt-sse-64.asm', 181 '../third_party/externals/libjpeg-turbo/simd/jfdctflt-sse-64.asm',
183 '../third_party/externals/libjpeg-turbo/simd/jfdctfst-sse2-64.asm', 182 '../third_party/externals/libjpeg-turbo/simd/jfdctfst-sse2-64.asm',
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 'yasm_flags': [ 249 'yasm_flags': [
251 '-D__x86_64__', 250 '-D__x86_64__',
252 '-DWIN64', 251 '-DWIN64',
253 '-DMSVC', 252 '-DMSVC',
254 '-Iwin/' 253 '-Iwin/'
255 ], 254 ],
256 }], 255 }],
257 ], 256 ],
258 }, 257 },
259 }], 258 }],
260 [ 'skia_os == "android" and (skia_arch_type == "x86" or skia_arch_type = = "x86_64")', { 259 [ 'skia_os == "android" and host_os == "linux" and \
260 (skia_arch_type == "x86" or skia_arch_type == "x86_64")', {
261 'dependencies': [
262 'yasm.gyp:yasm#host',
263 ],
261 'variables': { 264 'variables': {
262 'yasm_path': '../third_party/yasm/config/android/yasm', 265 'yasm_path': '<(PRODUCT_DIR)/yasm',
263 'conditions': [ 266 'conditions': [
264 [ 'skia_arch_type == "x86"', { 267 [ 'skia_arch_type == "x86"', {
265 'yasm_format': '-felf', 268 'yasm_format': '-felf',
266 'yasm_flags': [ 269 'yasm_flags': [
267 '-D__x86__', 270 '-D__x86__',
268 '-DELF', 271 '-DELF',
269 '-Ilinux/' 272 '-Ilinux/'
270 ], 273 ],
271 }, { 274 }, {
272 'yasm_format': '-felf64', 275 'yasm_format': '-felf64',
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 ], 357 ],
355 'process_outputs_as_sources': 1, 358 'process_outputs_as_sources': 1,
356 'message': 'Building <(RULE_INPUT_ROOT).<(object_suffix)', 359 'message': 'Building <(RULE_INPUT_ROOT).<(object_suffix)',
357 }], 360 }],
358 ] 361 ]
359 }, 362 },
360 ], 363 ],
361 }, 364 },
362 ], 365 ],
363 } 366 }
OLDNEW
« no previous file with comments | « no previous file | gyp/yasm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698