| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'target_defaults': { | 6 'target_defaults': { |
| 7 'sources/': [ | 7 'sources/': [ |
| 8 ['exclude', '/(cocoa|gtk|win)/'], | 8 ['exclude', '/(cocoa|gtk|win)/'], |
| 9 ['exclude', '_(cocoa|gtk|linux|mac|posix|win|x)\\.(cc|mm?)$'], | 9 ['exclude', '_(cocoa|gtk|linux|mac|posix|win|x)\\.(cc|mm?)$'], |
| 10 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], | 10 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 '<(DEPTH)/third_party/mesa/MesaLib/include', | 48 '<(DEPTH)/third_party/mesa/MesaLib/include', |
| 49 '<(gl_binding_output_dir)', | 49 '<(gl_binding_output_dir)', |
| 50 ], | 50 ], |
| 51 'direct_dependent_settings': { | 51 'direct_dependent_settings': { |
| 52 'include_dirs': [ | 52 'include_dirs': [ |
| 53 '<(DEPTH)/third_party/mesa/MesaLib/include', | 53 '<(DEPTH)/third_party/mesa/MesaLib/include', |
| 54 '<(gl_binding_output_dir)', | 54 '<(gl_binding_output_dir)', |
| 55 ], | 55 ], |
| 56 }, | 56 }, |
| 57 'sources': [ | 57 'sources': [ |
| 58 'gl_bindings.gypi', | |
| 59 'gl_bindings.h', | 58 'gl_bindings.h', |
| 60 'gl_bindings_skia_in_process.cc', | 59 'gl_bindings_skia_in_process.cc', |
| 61 'gl_bindings_skia_in_process.h', | 60 'gl_bindings_skia_in_process.h', |
| 62 'gl_context.cc', | 61 'gl_context.cc', |
| 63 'gl_context.h', | 62 'gl_context.h', |
| 64 'gl_context_linux.cc', | 63 'gl_context_linux.cc', |
| 65 'gl_context_mac.cc', | 64 'gl_context_mac.cc', |
| 66 'gl_context_osmesa.cc', | 65 'gl_context_osmesa.cc', |
| 67 'gl_context_osmesa.h', | 66 'gl_context_osmesa.h', |
| 68 'gl_context_stub.cc', | 67 'gl_context_stub.cc', |
| 69 'gl_context_stub.h', | 68 'gl_context_stub.h', |
| 70 'gl_context_win.cc', | 69 'gl_context_win.cc', |
| 71 'gl_implementation.cc', | 70 'gl_implementation.cc', |
| 72 'gl_implementation.h', | 71 'gl_implementation.h', |
| 73 'gl_implementation_linux.cc', | 72 'gl_implementation_linux.cc', |
| 74 'gl_implementation_mac.cc', | 73 'gl_implementation_mac.cc', |
| 75 'gl_implementation_win.cc', | 74 'gl_implementation_win.cc', |
| 76 'gl_interface.cc', | 75 'gl_interface.cc', |
| 77 'gl_interface.h', | 76 'gl_interface.h', |
| 77 'gl_surface.cc', |
| 78 'gl_surface.h', |
| 78 'gl_switches.cc', | 79 'gl_switches.cc', |
| 79 'gl_switches.h', | 80 'gl_switches.h', |
| 80 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.cc', | 81 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.cc', |
| 81 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.h', | 82 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.h', |
| 82 '<(gl_binding_output_dir)/gl_bindings_autogen_mock.cc', | 83 '<(gl_binding_output_dir)/gl_bindings_autogen_mock.cc', |
| 83 '<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.cc', | 84 '<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.cc', |
| 84 '<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.h', | 85 '<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.h', |
| 85 ], | 86 ], |
| 86 # hard_dependency is necessary for this target because it has actions | 87 # hard_dependency is necessary for this target because it has actions |
| 87 # that generate header files included by dependent targets. The header | 88 # that generate header files included by dependent targets. The header |
| (...skipping 20 matching lines...) Expand all Loading... |
| 108 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.h', | 109 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.h', |
| 109 ], | 110 ], |
| 110 'action': [ | 111 'action': [ |
| 111 'python', | 112 'python', |
| 112 'generate_bindings.py', | 113 'generate_bindings.py', |
| 113 '<(gl_binding_output_dir)', | 114 '<(gl_binding_output_dir)', |
| 114 ], | 115 ], |
| 115 }, | 116 }, |
| 116 ], | 117 ], |
| 117 'conditions': [ | 118 'conditions': [ |
| 119 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="win"', { |
| 120 'sources': [ |
| 121 'egl_util.cc', |
| 122 'egl_util.h', |
| 123 'gl_context_egl.cc', |
| 124 'gl_context_egl.h', |
| 125 'gl_surface_egl.cc', |
| 126 'gl_surface_egl.h', |
| 127 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc', |
| 128 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h', |
| 129 ], |
| 130 'include_dirs': [ |
| 131 '<(DEPTH)/third_party/angle/include', |
| 132 ], |
| 133 }], |
| 118 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | 134 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
| 119 'sources': [ | 135 'sources': [ |
| 120 'gl_context_egl.cc', | |
| 121 'gl_context_egl.h', | |
| 122 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc', | |
| 123 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h', | |
| 124 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.cc', | 136 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.cc', |
| 125 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.h', | 137 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.h', |
| 126 ], | 138 ], |
| 127 'include_dirs': [ | |
| 128 # We don't use angle, but pull the EGL/GLES headers from there. | |
| 129 '<(DEPTH)/third_party/angle/include', | |
| 130 ], | |
| 131 'all_dependent_settings': { | 139 'all_dependent_settings': { |
| 132 'defines': [ | 140 'defines': [ |
| 133 'GL_GLEXT_PROTOTYPES', | 141 'GL_GLEXT_PROTOTYPES', |
| 134 ], | 142 ], |
| 135 }, | 143 }, |
| 136 }], | 144 }], |
| 145 ['OS=="win"', { |
| 146 'sources': [ |
| 147 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.cc', |
| 148 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.h', |
| 149 ], |
| 150 }], |
| 137 ['OS=="mac"', { | 151 ['OS=="mac"', { |
| 138 'link_settings': { | 152 'link_settings': { |
| 139 'libraries': [ | 153 'libraries': [ |
| 140 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | 154 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
| 141 ], | 155 ], |
| 142 }, | 156 }, |
| 143 }], | 157 }], |
| 144 ['OS=="win"', { | |
| 145 'sources': [ | |
| 146 'gl_context_egl.cc', | |
| 147 'gl_context_egl.h', | |
| 148 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc', | |
| 149 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h', | |
| 150 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.cc', | |
| 151 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.h', | |
| 152 ], | |
| 153 'include_dirs': [ | |
| 154 '<(DEPTH)/third_party/angle/include', | |
| 155 ], | |
| 156 }], | |
| 157 ], | 158 ], |
| 158 }, | 159 }, |
| 159 ], | 160 ], |
| 160 } | 161 } |
| OLD | NEW |