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

Side by Side Diff: libjpeg.gyp

Issue 108273007: Revert the previous 2 temporary changes. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo
Patch Set: Created 7 years 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 | « no previous file | no next file » | 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_libjepg==1. Settings for building with 6 # This file is not used when use_system_libjepg==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': [
11 [ 'OS=="win"', { 11 [ 'OS=="win"', {
12 'object_suffix': 'obj', 12 'object_suffix': 'obj',
13 }, { 13 }, {
14 'object_suffix': 'o', 14 'object_suffix': 'o',
15 }], 15 }],
16 ], 16 ],
17 }, 17 },
18 'targets': [ 18 'targets': [
19 { 19 {
20 'target_name': 'libjpeg', 20 'target_name': 'libjpeg',
21 'type': 'static_library', 21 'type': 'static_library',
22 'include_dirs': [ 22 'include_dirs': [
23 '.', 23 '.',
24 ], 24 ],
25 'defines': [ 25 'defines': [
26 'WITH_SIMD', 26 'WITH_SIMD',
27 'MOTION_JPEG_SUPPORTED', 27 'MOTION_JPEG_SUPPORTED',
28 'NO_GETENV',
28 ], 29 ],
29 'sources': [ 30 'sources': [
30 'jcapimin.c', 31 'jcapimin.c',
31 'jcapistd.c', 32 'jcapistd.c',
32 'jccoefct.c', 33 'jccoefct.c',
33 'jccolor.c', 34 'jccolor.c',
34 'jcdctmgr.c', 35 'jcdctmgr.c',
35 'jchuff.c', 36 'jchuff.c',
36 'jchuff.h', 37 'jchuff.h',
37 'jcinit.c', 38 'jcinit.c',
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 'simd/jfss2fst-64.asm', 150 'simd/jfss2fst-64.asm',
150 'simd/jfss2int-64.asm', 151 'simd/jfss2int-64.asm',
151 'simd/jfsseflt-64.asm', 152 'simd/jfsseflt-64.asm',
152 'simd/jiss2flt-64.asm', 153 'simd/jiss2flt-64.asm',
153 'simd/jiss2fst-64.asm', 154 'simd/jiss2fst-64.asm',
154 'simd/jiss2int-64.asm', 155 'simd/jiss2int-64.asm',
155 'simd/jiss2red-64.asm', 156 'simd/jiss2red-64.asm',
156 ], 157 ],
157 }], 158 }],
158 # The ARM SIMD implementation can be used for devices that support 159 # The ARM SIMD implementation can be used for devices that support
159 # the NEON instruction set. This is done dynamically by probing CPU 160 # the NEON instruction set. This can safely be done dynamically by
160 # features at runtime, so always compile it for ARMv7-A devices. 161 # probing CPU features at runtime, if you wish.
161 [ 'target_arch=="arm"', { 162 [ 'target_arch=="arm"', {
162 'conditions': [ 163 'conditions': [
163 [ 'armv7 == 1 or arm_neon == 1', { 164 [ 'arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)', {
164 'sources': [ 165 'sources': [
165 'simd/jsimd_arm.c', 166 'simd/jsimd_arm.c',
166 'simd/jsimd_arm_neon.S', 167 'simd/jsimd_arm_neon.S',
167 ], 168 ],
168 }, { 169 }, {
169 'sources': [ 170 'sources': [
170 'jsimd_none.c', 171 'jsimd_none.c',
171 ], 172 ],
172 }] 173 }]
173 ], 174 ],
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 'yasm_format': '-felf64', 259 'yasm_format': '-felf64',
259 'yasm_flags': [ 260 'yasm_flags': [
260 '-D__x86_64__', 261 '-D__x86_64__',
261 '-DELF', 262 '-DELF',
262 '-Ilinux/' 263 '-Ilinux/'
263 ], 264 ],
264 }], 265 }],
265 ], 266 ],
266 }, 267 },
267 }], 268 }],
268 [ 'OS=="android"', {
269 'defines': [
270 'NO_GETENV', # getenv() is not thread-safe.
271 ],
272 }],
273 ], 269 ],
274 'rules': [ 270 'rules': [
275 { 271 {
276 'rule_name': 'assemble', 272 'rule_name': 'assemble',
277 'extension': 'asm', 273 'extension': 'asm',
278 'conditions': [ 274 'conditions': [
279 [ 'target_arch!="arm"', { 275 [ 'target_arch!="arm"', {
280 'inputs': [ '<(yasm_path)', ], 276 'inputs': [ '<(yasm_path)', ],
281 'outputs': [ 277 'outputs': [
282 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffix)', 278 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffix)',
(...skipping 16 matching lines...) Expand all
299 ], 295 ],
300 }, 296 },
301 ], 297 ],
302 } 298 }
303 299
304 # Local Variables: 300 # Local Variables:
305 # tab-width:2 301 # tab-width:2
306 # indent-tabs-mode:nil 302 # indent-tabs-mode:nil
307 # End: 303 # End:
308 # vim: set expandtab tabstop=2 shiftwidth=2: 304 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« 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