OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'variables': { | |
7 'chromium_code': 1, | |
8 }, | |
9 | |
10 'targets': [ | |
11 { | |
12 'target_name': 'gl_init', | |
13 'type': '<(component)', | |
14 'dependencies': [ | |
15 '../../../base/base.gyp:base', | |
16 '../../gfx/gfx.gyp:gfx', | |
17 '../../gfx/gfx.gyp:gfx_geometry', | |
18 '../gl.gyp:gl', | |
19 ], | |
20 'defines': [ | |
21 'GL_INIT_IMPLEMENTATION', | |
22 ], | |
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', | |
30 'gl_factory.cc', | |
31 'gl_factory.h', | |
32 'gl_factory_android.cc', | |
33 'gl_factory_mac.cc', | |
34 'gl_factory_ozone.cc', | |
35 'gl_factory_win.cc', | |
36 'gl_factory_x11.cc', | |
37 'gl_init_export.h', | |
38 ], | |
39 'conditions': [ | |
40 ['OS=="mac"', { | |
41 'link_settings': { | |
42 'libraries': [ | |
43 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | |
44 ], | |
45 }, | |
46 }], | |
47 ['OS=="win"', { | |
48 'msvs_settings': { | |
49 'VCLinkerTool': { | |
50 'DelayLoadDLLs': [ | |
51 'dwmapi.dll', | |
52 ], | |
53 'AdditionalDependencies': [ | |
54 'dwmapi.lib', | |
55 ], | |
56 }, | |
57 }, | |
58 'link_settings': { | |
59 'libraries': [ | |
60 '-ldwmapi.lib', | |
61 ], | |
62 }, | |
63 }], | |
64 ['use_x11 == 1', { | |
65 'dependencies': [ | |
66 '../../gfx/x/gfx_x11.gyp:gfx_x11', | |
67 ], | |
68 }], | |
69 ['use_ozone==1', { | |
70 'dependencies': [ | |
71 '../../ozone/gl/ozone_gl.gyp:ozone_gl', | |
72 '../../ozone/ozone.gyp:ozone', | |
73 '../../ozone/ozone.gyp:ozone_base', | |
74 ], | |
75 }], | |
76 ], | |
77 }, | |
78 ], | |
79 } | |
OLD | NEW |