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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 | 6 |
7 component("init") { | 7 component("init") { |
8 output_name = "gl_init" | 8 output_name = "gl_init" |
9 | 9 |
10 public = [ | 10 public = [ |
(...skipping 22 matching lines...) Expand all Loading... |
33 "gl_initializer_android.cc", | 33 "gl_initializer_android.cc", |
34 ] | 34 ] |
35 } else if (is_win) { | 35 } else if (is_win) { |
36 sources += [ | 36 sources += [ |
37 "gl_factory_win.cc", | 37 "gl_factory_win.cc", |
38 "gl_initializer_win.cc", | 38 "gl_initializer_win.cc", |
39 ] | 39 ] |
40 | 40 |
41 libs = [ "dwmapi.lib" ] | 41 libs = [ "dwmapi.lib" ] |
42 ldflags = [ "/DELAYLOAD:dwmapi.dll" ] | 42 ldflags = [ "/DELAYLOAD:dwmapi.dll" ] |
| 43 deps += [ "//ui/gl:gl_features" ] |
43 } else if (is_mac) { | 44 } else if (is_mac) { |
44 sources += [ | 45 sources += [ |
45 "gl_factory_mac.cc", | 46 "gl_factory_mac.cc", |
46 "gl_initializer_mac.cc", | 47 "gl_initializer_mac.cc", |
47 ] | 48 ] |
48 | 49 |
49 libs = [ "OpenGL.framework" ] | 50 libs = [ "OpenGL.framework" ] |
50 } else if (use_x11) { | 51 } else if (use_x11) { |
51 sources += [ | 52 sources += [ |
52 "gl_factory_x11.cc", | 53 "gl_factory_x11.cc", |
53 "gl_initializer_x11.cc", | 54 "gl_initializer_x11.cc", |
54 ] | 55 ] |
55 | 56 |
56 deps += [ "//ui/gfx/x" ] | 57 deps += [ "//ui/gfx/x" ] |
57 } else if (use_ozone) { | 58 } else if (use_ozone) { |
58 sources += [ | 59 sources += [ |
59 "gl_factory_ozone.cc", | 60 "gl_factory_ozone.cc", |
60 "gl_initializer_ozone.cc", | 61 "gl_initializer_ozone.cc", |
61 "ozone_util.h", | 62 "ozone_util.h", |
62 ] | 63 ] |
63 | 64 |
64 deps += [ "//ui/ozone" ] | 65 deps += [ "//ui/ozone" ] |
65 } | 66 } |
66 } | 67 } |
OLD | NEW |