summaryrefslogtreecommitdiff
path: root/deps/gyp/test/win/compiler-flags/enable-enhanced-instruction-set.gyp
blob: 9c49edc7ffc89c73c9e461dd8e4880f15aeb7489 (plain)
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
# Copyright (c) 2014 Google Inc. 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': 'sse_extensions',
      'type': 'executable',
      'msvs_settings': {
        'VCCLCompilerTool': {
          'EnableEnhancedInstructionSet': '1',  # StreamingSIMDExtensions
        }
      },
      'sources': ['enable-enhanced-instruction-set.cc'],
    },
    {
      'target_name': 'sse2_extensions',
      'type': 'executable',
      'msvs_settings': {
        'VCCLCompilerTool': {
          'EnableEnhancedInstructionSet': '2',  # StreamingSIMDExtensions2
        }
      },
      'sources': ['enable-enhanced-instruction-set.cc'],
    },
  ],
  'conditions': [
    ['MSVS_VERSION[0:4]>"2010"', {
      'targets': [
        {
          'target_name': 'avx_extensions',
          'type': 'executable',
          'msvs_settings': {
            'VCCLCompilerTool': {
              'EnableEnhancedInstructionSet': '3',  # AdvancedVectorExtensions
            }
          },
          'sources': ['enable-enhanced-instruction-set.cc'],
        },
        {
          'target_name': 'no_extensions',
          'type': 'executable',
          'msvs_settings': {
            'VCCLCompilerTool': {
              'EnableEnhancedInstructionSet': '4',  # NoExtensions
            }
          },
          'sources': ['enable-enhanced-instruction-set.cc'],
        },
      ],
    }],
    ['MSVS_VERSION[0:4]>="2013"', {
      'targets': [
        {
          'target_name': 'avx2_extensions',
          'type': 'executable',
          'msvs_settings': {
            'VCCLCompilerTool': {
              'EnableEnhancedInstructionSet': '5',  # AdvancedVectorExtensions2
            }
          },
          'sources': ['enable-enhanced-instruction-set.cc'],
        },
      ],
    }],
  ],
}