Index: ui/gl/gl.gyp |
diff --git a/ui/gl/gl.gyp b/ui/gl/gl.gyp |
index d6ac05d3ed77ea1e82b5c19372ec33cec1f8fb2b..54a892d8eead75efc90b08e24083eabce96405bd 100644 |
--- a/ui/gl/gl.gyp |
+++ b/ui/gl/gl.gyp |
@@ -116,14 +116,19 @@ |
'actions': [ |
{ |
'action_name': 'generate_gl_bindings', |
+ 'variables': { |
+ 'generator_path': '<(DEPTH)/ui/gl/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)', |
+ '<!@(<(generator_path) --header-paths=<(header_paths) --inputs)', |
], |
'outputs': [ |
'<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc', |
@@ -155,7 +160,8 @@ |
], |
'action': [ |
'python', |
- 'generate_bindings.py', |
+ '<(generator_path)', |
+ '--header-paths=<(header_paths)', |
'<(gl_binding_output_dir)', |
], |
}, |