summaryrefslogtreecommitdiff
path: root/angle.gyp
blob: 616de1eedeea609bd77bc471e37ea680129962f6 (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
# ANGLE is the Windows-specific translator from OGL ES 2.0 to D3D 9

{
  'conditions': [
    [ 'skia_angle', {
      'target_defaults': {
        'include_dirs': [
          '$(DXSDK_DIR)/Include',
        ],
        'msvs_settings': {
          'VCLinkerTool': {
            'conditions': [
              [ 'skia_arch_width == 32 ', {
                'AdditionalLibraryDirectories': [
                  '$(DXSDK_DIR)/Lib/x86',
                ],
              },{
                'AdditionalLibraryDirectories': [
                  '$(DXSDK_DIR)/Lib/x64',
                ],
              }],
            ],
          },
        },
        'defines': [
          'NOMINMAX',
        ],
        'defines/': [
          ['exclude', 'ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES'],
        ],
      },
      'variables': {
        'component': 'static_library',
        'skia_warnings_as_errors': 0,
      },
      'includes': [
        '../third_party/externals/angle/src/build_angle.gypi',
      ],
    }],
  ],
  'targets': [
    {
      'target_name': 'angle',
      'type': 'none',
      'conditions': [
        [ 'skia_angle', {
          'direct_dependent_settings': {
            'include_dirs': [
              '../third_party/externals/angle/include',
            ],
          },
        }],
      ],
    },
  ],
}