OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'use_system_khronos%': 0, | 7 'use_system_khronos%': 0, |
8 }, | 8 }, |
9 'conditions': [ | 9 'conditions': [ |
10 ['use_system_khronos==0', { | 10 ['use_system_khronos==0', { |
11 'targets': [ | 11 'targets': [ |
12 { | 12 { |
13 'target_name': 'khronos_headers', | 13 'target_name': 'khronos_headers', |
14 'type': 'none', | 14 'type': 'none', |
15 'all_dependent_settings': { | 15 'all_dependent_settings': { |
16 'include_dirs': [ | 16 'include_dirs': [ |
17 '.', | 17 '.', |
18 '../../gpu', # Contains GLES2/gl2chromium.h | 18 '../../gpu', # Contains GLES2/gl2chromium.h |
19 ], | 19 ], |
20 }, | 20 }, |
21 }, | 21 }, |
22 ], | 22 ], |
23 }, { # use_system_khronos==1 | 23 }, { # use_system_khronos==1 |
24 'targets': [ | 24 'targets': [ |
25 { | 25 { |
26 'target_name': 'khronos_headers', | 26 'target_name': 'khronos_headers', |
27 'type': 'none', | 27 'type': 'none', |
| 28 'variables': { |
| 29 'headers_root_path': '../..', |
| 30 'header_filenames': [ |
| 31 'GLES2/gl2.h;<GLES2/gl2chromium.h>;', |
| 32 'GLES2/gl2ext.h;<GLES2/gl2chromium.h>;<GLES2/gl2extchromium.h>', |
| 33 ], |
| 34 'shim_generator_additional_args': [ |
| 35 '--headers-root', '.', |
| 36 '--use-include-next', |
| 37 ], |
| 38 }, |
| 39 'includes': [ |
| 40 '../../build/shim_headers.gypi', |
| 41 ], |
28 'all_dependent_settings': { | 42 'all_dependent_settings': { |
29 'include_dirs': [ | 43 'include_dirs': [ |
30 '../../gpu', # Contains GLES2/gl2chromium.h | 44 '../../gpu', # Contains GLES2/gl2chromium.h |
31 ], | 45 ], |
32 }, | 46 }, |
33 }, | 47 }, |
34 ], | 48 ], |
35 }], | 49 }], |
36 ], | 50 ], |
37 } | 51 } |
OLD | NEW |