forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibvpx_srcs_x86_intrinsics.gypi
123 lines (122 loc) · 4.49 KB
/
libvpx_srcs_x86_intrinsics.gypi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# This file is generated. Do not edit.
# Copyright (c) 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'libvpx_intrinsics_mmx',
'type': 'static_library',
'include_dirs': [
'source/config/<(OS_CATEGORY)/<(target_arch_full)',
'<(libvpx_source)',
],
'sources': [
'<(libvpx_source)/vp8/common/x86/idct_blk_mmx.c',
'<(libvpx_source)/vp8/encoder/x86/vp8_enc_stubs_mmx.c',
'<(libvpx_source)/vpx_dsp/x86/variance_mmx.c',
],
'cflags': [ '-mmmx', ],
'xcode_settings': { 'OTHER_CFLAGS': [ '-mmmx' ] },
},
{
'target_name': 'libvpx_intrinsics_sse2',
'type': 'static_library',
'include_dirs': [
'source/config/<(OS_CATEGORY)/<(target_arch_full)',
'<(libvpx_source)',
],
'sources': [
'<(libvpx_source)/vp8/common/x86/idct_blk_sse2.c',
'<(libvpx_source)/vp8/common/x86/recon_wrapper_sse2.c',
'<(libvpx_source)/vp8/encoder/x86/denoising_sse2.c',
'<(libvpx_source)/vp8/encoder/x86/vp8_enc_stubs_sse2.c',
'<(libvpx_source)/vp8/encoder/x86/vp8_quantize_sse2.c',
'<(libvpx_source)/vp9/common/x86/vp9_idct_intrin_sse2.c',
'<(libvpx_source)/vp9/encoder/x86/vp9_avg_intrin_sse2.c',
'<(libvpx_source)/vp9/encoder/x86/vp9_dct_sse2.c',
'<(libvpx_source)/vp9/encoder/x86/vp9_denoiser_sse2.c',
'<(libvpx_source)/vp9/encoder/x86/vp9_quantize_sse2.c',
'<(libvpx_source)/vpx_dsp/x86/fwd_txfm_sse2.c',
'<(libvpx_source)/vpx_dsp/x86/halfpix_variance_sse2.c',
'<(libvpx_source)/vpx_dsp/x86/inv_txfm_sse2.c',
'<(libvpx_source)/vpx_dsp/x86/loopfilter_sse2.c',
'<(libvpx_source)/vpx_dsp/x86/quantize_sse2.c',
'<(libvpx_source)/vpx_dsp/x86/variance_sse2.c',
],
'cflags': [ '-msse2', ],
'xcode_settings': { 'OTHER_CFLAGS': [ '-msse2' ] },
},
{
'target_name': 'libvpx_intrinsics_ssse3',
'type': 'static_library',
'include_dirs': [
'source/config/<(OS_CATEGORY)/<(target_arch_full)',
'<(libvpx_source)',
],
'sources': [
'<(libvpx_source)/vp8/encoder/x86/quantize_ssse3.c',
'<(libvpx_source)/vp9/encoder/x86/vp9_dct_ssse3.c',
'<(libvpx_source)/vpx_dsp/x86/vpx_subpixel_8t_intrin_ssse3.c',
],
'cflags': [ '-mssse3', ],
'xcode_settings': { 'OTHER_CFLAGS': [ '-mssse3' ] },
'conditions': [
['OS=="win" and clang==1', {
# cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe
# doesn't need it for intrinsics. clang-cl does need it, though.
'msvs_settings': {
'VCCLCompilerTool': { 'AdditionalOptions': [ '-mssse3' ] },
},
}],
],
},
{
'target_name': 'libvpx_intrinsics_sse4_1',
'type': 'static_library',
'include_dirs': [
'source/config/<(OS_CATEGORY)/<(target_arch_full)',
'<(libvpx_source)',
],
'sources': [
'<(libvpx_source)/vp8/encoder/x86/quantize_sse4.c',
],
'cflags': [ '-msse4.1', ],
'xcode_settings': { 'OTHER_CFLAGS': [ '-msse4.1' ] },
'conditions': [
['OS=="win" and clang==1', {
# cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe
# doesn't need it for intrinsics. clang-cl does need it, though.
'msvs_settings': {
'VCCLCompilerTool': { 'AdditionalOptions': [ '-msse4.1' ] },
},
}],
],
},
{
'target_name': 'libvpx_intrinsics_avx2',
'type': 'static_library',
'include_dirs': [
'source/config/<(OS_CATEGORY)/<(target_arch_full)',
'<(libvpx_source)',
],
'sources': [
'<(libvpx_source)/vp9/encoder/x86/vp9_error_intrin_avx2.c',
'<(libvpx_source)/vpx_dsp/x86/fwd_txfm_avx2.c',
'<(libvpx_source)/vpx_dsp/x86/loopfilter_avx2.c',
'<(libvpx_source)/vpx_dsp/x86/sad4d_avx2.c',
'<(libvpx_source)/vpx_dsp/x86/sad_avx2.c',
'<(libvpx_source)/vpx_dsp/x86/variance_avx2.c',
'<(libvpx_source)/vpx_dsp/x86/variance_impl_avx2.c',
'<(libvpx_source)/vpx_dsp/x86/vpx_subpixel_8t_intrin_avx2.c',
],
'cflags': [ '-mavx2', ],
'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx2' ] },
'msvs_settings': {
'VCCLCompilerTool': {
'EnableEnhancedInstructionSet': '5', # /arch:AVX2
},
},
},
],
}