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

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

Issue 12088098: Disable MMX intrinsics in qcms for x64 earlier than MSVC 2012 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 | « 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 'targets': [ 6 'targets': [
7 { 7 {
8 'target_name': 'qcms', 8 'target_name': 'qcms',
9 'product_name': 'qcms', 9 'product_name': 'qcms',
10 'type': 'static_library', 10 'type': 'static_library',
(...skipping 15 matching lines...) Expand all
26 './src', 26 './src',
27 ], 27 ],
28 }, 28 },
29 # Warning (sign-conversion) fixed upstream by large refactoring. Can be 29 # Warning (sign-conversion) fixed upstream by large refactoring. Can be
30 # removed on next roll. 30 # removed on next roll.
31 'msvs_disabled_warnings': [ 4018 ], 31 'msvs_disabled_warnings': [ 4018 ],
32 32
33 'variables': { 33 'variables': {
34 'conditions': [ 34 'conditions': [
35 # For x86, turn off SSE2 for non-CrOS *nix Chrome builds. 35 # For x86, turn off SSE2 for non-CrOS *nix Chrome builds.
36 # Disable MMX on x64 for MSVC prior to 2012 (eg. 2012e is enabled).
36 ['disable_sse2==1 or \ 37 ['disable_sse2==1 or \
37 (branding=="Chrome" and target_arch=="ia32" and \ 38 (branding=="Chrome" and target_arch=="ia32" and \
38 os_posix==1 and OS!="mac" and chromeos==0)', { 39 os_posix==1 and OS!="mac" and chromeos==0) or \
40 (OS=="win" and target_arch=="x64" and MSVS_VERSION<"2012")', {
39 'qcms_use_sse': 0, 41 'qcms_use_sse': 0,
40 }, { 42 }, {
41 'qcms_use_sse': 1, 43 'qcms_use_sse': 1,
42 }], 44 }],
43 ], 45 ],
44 }, 46 },
45 47
46 'conditions': [ 48 'conditions': [
47 [ 'qcms_use_sse==1', { 49 [ 'qcms_use_sse==1', {
48 'defines': [ 50 'defines': [
49 'SSE2_ENABLE', 51 'SSE2_ENABLE',
50 ], 52 ],
51 'sources': [ 53 'sources': [
52 'src/transform-sse1.c', 54 'src/transform-sse1.c',
53 'src/transform-sse2.c', 55 'src/transform-sse2.c',
54 ], 56 ],
55 }], 57 }],
56 ], 58 ],
57 }, 59 },
58 ], 60 ],
59 } 61 }
60 62
61 # Local Variables: 63 # Local Variables:
62 # tab-width:2 64 # tab-width:2
63 # indent-tabs-mode:nil 65 # indent-tabs-mode:nil
64 # End: 66 # End:
65 # vim: set expandtab tabstop=2 shiftwidth=2: 67 # 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