summaryrefslogtreecommitdiffstats
path: root/third_party/khronos/khronos.gyp
blob: 0abcfa335b1d8e98df836ed92c5a77cfba8b402c (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
# Copyright (c) 2012 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.

{
  'variables': {
    'use_system_khronos%': 0,
  },
  'conditions': [
    ['use_system_khronos==0', {
      'targets': [
        {
          'target_name': 'khronos_headers',
          'type': 'none',
          'all_dependent_settings': {
            'include_dirs': [
              '.',
              '../../gpu',  # Contains GLES2/gl2chromium.h
            ],
          },
        },
      ],
    }, { # use_system_khronos==1
      'targets': [
        {
          'target_name': 'khronos_headers',
          'type': 'none',
          'variables': {
            'headers_root_path': '../..',
            'header_filenames': [
              'GLES2/gl2.h;<GLES2/gl2chromium.h>;',
              'GLES2/gl2ext.h;<GLES2/gl2chromium.h>;<GLES2/gl2extchromium.h>',
            ],
            'shim_generator_additional_args': [
              '--headers-root', '.',
              '--use-include-next',
            ],
          },
          'includes': [
            '../../build/shim_headers.gypi',
          ],
          'all_dependent_settings': {
            'include_dirs': [
              '../../gpu',  # Contains GLES2/gl2chromium.h
            ],
          },
        },
      ],
    }],
  ],
}