| 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_chromecast | 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", |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 if (is_chrome_branded && is_official_build) { | 89 if (is_chrome_branded && is_official_build) { |
| 90 sources += [ | 90 sources += [ |
| 91 "//third_party/amd/AmdCfxPxExt.h", | 91 "//third_party/amd/AmdCfxPxExt.h", |
| 92 "//third_party/amd/amd_videocard_info_win.cc", | 92 "//third_party/amd/amd_videocard_info_win.cc", |
| 93 ] | 93 ] |
| 94 } | 94 } |
| 95 } | 95 } |
| 96 if (use_libpci) { | 96 if (use_libpci) { |
| 97 defines = [ "USE_LIBPCI=1" ] | 97 defines = [ "USE_LIBPCI=1" ] |
| 98 } | |
| 99 if (is_linux && use_libpci && (use_x11 || use_ozone)) { | |
| 100 deps += [ "//build/linux:libpci" ] | 98 deps += [ "//build/linux:libpci" ] |
| 101 } | 99 } |
| 102 if (is_linux && use_x11) { | 100 if (is_linux && use_x11) { |
| 103 configs += [ | 101 configs += [ |
| 104 "//build/config/linux:x11", | 102 "//build/config/linux:x11", |
| 105 "//build/config/linux:xext", | 103 "//build/config/linux:xext", |
| 106 ] | 104 ] |
| 107 deps += [ | 105 deps += [ |
| 108 "//third_party/libXNVCtrl", | 106 "//third_party/libXNVCtrl", |
| 109 "//ui/gfx/x", | 107 "//ui/gfx/x", |
| 110 ] | 108 ] |
| 111 } else { | 109 } else { |
| 112 sources -= [ "gpu_info_collector_x11.cc" ] | 110 sources -= [ "gpu_info_collector_x11.cc" ] |
| 113 } | 111 } |
| 114 if (!use_ozone) { | 112 if (!use_ozone) { |
| 115 sources -= [ "gpu_info_collector_ozone.cc" ] | 113 sources -= [ "gpu_info_collector_ozone.cc" ] |
| 116 } | 114 } |
| 117 } | 115 } |
| OLD | NEW |