| 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 = true |
| 10 } | 10 } |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 if (is_win) { | 59 if (is_win) { |
| 60 deps += [ "//third_party/libxml" ] | 60 deps += [ "//third_party/libxml" ] |
| 61 libs = [ "dxguid.lib", "setupapi.lib" ] | 61 libs = [ "dxguid.lib", "setupapi.lib" ] |
| 62 | 62 |
| 63 if (is_chrome_branded && is_official_build) { | 63 if (is_chrome_branded && is_official_build) { |
| 64 sources += [ | 64 sources += [ |
| 65 "//third_party/amd/AmdCfxPxExt.h", | 65 "//third_party/amd/AmdCfxPxExt.h", |
| 66 "//third_party/amd/amd_videocard_info_win.cc", | 66 "//third_party/amd/amd_videocard_info_win.cc", |
| 67 ] | 67 ] |
| 68 } | 68 } |
| 69 |
| 70 # TODO(jschuh): size_t to int. |
| 71 cflags = [ "/wd4267" ] |
| 69 } | 72 } |
| 70 if (use_libpci) { | 73 if (use_libpci) { |
| 71 defines += [ "USE_LIBPCI=1" ] | 74 defines += [ "USE_LIBPCI=1" ] |
| 72 } | 75 } |
| 73 if (is_linux && use_libpci && (use_x11 || use_ozone)) { | 76 if (is_linux && use_libpci && (use_x11 || use_ozone)) { |
| 74 deps += [ | 77 deps += [ |
| 75 "//build/config/linux:libpci", | 78 "//build/config/linux:libpci", |
| 76 ] | 79 ] |
| 77 } | 80 } |
| 78 if (is_linux && use_x11) { | 81 if (is_linux && use_x11) { |
| 79 configs += [ | 82 configs += [ |
| 80 "//build/config/linux:x11", | 83 "//build/config/linux:x11", |
| 81 "//build/config/linux:xext", | 84 "//build/config/linux:xext", |
| 82 ] | 85 ] |
| 83 deps += [ | 86 deps += [ |
| 84 "//third_party/libXNVCtrl", | 87 "//third_party/libXNVCtrl", |
| 85 ] | 88 ] |
| 86 } else { | 89 } else { |
| 87 sources -= [ "gpu_info_collector_x11.cc" ] | 90 sources -= [ "gpu_info_collector_x11.cc" ] |
| 88 } | 91 } |
| 89 if (!use_ozone) { | 92 if (!use_ozone) { |
| 90 sources -= [ "gpu_info_collector_ozone.cc" ] | 93 sources -= [ "gpu_info_collector_ozone.cc" ] |
| 91 } | 94 } |
| 92 } | 95 } |
| 93 | 96 |
| OLD | NEW |