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

Side by Side Diff: libjpeg.gyp

Issue 434123003: Add ARM64 SIMD support to libjpeg_turbo (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo
Patch Set: Add neon fixes Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « google.patch ('k') | simd/jsimd_arm64.c » ('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 # This file is not used when use_system_libjpeg==1. Settings for building with 6 # This file is not used when use_system_libjpeg==1. Settings for building with
7 # the system libjpeg is in third_party/libjpeg/libjpeg.gyp. 7 # the system libjpeg is in third_party/libjpeg/libjpeg.gyp.
8 'variables': { 8 'variables': {
9 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libjpeg_turb o', 9 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libjpeg_turb o',
10 'conditions': [ 10 'conditions': [
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 ], 175 ],
176 }, { 176 }, {
177 'sources': [ 177 'sources': [
178 'jsimd_none.c', 178 'jsimd_none.c',
179 ], 179 ],
180 }] 180 }]
181 ], 181 ],
182 }], 182 }],
183 [ 'target_arch=="arm64"', { 183 [ 'target_arch=="arm64"', {
184 'sources': [ 184 'sources': [
185 'jsimd_none.c', 185 'simd/jsimd_arm64.c',
186 'simd/jsimd_arm64_neon.S',
186 ], 187 ],
187 }], 188 }],
188 [ 'target_arch=="mipsel"', { 189 [ 'target_arch=="mipsel"', {
189 'sources': [ 190 'sources': [
190 'jsimd_none.c', 191 'jsimd_none.c',
191 ], 192 ],
192 }], 193 }],
193 194
194 # Build rules for an asm file. 195 # Build rules for an asm file.
195 # On Windows, we use the precompiled yasm binary. On Linux, we build 196 # On Windows, we use the precompiled yasm binary. On Linux, we build
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 'yasm_format': '-fmacho64', 239 'yasm_format': '-fmacho64',
239 'yasm_flags': [ 240 'yasm_flags': [
240 '-D__x86_64__', 241 '-D__x86_64__',
241 '-DMACHO', 242 '-DMACHO',
242 '-Imac/' 243 '-Imac/'
243 ], 244 ],
244 }], 245 }],
245 ], 246 ],
246 }, 247 },
247 }], 248 }],
248 [ 'OS=="linux" or OS=="freebsd" or (OS=="android" and target_arch!="arm" )', { 249 [ 'OS=="linux" or OS=="freebsd" or (OS=="android" and (target_arch=="ia3 2" or target_arch=="x64"))', {
249 'conditions': [ 250 'conditions': [
250 [ 'use_system_yasm==0', { 251 [ 'use_system_yasm==0', {
251 'dependencies': [ 252 'dependencies': [
252 '../yasm/yasm.gyp:yasm#host', 253 '../yasm/yasm.gyp:yasm#host',
253 ], 254 ],
254 }], 255 }],
255 ], 256 ],
256 'variables': { 257 'variables': {
257 'conditions': [ 258 'conditions': [
258 [ 'use_system_yasm==1', { 259 [ 'use_system_yasm==1', {
(...skipping 18 matching lines...) Expand all
277 }], 278 }],
278 ], 279 ],
279 }, 280 },
280 }], 281 }],
281 ], 282 ],
282 'rules': [ 283 'rules': [
283 { 284 {
284 'rule_name': 'assemble', 285 'rule_name': 'assemble',
285 'extension': 'asm', 286 'extension': 'asm',
286 'conditions': [ 287 'conditions': [
287 [ 'target_arch!="arm"', { 288 [ 'target_arch=="ia32" or target_arch=="x64"', {
288 'inputs': [ '<(yasm_path)', ], 289 'inputs': [ '<(yasm_path)', ],
289 'outputs': [ 290 'outputs': [
290 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffix)', 291 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffix)',
291 ], 292 ],
292 'action': [ 293 'action': [
293 '<(yasm_path)', 294 '<(yasm_path)',
294 '<(yasm_format)', 295 '<(yasm_format)',
295 '<@(yasm_flags)', 296 '<@(yasm_flags)',
296 '-DRGBX_FILLER_0XFF', 297 '-DRGBX_FILLER_0XFF',
297 '-DSTRICT_MEMORY_ACCESS', 298 '-DSTRICT_MEMORY_ACCESS',
298 '-Isimd/', 299 '-Isimd/',
299 '-o', '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffi x)', 300 '-o', '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffi x)',
300 '<(RULE_INPUT_PATH)', 301 '<(RULE_INPUT_PATH)',
301 ], 302 ],
302 'process_outputs_as_sources': 1, 303 'process_outputs_as_sources': 1,
303 'message': 'Building <(RULE_INPUT_ROOT).<(object_suffix)', 304 'message': 'Building <(RULE_INPUT_ROOT).<(object_suffix)',
304 }], 305 }],
305 ] 306 ]
306 }, 307 },
307 ], 308 ],
308 }, 309 },
309 ], 310 ],
310 } 311 }
311 312
312 # Local Variables: 313 # Local Variables:
313 # tab-width:2 314 # tab-width:2
314 # indent-tabs-mode:nil 315 # indent-tabs-mode:nil
315 # End: 316 # End:
316 # vim: set expandtab tabstop=2 shiftwidth=2: 317 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « google.patch ('k') | simd/jsimd_arm64.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698