summaryrefslogtreecommitdiffstats
path: root/ui/gl/gl.gyp
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 17:34:31 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 17:34:31 +0000
commit46aa05cc4233d50f361375d11227648f232129d3 (patch)
tree737aa4ce172841536196c0ae605b5bd17d78a480 /ui/gl/gl.gyp
parent4ebf2a9e3ab572b6b9d911c4d1058a4e5f8eafe5 (diff)
downloadchromium_src-46aa05cc4233d50f361375d11227648f232129d3.zip
chromium_src-46aa05cc4233d50f361375d11227648f232129d3.tar.gz
chromium_src-46aa05cc4233d50f361375d11227648f232129d3.tar.bz2
Linux: use generated shim headers for system mesa.
BUG=161389, 165264 Review URL: https://codereview.chromium.org/11693007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176926 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl/gl.gyp')
-rw-r--r--ui/gl/gl.gyp22
1 files changed, 14 insertions, 8 deletions
diff --git a/ui/gl/gl.gyp b/ui/gl/gl.gyp
index 89eb268..b4e7409 100644
--- a/ui/gl/gl.gyp
+++ b/ui/gl/gl.gyp
@@ -118,14 +118,19 @@
'actions': [
{
'action_name': 'generate_gl_bindings',
+ 'variables': {
+ 'generator_path': 'generate_bindings.py',
+ 'conditions': [
+ ['use_system_mesa==0', {
+ 'header_paths': '../../third_party/mesa/MesaLib/include:../../third_party/khronos',
+ }, { # use_system_mesa==1
+ 'header_paths': '/usr/include',
+ }],
+ ],
+ },
'inputs': [
- 'generate_bindings.py',
- '<(DEPTH)/third_party/khronos/GLES2/gl2ext.h',
- '<(DEPTH)/third_party/khronos/EGL/eglext.h',
- '<(DEPTH)/third_party/mesa/MesaLib/include/GL/glext.h',
- '<(DEPTH)/third_party/mesa/MesaLib/include/GL/glx.h',
- '<(DEPTH)/third_party/mesa/MesaLib/include/GL/glxext.h',
- '<(DEPTH)/third_party/mesa/MesaLib/include/GL/wglext.h',
+ '<(generator_path)',
+ '<!@(python <(generator_path) --header-paths=<(header_paths) --inputs)',
],
'outputs': [
'<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc',
@@ -157,7 +162,8 @@
],
'action': [
'python',
- 'generate_bindings.py',
+ '<(generator_path)',
+ '--header-paths=<(header_paths)',
'<(gl_binding_output_dir)',
],
},