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 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 | 9 |
10 'targets': [ | 10 'targets': [ |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 '<(gl_binding_output_dir)/gl_interface_autogen_gl.h', | 109 '<(gl_binding_output_dir)/gl_interface_autogen_gl.h', |
110 ], | 110 ], |
111 # hard_dependency is necessary for this target because it has actions | 111 # hard_dependency is necessary for this target because it has actions |
112 # that generate header files included by dependent targets. The header | 112 # that generate header files included by dependent targets. The header |
113 # files must be generated before the dependents are compiled. The usual | 113 # files must be generated before the dependents are compiled. The usual |
114 # semantics are to allow the two targets to build concurrently. | 114 # semantics are to allow the two targets to build concurrently. |
115 'hard_dependency': 1, | 115 'hard_dependency': 1, |
116 'actions': [ | 116 'actions': [ |
117 { | 117 { |
118 'action_name': 'generate_gl_bindings', | 118 'action_name': 'generate_gl_bindings', |
| 119 'variables': { |
| 120 'generator_path': '<(DEPTH)/ui/gl/generate_bindings.py', |
| 121 }, |
119 'inputs': [ | 122 'inputs': [ |
120 'generate_bindings.py', | 123 '<(generator_path)', |
121 '<(DEPTH)/third_party/khronos/GLES2/gl2ext.h', | 124 '<!@(<(generator_path) --use-system-mesa=<(use_system_mesa) --inputs
)', |
122 '<(DEPTH)/third_party/khronos/EGL/eglext.h', | |
123 '<(DEPTH)/third_party/mesa/MesaLib/include/GL/glext.h', | |
124 '<(DEPTH)/third_party/mesa/MesaLib/include/GL/glx.h', | |
125 '<(DEPTH)/third_party/mesa/MesaLib/include/GL/glxext.h', | |
126 '<(DEPTH)/third_party/mesa/MesaLib/include/GL/wglext.h', | |
127 ], | 125 ], |
128 'outputs': [ | 126 'outputs': [ |
129 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc', | 127 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc', |
130 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h', | 128 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h', |
131 '<(gl_binding_output_dir)/gl_bindings_api_autogen_egl.h', | 129 '<(gl_binding_output_dir)/gl_bindings_api_autogen_egl.h', |
132 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.cc', | 130 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.cc', |
133 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.h', | 131 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.h', |
134 '<(gl_binding_output_dir)/gl_bindings_api_autogen_gl.h', | 132 '<(gl_binding_output_dir)/gl_bindings_api_autogen_gl.h', |
135 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.cc', | 133 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.cc', |
136 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.h', | 134 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.h', |
(...skipping 11 matching lines...) Expand all Loading... |
148 '<(gl_binding_output_dir)/gl_interface_autogen_osmesa.h', | 146 '<(gl_binding_output_dir)/gl_interface_autogen_osmesa.h', |
149 '<(gl_binding_output_dir)/gl_interface_autogen_wgl.h', | 147 '<(gl_binding_output_dir)/gl_interface_autogen_wgl.h', |
150 '<(gl_binding_output_dir)/gl_mock_autogen_egl.h', | 148 '<(gl_binding_output_dir)/gl_mock_autogen_egl.h', |
151 '<(gl_binding_output_dir)/gl_mock_autogen_gl.h', | 149 '<(gl_binding_output_dir)/gl_mock_autogen_gl.h', |
152 '<(gl_binding_output_dir)/gl_mock_autogen_glx.h', | 150 '<(gl_binding_output_dir)/gl_mock_autogen_glx.h', |
153 '<(gl_binding_output_dir)/gl_mock_autogen_osmesa.h', | 151 '<(gl_binding_output_dir)/gl_mock_autogen_osmesa.h', |
154 '<(gl_binding_output_dir)/gl_mock_autogen_wgl.h', | 152 '<(gl_binding_output_dir)/gl_mock_autogen_wgl.h', |
155 ], | 153 ], |
156 'action': [ | 154 'action': [ |
157 'python', | 155 'python', |
158 'generate_bindings.py', | 156 '<(generator_path)', |
| 157 '--use-system-mesa=<(use_system_mesa)', |
159 '<(gl_binding_output_dir)', | 158 '<(gl_binding_output_dir)', |
160 ], | 159 ], |
161 }, | 160 }, |
162 ], | 161 ], |
163 'conditions': [ | 162 'conditions': [ |
164 ['OS != "mac"', { | 163 ['OS != "mac"', { |
165 'sources': [ | 164 'sources': [ |
166 'egl_util.cc', | 165 'egl_util.cc', |
167 'egl_util.h', | 166 'egl_util.h', |
168 'gl_context_egl.cc', | 167 'gl_context_egl.cc', |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 ], | 278 ], |
280 }, | 279 }, |
281 'sources': [ | 280 'sources': [ |
282 'gl_mock.h', | 281 'gl_mock.h', |
283 'gl_mock.cc', | 282 'gl_mock.cc', |
284 '<(gl_binding_output_dir)/gl_mock_autogen_gl.h', | 283 '<(gl_binding_output_dir)/gl_mock_autogen_gl.h', |
285 ], | 284 ], |
286 }, | 285 }, |
287 ], | 286 ], |
288 } | 287 } |
OLD | NEW |