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 21 matching lines...) Expand all Loading... |
32 if (is_android) { | 32 if (is_android) { |
33 sources += [ | 33 sources += [ |
34 "gl_factory_android.cc", | 34 "gl_factory_android.cc", |
35 "gl_initializer_android.cc", | 35 "gl_initializer_android.cc", |
36 ] | 36 ] |
37 } else if (is_win) { | 37 } else if (is_win) { |
38 sources += [ | 38 sources += [ |
39 "gl_factory_win.cc", | 39 "gl_factory_win.cc", |
40 "gl_initializer_win.cc", | 40 "gl_initializer_win.cc", |
41 ] | 41 ] |
| 42 |
| 43 libs = [ "dwmapi.lib" ] |
| 44 ldflags = [ "/DELAYLOAD:dwmapi.dll" ] |
42 } else if (is_mac) { | 45 } else if (is_mac) { |
43 sources += [ | 46 sources += [ |
44 "gl_factory_mac.cc", | 47 "gl_factory_mac.cc", |
45 "gl_initializer_mac.cc", | 48 "gl_initializer_mac.cc", |
46 ] | 49 ] |
47 | 50 |
48 libs = [ "OpenGL.framework" ] | 51 libs = [ "OpenGL.framework" ] |
49 } else if (use_x11) { | 52 } else if (use_x11) { |
50 sources += [ | 53 sources += [ |
51 "gl_factory_x11.cc", | 54 "gl_factory_x11.cc", |
52 "gl_initializer_x11.cc", | 55 "gl_initializer_x11.cc", |
53 ] | 56 ] |
| 57 |
| 58 deps += [ "//ui/gfx/x" ] |
54 } else if (use_ozone) { | 59 } else if (use_ozone) { |
55 sources += [ | 60 sources += [ |
56 "gl_factory_ozone.cc", | 61 "gl_factory_ozone.cc", |
57 "gl_initializer_ozone.cc", | 62 "gl_initializer_ozone.cc", |
58 "gl_surface_ozone.cc", | 63 "gl_surface_ozone.cc", |
59 "gl_surface_ozone.h", | 64 "gl_surface_ozone.h", |
60 ] | 65 ] |
61 | 66 |
62 deps += [ "//ui/ozone" ] | 67 deps += [ "//ui/ozone" ] |
63 } | 68 } |
64 } | 69 } |
OLD | NEW |