| 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 'conditions': [ |
| 122 ['use_system_mesa==0', { |
| 123 'header_paths': '../../third_party/mesa/MesaLib/include:../../th
ird_party/khronos', |
| 124 }, { # use_system_mesa==1 |
| 125 'header_paths': '/usr/include', |
| 126 }], |
| 127 ], |
| 128 }, |
| 119 'inputs': [ | 129 'inputs': [ |
| 120 'generate_bindings.py', | 130 '<(generator_path)', |
| 121 '<(DEPTH)/third_party/khronos/GLES2/gl2ext.h', | 131 '<!@(<(generator_path) --header-paths=<(header_paths) --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 ], | 132 ], |
| 128 'outputs': [ | 133 'outputs': [ |
| 129 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc', | 134 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc', |
| 130 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h', | 135 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h', |
| 131 '<(gl_binding_output_dir)/gl_bindings_api_autogen_egl.h', | 136 '<(gl_binding_output_dir)/gl_bindings_api_autogen_egl.h', |
| 132 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.cc', | 137 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.cc', |
| 133 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.h', | 138 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.h', |
| 134 '<(gl_binding_output_dir)/gl_bindings_api_autogen_gl.h', | 139 '<(gl_binding_output_dir)/gl_bindings_api_autogen_gl.h', |
| 135 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.cc', | 140 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.cc', |
| 136 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.h', | 141 '<(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', | 153 '<(gl_binding_output_dir)/gl_interface_autogen_osmesa.h', |
| 149 '<(gl_binding_output_dir)/gl_interface_autogen_wgl.h', | 154 '<(gl_binding_output_dir)/gl_interface_autogen_wgl.h', |
| 150 '<(gl_binding_output_dir)/gl_mock_autogen_egl.h', | 155 '<(gl_binding_output_dir)/gl_mock_autogen_egl.h', |
| 151 '<(gl_binding_output_dir)/gl_mock_autogen_gl.h', | 156 '<(gl_binding_output_dir)/gl_mock_autogen_gl.h', |
| 152 '<(gl_binding_output_dir)/gl_mock_autogen_glx.h', | 157 '<(gl_binding_output_dir)/gl_mock_autogen_glx.h', |
| 153 '<(gl_binding_output_dir)/gl_mock_autogen_osmesa.h', | 158 '<(gl_binding_output_dir)/gl_mock_autogen_osmesa.h', |
| 154 '<(gl_binding_output_dir)/gl_mock_autogen_wgl.h', | 159 '<(gl_binding_output_dir)/gl_mock_autogen_wgl.h', |
| 155 ], | 160 ], |
| 156 'action': [ | 161 'action': [ |
| 157 'python', | 162 'python', |
| 158 'generate_bindings.py', | 163 '<(generator_path)', |
| 164 '--header-paths=<(header_paths)', |
| 159 '<(gl_binding_output_dir)', | 165 '<(gl_binding_output_dir)', |
| 160 ], | 166 ], |
| 161 }, | 167 }, |
| 162 ], | 168 ], |
| 163 'conditions': [ | 169 'conditions': [ |
| 164 ['OS != "mac"', { | 170 ['OS != "mac"', { |
| 165 'sources': [ | 171 'sources': [ |
| 166 'egl_util.cc', | 172 'egl_util.cc', |
| 167 'egl_util.h', | 173 'egl_util.h', |
| 168 'gl_context_egl.cc', | 174 'gl_context_egl.cc', |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 ], | 285 ], |
| 280 }, | 286 }, |
| 281 'sources': [ | 287 'sources': [ |
| 282 'gl_mock.h', | 288 'gl_mock.h', |
| 283 'gl_mock.cc', | 289 'gl_mock.cc', |
| 284 '<(gl_binding_output_dir)/gl_mock_autogen_gl.h', | 290 '<(gl_binding_output_dir)/gl_mock_autogen_gl.h', |
| 285 ], | 291 ], |
| 286 }, | 292 }, |
| 287 ], | 293 ], |
| 288 } | 294 } |
| OLD | NEW |