| 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") |
| 6 |
| 5 component("init") { | 7 component("init") { |
| 6 output_name = "gl_init" | 8 output_name = "gl_init" |
| 7 | 9 |
| 8 sources = [ | 10 sources = [ |
| 9 "gl_factory.cc", | 11 "gl_factory.cc", |
| 10 "gl_factory.h", | 12 "gl_factory.h", |
| 11 "gl_init_export.h", | 13 "gl_init_export.h", |
| 14 "gl_initializer.cc", |
| 15 "gl_initializer.h", |
| 12 ] | 16 ] |
| 13 defines = [ "GL_INIT_IMPLEMENTATION" ] | 17 defines = [ "GL_INIT_IMPLEMENTATION" ] |
| 14 | 18 |
| 15 deps = [ | 19 deps = [ |
| 16 "//base", | 20 "//base", |
| 17 "//ui/gfx", | 21 "//ui/gfx", |
| 18 ] | 22 ] |
| 19 | 23 |
| 20 public_deps = [ | 24 public_deps = [ |
| 21 "//ui/gl", | 25 "//ui/gl", |
| 22 ] | 26 ] |
| 27 |
| 28 if (is_android) { |
| 29 sources += [ "gl_initializer_android.cc" ] |
| 30 } else if (is_win) { |
| 31 sources += [ "gl_initializer_win.cc" ] |
| 32 } else if (is_mac) { |
| 33 sources += [ "gl_initializer_mac.cc" ] |
| 34 } else if (use_x11) { |
| 35 sources += [ "gl_initializer_x11.cc" ] |
| 36 } else if (use_ozone) { |
| 37 sources += [ "gl_initializer_ozone.cc" ] |
| 38 } |
| 23 } | 39 } |
| OLD | NEW |