| 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/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 | 8 |
| 9 declare_args() { | 9 declare_args() { |
| 10 # Use the PCI lib to collect GPU information on Linux. | 10 # Use the PCI lib to collect GPU information on Linux. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 "setupapi.lib", | 89 "setupapi.lib", |
| 90 ] | 90 ] |
| 91 | 91 |
| 92 if (is_chrome_branded && is_official_build) { | 92 if (is_chrome_branded && is_official_build) { |
| 93 sources += [ | 93 sources += [ |
| 94 "//third_party/amd/AmdCfxPxExt.h", | 94 "//third_party/amd/AmdCfxPxExt.h", |
| 95 "//third_party/amd/amd_videocard_info_win.cc", | 95 "//third_party/amd/amd_videocard_info_win.cc", |
| 96 ] | 96 ] |
| 97 } | 97 } |
| 98 } | 98 } |
| 99 if (is_mac) { |
| 100 libs = [ |
| 101 "IOKit.framework", |
| 102 "CoreFoundation.framework", |
| 103 ] |
| 104 } |
| 99 if (use_libpci) { | 105 if (use_libpci) { |
| 100 defines = [ "USE_LIBPCI=1" ] | 106 defines = [ "USE_LIBPCI=1" ] |
| 101 deps += [ "//build/linux/libpci" ] | 107 deps += [ "//build/linux/libpci" ] |
| 102 } | 108 } |
| 103 if (is_linux && use_x11) { | 109 if (is_linux && use_x11) { |
| 104 configs += [ | 110 configs += [ |
| 105 "//build/config/linux:x11", | 111 "//build/config/linux:x11", |
| 106 "//build/config/linux:xext", | 112 "//build/config/linux:xext", |
| 107 ] | 113 ] |
| 108 deps += [ | 114 deps += [ |
| 109 "//third_party/libXNVCtrl", | 115 "//third_party/libXNVCtrl", |
| 110 "//ui/gfx/x", | 116 "//ui/gfx/x", |
| 111 ] | 117 ] |
| 112 } else { | 118 } else { |
| 113 sources -= [ "gpu_info_collector_x11.cc" ] | 119 sources -= [ "gpu_info_collector_x11.cc" ] |
| 114 } | 120 } |
| 115 if (!use_ozone) { | 121 if (!use_ozone) { |
| 116 sources -= [ "gpu_info_collector_ozone.cc" ] | 122 sources -= [ "gpu_info_collector_ozone.cc" ] |
| 117 } | 123 } |
| 118 } | 124 } |
| OLD | NEW |