| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 | 7 |
| 8 declare_args() { | 8 declare_args() { |
| 9 # Use the PCI lib to collect GPU information on Linux. | 9 # Use the PCI lib to collect GPU information on Linux. |
| 10 use_libpci = is_linux && !is_chromecast && (use_x11 || use_ozone) | 10 use_libpci = is_linux && !is_chromecast && (use_x11 || use_ozone) |
| 11 } | 11 } |
| 12 | 12 |
| 13 group("config") { | 13 group("config") { |
| 14 if (is_component_build) { | 14 if (is_component_build) { |
| 15 public_deps = [ | 15 public_deps = [ |
| 16 "//gpu", | 16 "//gpu", |
| 17 ] | 17 ] |
| 18 } else { | 18 } else { |
| 19 public_deps = [ | 19 public_deps = [ |
| 20 ":config_sources", | 20 ":config_sources", |
| 21 ] | 21 ] |
| 22 } | 22 } |
| 23 } | 23 } |
| 24 | 24 |
| 25 source_set("config_sources") { | 25 source_set("config_sources") { |
| 26 visibility = [ | 26 # External code should depend on this via //gpu/config above rather than |
| 27 "//components/mus/gles2:*", | 27 # depending on this directly or the component build will break. |
| 28 "//gpu/*", | 28 visibility = [ "//gpu/*" ] |
| 29 ] | |
| 30 | 29 |
| 31 sources = [ | 30 sources = [ |
| 32 "dx_diag_node.cc", | 31 "dx_diag_node.cc", |
| 33 "dx_diag_node.h", | 32 "dx_diag_node.h", |
| 34 "gpu_blacklist.cc", | 33 "gpu_blacklist.cc", |
| 35 "gpu_blacklist.h", | 34 "gpu_blacklist.h", |
| 36 "gpu_control_list.cc", | 35 "gpu_control_list.cc", |
| 37 "gpu_control_list.h", | 36 "gpu_control_list.h", |
| 38 "gpu_control_list_jsons.h", | 37 "gpu_control_list_jsons.h", |
| 39 "gpu_driver_bug_list.cc", | 38 "gpu_driver_bug_list.cc", |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 "//third_party/libXNVCtrl", | 105 "//third_party/libXNVCtrl", |
| 107 "//ui/gfx/x", | 106 "//ui/gfx/x", |
| 108 ] | 107 ] |
| 109 } else { | 108 } else { |
| 110 sources -= [ "gpu_info_collector_x11.cc" ] | 109 sources -= [ "gpu_info_collector_x11.cc" ] |
| 111 } | 110 } |
| 112 if (!use_ozone) { | 111 if (!use_ozone) { |
| 113 sources -= [ "gpu_info_collector_ozone.cc" ] | 112 sources -= [ "gpu_info_collector_ozone.cc" ] |
| 114 } | 113 } |
| 115 } | 114 } |
| OLD | NEW |