OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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_init', | 12 'target_name': 'gl_init', |
13 'type': '<(component)', | 13 'type': '<(component)', |
14 'dependencies': [ | 14 'dependencies': [ |
15 '../../../base/base.gyp:base', | 15 '../../../base/base.gyp:base', |
16 '../../gfx/gfx.gyp:gfx', | 16 '../../gfx/gfx.gyp:gfx', |
17 '../../gfx/gfx.gyp:gfx_geometry', | 17 '../../gfx/gfx.gyp:gfx_geometry', |
18 '../gl.gyp:gl', | 18 '../gl.gyp:gl', |
19 ], | 19 ], |
20 'defines': [ | 20 'defines': [ |
21 'GL_INIT_IMPLEMENTATION', | 21 'GL_INIT_IMPLEMENTATION', |
22 ], | 22 ], |
23 'sources': [ | 23 'sources': [ |
| 24 'gl_initializer.h', |
| 25 'gl_initializer_android.cc', |
| 26 'gl_initializer_mac.cc', |
| 27 'gl_initializer_ozone.cc', |
| 28 'gl_initializer_win.cc', |
| 29 'gl_initializer_x11.cc', |
24 'gl_factory.cc', | 30 'gl_factory.cc', |
25 'gl_factory.h', | 31 'gl_factory.h', |
26 'gl_init_export.h', | 32 'gl_init_export.h', |
27 ], | 33 ], |
| 34 'conditions': [ |
| 35 ['OS=="mac"', { |
| 36 'link_settings': { |
| 37 'libraries': [ |
| 38 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
| 39 ], |
| 40 }, |
| 41 }], |
| 42 ], |
28 }, | 43 }, |
29 ], | 44 ], |
30 } | 45 } |
OLD | NEW |