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 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 | 9 |
10 'targets': [ | 10 'targets': [ |
11 { | 11 { |
12 'target_name': 'gl', | 12 'target_name': 'gl', |
13 'type': 'static_library', | 13 'type': '<(component)', |
14 'dependencies': [ | 14 'dependencies': [ |
15 '<(DEPTH)/base/base.gyp:base', | 15 '<(DEPTH)/base/base.gyp:base', |
16 '<(DEPTH)/skia/skia.gyp:skia', | 16 '<(DEPTH)/skia/skia.gyp:skia', |
17 '<(DEPTH)/ui/ui.gyp:ui', | 17 '<(DEPTH)/ui/ui.gyp:ui', |
18 ], | 18 ], |
19 'variables': { | 19 'variables': { |
20 'gl_binding_output_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gl', | 20 'gl_binding_output_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gl', |
21 }, | 21 }, |
| 22 'defines': [ |
| 23 'GL_IMPLEMENTATION', |
| 24 ], |
22 'include_dirs': [ | 25 'include_dirs': [ |
23 '<(DEPTH)/third_party/swiftshader/include', | 26 '<(DEPTH)/third_party/swiftshader/include', |
24 '<(DEPTH)/third_party/mesa/MesaLib/include', | 27 '<(DEPTH)/third_party/mesa/MesaLib/include', |
25 '<(gl_binding_output_dir)', | 28 '<(gl_binding_output_dir)', |
26 ], | 29 ], |
27 'direct_dependent_settings': { | 30 'direct_dependent_settings': { |
28 'include_dirs': [ | 31 'include_dirs': [ |
29 '<(DEPTH)/third_party/mesa/MesaLib/include', | 32 '<(DEPTH)/third_party/mesa/MesaLib/include', |
30 '<(gl_binding_output_dir)', | 33 '<(gl_binding_output_dir)', |
31 ], | 34 ], |
32 }, | 35 }, |
33 'sources': [ | 36 'sources': [ |
34 'gl_bindings.h', | 37 'gl_bindings.h', |
35 'gl_bindings_skia_in_process.cc', | 38 'gl_bindings_skia_in_process.cc', |
36 'gl_bindings_skia_in_process.h', | 39 'gl_bindings_skia_in_process.h', |
37 'gl_context.cc', | 40 'gl_context.cc', |
38 'gl_context.h', | 41 'gl_context.h', |
39 'gl_context_linux.cc', | 42 'gl_context_linux.cc', |
40 'gl_context_mac.cc', | 43 'gl_context_mac.cc', |
41 'gl_context_osmesa.cc', | 44 'gl_context_osmesa.cc', |
42 'gl_context_osmesa.h', | 45 'gl_context_osmesa.h', |
43 'gl_context_stub.cc', | 46 'gl_context_stub.cc', |
44 'gl_context_stub.h', | 47 'gl_context_stub.h', |
45 'gl_context_win.cc', | 48 'gl_context_win.cc', |
| 49 'gl_export.h', |
46 'gl_implementation.cc', | 50 'gl_implementation.cc', |
47 'gl_implementation.h', | 51 'gl_implementation.h', |
48 'gl_implementation_linux.cc', | 52 'gl_implementation_linux.cc', |
49 'gl_implementation_mac.cc', | 53 'gl_implementation_mac.cc', |
50 'gl_implementation_win.cc', | 54 'gl_implementation_win.cc', |
51 'gl_interface.cc', | 55 'gl_interface.cc', |
52 'gl_interface.h', | 56 'gl_interface.h', |
53 'gl_share_group.cc', | 57 'gl_share_group.cc', |
54 'gl_share_group.h', | 58 'gl_share_group.h', |
55 'gl_surface.cc', | 59 'gl_surface.cc', |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 'link_settings': { | 161 'link_settings': { |
158 'libraries': [ | 162 'libraries': [ |
159 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | 163 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
160 ], | 164 ], |
161 }, | 165 }, |
162 }], | 166 }], |
163 ], | 167 ], |
164 }, | 168 }, |
165 ], | 169 ], |
166 } | 170 } |
OLD | NEW |