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

Side by Side Diff: libvpx_srcs_x86_64_intrinsics.gypi

Issue 866273003: Use the correct AVX flags for Windows builds (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 # This file is generated. Do not edit. 1 # This file is generated. Do not edit.
2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 { 6 {
7 'targets': [ 7 'targets': [
8 { 8 {
9 'target_name': 'libvpx_intrinsics_mmx', 9 'target_name': 'libvpx_intrinsics_mmx',
10 'type': 'static_library', 10 'type': 'static_library',
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 '<(libvpx_source)/vp8/encoder/x86/quantize_ssse3.c', 59 '<(libvpx_source)/vp8/encoder/x86/quantize_ssse3.c',
60 '<(libvpx_source)/vp9/common/x86/vp9_idct_intrin_ssse3.c', 60 '<(libvpx_source)/vp9/common/x86/vp9_idct_intrin_ssse3.c',
61 '<(libvpx_source)/vp9/common/x86/vp9_subpixel_8t_intrin_ssse3.c', 61 '<(libvpx_source)/vp9/common/x86/vp9_subpixel_8t_intrin_ssse3.c',
62 '<(libvpx_source)/vp9/encoder/x86/vp9_dct_ssse3.c', 62 '<(libvpx_source)/vp9/encoder/x86/vp9_dct_ssse3.c',
63 ], 63 ],
64 'cflags': [ '-mssse3', ], 64 'cflags': [ '-mssse3', ],
65 'xcode_settings': { 'OTHER_CFLAGS': [ '-mssse3' ] }, 65 'xcode_settings': { 'OTHER_CFLAGS': [ '-mssse3' ] },
66 'conditions': [ 66 'conditions': [
67 ['OS=="win" and clang==1', { 67 ['OS=="win" and clang==1', {
68 # cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe 68 # cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe
69 # doesn't need it for intrinsics. clang-cl does need it, though. 69 # doesn't need it for intrinsics. There is an /arch flag for AVX2 but
70 # clang-cl needs its own in the form of -mOPT.
70 'msvs_settings': { 71 'msvs_settings': {
71 'VCCLCompilerTool': { 'AdditionalOptions': [ '-mssse3' ] }, 72 'VCCLCompilerTool': { 'AdditionalOptions': [ '-mssse3' ] },
72 }, 73 },
73 }], 74 }],
74 ], 75 ],
75 }, 76 },
76 { 77 {
77 'target_name': 'libvpx_intrinsics_sse4_1', 78 'target_name': 'libvpx_intrinsics_sse4_1',
78 'type': 'static_library', 79 'type': 'static_library',
79 'include_dirs': [ 80 'include_dirs': [
80 'source/config/<(OS_CATEGORY)/<(target_arch_full)', 81 'source/config/<(OS_CATEGORY)/<(target_arch_full)',
81 '<(libvpx_source)', 82 '<(libvpx_source)',
82 ], 83 ],
83 'sources': [ 84 'sources': [
84 '<(libvpx_source)/vp8/encoder/x86/quantize_sse4.c', 85 '<(libvpx_source)/vp8/encoder/x86/quantize_sse4.c',
85 ], 86 ],
86 'cflags': [ '-msse4.1', ], 87 'cflags': [ '-msse4.1', ],
87 'xcode_settings': { 'OTHER_CFLAGS': [ '-msse4.1' ] }, 88 'xcode_settings': { 'OTHER_CFLAGS': [ '-msse4.1' ] },
88 'conditions': [ 89 'conditions': [
89 ['OS=="win" and clang==1', { 90 ['OS=="win" and clang==1', {
90 # cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe 91 # cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe
91 # doesn't need it for intrinsics. clang-cl does need it, though. 92 # doesn't need it for intrinsics. There is an /arch flag for AVX2 but
93 # clang-cl needs its own in the form of -mOPT.
92 'msvs_settings': { 94 'msvs_settings': {
93 'VCCLCompilerTool': { 'AdditionalOptions': [ '-msse4.1' ] }, 95 'VCCLCompilerTool': { 'AdditionalOptions': [ '-msse4.1' ] },
94 }, 96 },
95 }], 97 }],
96 ], 98 ],
97 }, 99 },
98 { 100 {
99 'target_name': 'libvpx_intrinsics_avx2', 101 'target_name': 'libvpx_intrinsics_avx2',
100 'type': 'static_library', 102 'type': 'static_library',
101 'include_dirs': [ 103 'include_dirs': [
(...skipping 12 matching lines...) Expand all
114 '<(libvpx_source)/vp9/encoder/x86/vp9_variance_avx2.c', 116 '<(libvpx_source)/vp9/encoder/x86/vp9_variance_avx2.c',
115 '<(libvpx_source)/vp9/encoder/x86/vp9_variance_impl_intrin_avx2.c', 117 '<(libvpx_source)/vp9/encoder/x86/vp9_variance_impl_intrin_avx2.c',
116 ], 118 ],
117 'cflags': [ '-mavx2', ], 119 'cflags': [ '-mavx2', ],
118 'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx2' ] }, 120 'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx2' ] },
119 'msvs_settings': { 121 'msvs_settings': {
120 'VCCLCompilerTool': { 122 'VCCLCompilerTool': {
121 'EnableEnhancedInstructionSet': '3', # /arch:AVX 123 'EnableEnhancedInstructionSet': '3', # /arch:AVX
122 }, 124 },
123 }, 125 },
126 'conditions': [
127 ['OS=="win" and clang==1', {
128 # cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe
129 # doesn't need it for intrinsics. There is an /arch flag for AVX2 but
130 # clang-cl needs its own in the form of -mOPT.
131 'msvs_settings': {
132 'VCCLCompilerTool': { 'AdditionalOptions': [ '-mavx2' ] },
133 },
134 }],
135 ],
124 }, 136 },
125 ], 137 ],
126 } 138 }
OLDNEW
« generate_gypi.sh ('K') | « generate_gypi.sh ('k') | libvpx_srcs_x86_intrinsics.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698