Roll src/third_party/WebKit a3b4a2e:7441784 (svn 202551:202552)
[chromium-blink-merge.git] / third_party / libvpx_new / libvpx_srcs_x86_64_intrinsics.gypi
blob95fa0e75b487c03665fd9f8d180109e6c92eabc8
1 # This file is generated. Do not edit.
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
4 # found in the LICENSE file.
7   'targets': [
8     {
9       'target_name': 'libvpx_intrinsics_mmx',
10       'type': 'static_library',
11       'include_dirs': [
12         'source/config/<(OS_CATEGORY)/<(target_arch_full)',
13         '<(libvpx_source)',
14       ],
15       'sources': [
16         '<(libvpx_source)/vp8/common/x86/idct_blk_mmx.c',
17         '<(libvpx_source)/vp8/encoder/x86/vp8_enc_stubs_mmx.c',
18         '<(libvpx_source)/vpx_dsp/x86/variance_mmx.c',
19       ],
20       'cflags': [ '-mmmx', ],
21       'xcode_settings': { 'OTHER_CFLAGS': [ '-mmmx' ] },
22     },
23     {
24       'target_name': 'libvpx_intrinsics_sse2',
25       'type': 'static_library',
26       'include_dirs': [
27         'source/config/<(OS_CATEGORY)/<(target_arch_full)',
28         '<(libvpx_source)',
29       ],
30       'sources': [
31         '<(libvpx_source)/vp8/common/x86/idct_blk_sse2.c',
32         '<(libvpx_source)/vp8/common/x86/recon_wrapper_sse2.c',
33         '<(libvpx_source)/vp8/encoder/x86/denoising_sse2.c',
34         '<(libvpx_source)/vp8/encoder/x86/vp8_enc_stubs_sse2.c',
35         '<(libvpx_source)/vp8/encoder/x86/vp8_quantize_sse2.c',
36         '<(libvpx_source)/vp9/common/x86/vp9_idct_intrin_sse2.c',
37         '<(libvpx_source)/vp9/encoder/x86/vp9_avg_intrin_sse2.c',
38         '<(libvpx_source)/vp9/encoder/x86/vp9_dct_sse2.c',
39         '<(libvpx_source)/vp9/encoder/x86/vp9_denoiser_sse2.c',
40         '<(libvpx_source)/vp9/encoder/x86/vp9_quantize_sse2.c',
41         '<(libvpx_source)/vpx_dsp/x86/fwd_txfm_sse2.c',
42         '<(libvpx_source)/vpx_dsp/x86/halfpix_variance_sse2.c',
43         '<(libvpx_source)/vpx_dsp/x86/inv_txfm_sse2.c',
44         '<(libvpx_source)/vpx_dsp/x86/loopfilter_sse2.c',
45         '<(libvpx_source)/vpx_dsp/x86/quantize_sse2.c',
46         '<(libvpx_source)/vpx_dsp/x86/variance_sse2.c',
47       ],
48       'cflags': [ '-msse2', ],
49       'xcode_settings': { 'OTHER_CFLAGS': [ '-msse2' ] },
50     },
51     {
52       'target_name': 'libvpx_intrinsics_ssse3',
53       'type': 'static_library',
54       'include_dirs': [
55         'source/config/<(OS_CATEGORY)/<(target_arch_full)',
56         '<(libvpx_source)',
57       ],
58       'sources': [
59         '<(libvpx_source)/vp8/encoder/x86/quantize_ssse3.c',
60         '<(libvpx_source)/vp9/encoder/x86/vp9_dct_ssse3.c',
61         '<(libvpx_source)/vpx_dsp/x86/vpx_subpixel_8t_intrin_ssse3.c',
62       ],
63       'cflags': [ '-mssse3', ],
64       'xcode_settings': { 'OTHER_CFLAGS': [ '-mssse3' ] },
65       'conditions': [
66         ['OS=="win" and clang==1', {
67           # cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe
68           # doesn't need it for intrinsics. clang-cl does need it, though.
69           'msvs_settings': {
70             'VCCLCompilerTool': { 'AdditionalOptions': [ '-mssse3' ] },
71           },
72         }],
73       ],
74     },
75     {
76       'target_name': 'libvpx_intrinsics_sse4_1',
77       'type': 'static_library',
78       'include_dirs': [
79         'source/config/<(OS_CATEGORY)/<(target_arch_full)',
80         '<(libvpx_source)',
81       ],
82       'sources': [
83         '<(libvpx_source)/vp8/encoder/x86/quantize_sse4.c',
84       ],
85       'cflags': [ '-msse4.1', ],
86       'xcode_settings': { 'OTHER_CFLAGS': [ '-msse4.1' ] },
87       'conditions': [
88         ['OS=="win" and clang==1', {
89           # cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe
90           # doesn't need it for intrinsics. clang-cl does need it, though.
91           'msvs_settings': {
92             'VCCLCompilerTool': { 'AdditionalOptions': [ '-msse4.1' ] },
93           },
94         }],
95       ],
96     },
97     {
98       'target_name': 'libvpx_intrinsics_avx2',
99       'type': 'static_library',
100       'include_dirs': [
101         'source/config/<(OS_CATEGORY)/<(target_arch_full)',
102         '<(libvpx_source)',
103       ],
104       'sources': [
105         '<(libvpx_source)/vp9/encoder/x86/vp9_error_intrin_avx2.c',
106         '<(libvpx_source)/vpx_dsp/x86/fwd_txfm_avx2.c',
107         '<(libvpx_source)/vpx_dsp/x86/loopfilter_avx2.c',
108         '<(libvpx_source)/vpx_dsp/x86/sad4d_avx2.c',
109         '<(libvpx_source)/vpx_dsp/x86/sad_avx2.c',
110         '<(libvpx_source)/vpx_dsp/x86/variance_avx2.c',
111         '<(libvpx_source)/vpx_dsp/x86/variance_impl_avx2.c',
112         '<(libvpx_source)/vpx_dsp/x86/vpx_subpixel_8t_intrin_avx2.c',
113       ],
114       'cflags': [ '-mavx2', ],
115       'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx2' ] },
116       'msvs_settings': {
117         'VCCLCompilerTool': {
118           'EnableEnhancedInstructionSet': '5', # /arch:AVX2
119         },
120       },
121     },
122   ],