Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: ui/gl/gl.gyp

Issue 11693007: Linux: use generated shim headers for system mesa. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes for windows Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gl/generate_bindings.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 '<(gl_binding_output_dir)/gl_interface_autogen_gl.h', 111 '<(gl_binding_output_dir)/gl_interface_autogen_gl.h',
112 ], 112 ],
113 # hard_dependency is necessary for this target because it has actions 113 # hard_dependency is necessary for this target because it has actions
114 # that generate header files included by dependent targets. The header 114 # that generate header files included by dependent targets. The header
115 # files must be generated before the dependents are compiled. The usual 115 # files must be generated before the dependents are compiled. The usual
116 # semantics are to allow the two targets to build concurrently. 116 # semantics are to allow the two targets to build concurrently.
117 'hard_dependency': 1, 117 'hard_dependency': 1,
118 'actions': [ 118 'actions': [
119 { 119 {
120 'action_name': 'generate_gl_bindings', 120 'action_name': 'generate_gl_bindings',
121 'variables': {
122 'generator_path': 'generate_bindings.py',
123 'conditions': [
124 ['use_system_mesa==0', {
125 'header_paths': '../../third_party/mesa/MesaLib/include:../../th ird_party/khronos',
126 }, { # use_system_mesa==1
127 'header_paths': '/usr/include',
128 }],
129 ],
130 },
121 'inputs': [ 131 'inputs': [
122 'generate_bindings.py', 132 '<(generator_path)',
123 '<(DEPTH)/third_party/khronos/GLES2/gl2ext.h', 133 '<!@(python <(generator_path) --header-paths=<(header_paths) --input s)',
124 '<(DEPTH)/third_party/khronos/EGL/eglext.h',
125 '<(DEPTH)/third_party/mesa/MesaLib/include/GL/glext.h',
126 '<(DEPTH)/third_party/mesa/MesaLib/include/GL/glx.h',
127 '<(DEPTH)/third_party/mesa/MesaLib/include/GL/glxext.h',
128 '<(DEPTH)/third_party/mesa/MesaLib/include/GL/wglext.h',
129 ], 134 ],
130 'outputs': [ 135 'outputs': [
131 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc', 136 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc',
132 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h', 137 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h',
133 '<(gl_binding_output_dir)/gl_bindings_api_autogen_egl.h', 138 '<(gl_binding_output_dir)/gl_bindings_api_autogen_egl.h',
134 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.cc', 139 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.cc',
135 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.h', 140 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.h',
136 '<(gl_binding_output_dir)/gl_bindings_api_autogen_gl.h', 141 '<(gl_binding_output_dir)/gl_bindings_api_autogen_gl.h',
137 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.cc', 142 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.cc',
138 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.h', 143 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.h',
(...skipping 11 matching lines...) Expand all
150 '<(gl_binding_output_dir)/gl_interface_autogen_osmesa.h', 155 '<(gl_binding_output_dir)/gl_interface_autogen_osmesa.h',
151 '<(gl_binding_output_dir)/gl_interface_autogen_wgl.h', 156 '<(gl_binding_output_dir)/gl_interface_autogen_wgl.h',
152 '<(gl_binding_output_dir)/gl_mock_autogen_egl.h', 157 '<(gl_binding_output_dir)/gl_mock_autogen_egl.h',
153 '<(gl_binding_output_dir)/gl_mock_autogen_gl.h', 158 '<(gl_binding_output_dir)/gl_mock_autogen_gl.h',
154 '<(gl_binding_output_dir)/gl_mock_autogen_glx.h', 159 '<(gl_binding_output_dir)/gl_mock_autogen_glx.h',
155 '<(gl_binding_output_dir)/gl_mock_autogen_osmesa.h', 160 '<(gl_binding_output_dir)/gl_mock_autogen_osmesa.h',
156 '<(gl_binding_output_dir)/gl_mock_autogen_wgl.h', 161 '<(gl_binding_output_dir)/gl_mock_autogen_wgl.h',
157 ], 162 ],
158 'action': [ 163 'action': [
159 'python', 164 'python',
160 'generate_bindings.py', 165 '<(generator_path)',
166 '--header-paths=<(header_paths)',
161 '<(gl_binding_output_dir)', 167 '<(gl_binding_output_dir)',
162 ], 168 ],
163 }, 169 },
164 ], 170 ],
165 'conditions': [ 171 'conditions': [
166 ['OS != "mac"', { 172 ['OS != "mac"', {
167 'sources': [ 173 'sources': [
168 'egl_util.cc', 174 'egl_util.cc',
169 'egl_util.h', 175 'egl_util.h',
170 'gl_context_egl.cc', 176 'gl_context_egl.cc',
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 ], 287 ],
282 }, 288 },
283 'sources': [ 289 'sources': [
284 'gl_mock.h', 290 'gl_mock.h',
285 'gl_mock.cc', 291 'gl_mock.cc',
286 '<(gl_binding_output_dir)/gl_mock_autogen_gl.h', 292 '<(gl_binding_output_dir)/gl_mock_autogen_gl.h',
287 ], 293 ],
288 }, 294 },
289 ], 295 ],
290 } 296 }
OLDNEW
« no previous file with comments | « ui/gl/generate_bindings.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698