| 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/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 | 6 |
| 7 declare_args() { | 7 declare_args() { |
| 8 # Use the PCI lib to collect GPU information on Linux. | 8 # Use the PCI lib to collect GPU information on Linux. |
| 9 use_libpci = true | 9 use_libpci = is_linux && !use_ozone |
| 10 } | 10 } |
| 11 | 11 |
| 12 source_set("config") { | 12 source_set("config") { |
| 13 sources = [ | 13 sources = [ |
| 14 "dx_diag_node.cc", | 14 "dx_diag_node.cc", |
| 15 "dx_diag_node.h", | 15 "dx_diag_node.h", |
| 16 "gpu_blacklist.cc", | 16 "gpu_blacklist.cc", |
| 17 "gpu_blacklist.h", | 17 "gpu_blacklist.h", |
| 18 "gpu_control_list.cc", | 18 "gpu_control_list.cc", |
| 19 "gpu_control_list.h", | 19 "gpu_control_list.h", |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 if (is_chrome_branded && is_official_build) { | 71 if (is_chrome_branded && is_official_build) { |
| 72 sources += [ | 72 sources += [ |
| 73 "//third_party/amd/AmdCfxPxExt.h", | 73 "//third_party/amd/AmdCfxPxExt.h", |
| 74 "//third_party/amd/amd_videocard_info_win.cc", | 74 "//third_party/amd/amd_videocard_info_win.cc", |
| 75 ] | 75 ] |
| 76 } | 76 } |
| 77 } | 77 } |
| 78 if (use_libpci) { | 78 if (use_libpci) { |
| 79 defines = [ "USE_LIBPCI=1" ] | 79 defines = [ "USE_LIBPCI=1" ] |
| 80 } | 80 } |
| 81 if (is_linux && use_libpci && (use_x11 || use_ozone)) { | 81 if (is_linux && use_libpci) { |
| 82 deps += [ "//build/config/linux:libpci" ] | 82 deps += [ "//build/config/linux:libpci" ] |
| 83 } | 83 } |
| 84 if (is_linux && use_x11) { | 84 if (is_linux && use_x11) { |
| 85 configs += [ | 85 configs += [ |
| 86 "//build/config/linux:x11", | 86 "//build/config/linux:x11", |
| 87 "//build/config/linux:xext", | 87 "//build/config/linux:xext", |
| 88 ] | 88 ] |
| 89 deps += [ | 89 deps += [ |
| 90 "//third_party/libXNVCtrl", | 90 "//third_party/libXNVCtrl", |
| 91 "//ui/gfx/x", | 91 "//ui/gfx/x", |
| 92 ] | 92 ] |
| 93 } else { | 93 } else { |
| 94 sources -= [ "gpu_info_collector_x11.cc" ] | 94 sources -= [ "gpu_info_collector_x11.cc" ] |
| 95 } | 95 } |
| 96 if (!use_ozone) { | 96 if (!use_ozone) { |
| 97 sources -= [ "gpu_info_collector_ozone.cc" ] | 97 sources -= [ "gpu_info_collector_ozone.cc" ] |
| 98 } | 98 } |
| 99 } | 99 } |
| OLD | NEW |