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