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 | |
44 if (is_official_build) { | |
45 include_dirs = [ "//third_party/swiftshader/include" ] | |
46 } | |
47 } else if (is_mac) { | 43 } else if (is_mac) { |
48 sources += [ | 44 sources += [ |
49 "gl_factory_mac.cc", | 45 "gl_factory_mac.cc", |
50 "gl_initializer_mac.cc", | 46 "gl_initializer_mac.cc", |
51 ] | 47 ] |
52 | 48 |
53 libs = [ "OpenGL.framework" ] | 49 libs = [ "OpenGL.framework" ] |
54 } else if (use_x11) { | 50 } else if (use_x11) { |
55 sources += [ | 51 sources += [ |
56 "gl_factory_x11.cc", | 52 "gl_factory_x11.cc", |
57 "gl_initializer_x11.cc", | 53 "gl_initializer_x11.cc", |
58 ] | 54 ] |
59 | 55 |
60 deps += [ "//ui/gfx/x" ] | 56 deps += [ "//ui/gfx/x" ] |
61 } else if (use_ozone) { | 57 } else if (use_ozone) { |
62 sources += [ | 58 sources += [ |
63 "gl_factory_ozone.cc", | 59 "gl_factory_ozone.cc", |
64 "gl_initializer_ozone.cc", | 60 "gl_initializer_ozone.cc", |
65 ] | 61 ] |
66 | 62 |
67 deps += [ "//ui/ozone" ] | 63 deps += [ "//ui/ozone" ] |
68 } | 64 } |
69 } | 65 } |
OLD | NEW |