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

Side by Side Diff: third_party/qcms/qcms.gyp

Issue 10972012: Turn off SSE2 when building for ARM or MIPS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « build/common.gypi ('k') | 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 'variables': {
7 'conditions': [
8 # For ARM, turn off SSE2.
9 # For x86, turn off SSE2 for non-CrOS *nix Chrome builds.
10 ['disable_sse2==1 or target_arch=="arm" or \
11 (branding=="Chrome" and target_arch=="ia32" and \
12 os_posix==1 and OS!="mac" and chromeos==0)', {
13 'qcms_use_sse': 0,
14 }, {
15 'qcms_use_sse': 1,
16 }],
17 ],
18 },
19 'targets': [ 6 'targets': [
20 { 7 {
21 'target_name': 'qcms', 8 'target_name': 'qcms',
22 'product_name': 'qcms', 9 'product_name': 'qcms',
23 'type': '<(library)', 10 'type': '<(library)',
24 'sources': [ 11 'sources': [
25 'src/chain.c', 12 'src/chain.c',
26 'src/chain.h', 13 'src/chain.h',
27 'src/iccread.c', 14 'src/iccread.c',
28 'src/matrix.c', 15 'src/matrix.c',
29 'src/matrix.h', 16 'src/matrix.h',
30 'src/qcms.h', 17 'src/qcms.h',
31 'src/qcmsint.h', 18 'src/qcmsint.h',
32 'src/qcmstypes.h', 19 'src/qcmstypes.h',
33 'src/transform.c', 20 'src/transform.c',
34 'src/transform_util.c', 21 'src/transform_util.c',
35 'src/transform_util.h', 22 'src/transform_util.h',
36 ], 23 ],
37 'direct_dependent_settings': { 24 'direct_dependent_settings': {
38 'include_dirs': [ 25 'include_dirs': [
39 './src', 26 './src',
40 ], 27 ],
41 }, 28 },
42 # Warning (sign-conversion) fixed upstream by large refactoring. Can be 29 # Warning (sign-conversion) fixed upstream by large refactoring. Can be
43 # removed on next roll. 30 # removed on next roll.
44 'msvs_disabled_warnings': [ 4018 ], 31 'msvs_disabled_warnings': [ 4018 ],
32
33 'variables': {
34 'conditions': [
35 # For x86, turn off SSE2 for non-CrOS *nix Chrome builds.
36 ['disable_sse2==1 or \
37 (branding=="Chrome" and target_arch=="ia32" and \
38 os_posix==1 and OS!="mac" and chromeos==0)', {
39 'qcms_use_sse': 0,
40 }, {
41 'qcms_use_sse': 1,
42 }],
43 ],
44 },
45
45 'conditions': [ 46 'conditions': [
46 [ 'qcms_use_sse==1', { 47 [ 'qcms_use_sse==1', {
47 'defines': [ 48 'defines': [
48 'SSE2_ENABLE', 49 'SSE2_ENABLE',
49 ], 50 ],
50 'sources': [ 51 'sources': [
51 'src/transform-sse1.c', 52 'src/transform-sse1.c',
52 'src/transform-sse2.c', 53 'src/transform-sse2.c',
53 ], 54 ],
54 }], 55 }],
55 ], 56 ],
56 }, 57 },
57 ], 58 ],
58 } 59 }
59 60
60 # Local Variables: 61 # Local Variables:
61 # tab-width:2 62 # tab-width:2
62 # indent-tabs-mode:nil 63 # indent-tabs-mode:nil
63 # End: 64 # End:
64 # vim: set expandtab tabstop=2 shiftwidth=2: 65 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698