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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 (use_libpci) { | 99 if (use_libpci) { |
100 defines = [ "USE_LIBPCI=1" ] | 100 defines = [ "USE_LIBPCI=1" ] |
101 deps += [ "//build/linux:libpci" ] | 101 deps += [ "//build/linux/libpci" ] |
102 } | 102 } |
103 if (is_linux && use_x11) { | 103 if (is_linux && use_x11) { |
104 configs += [ | 104 configs += [ |
105 "//build/config/linux:x11", | 105 "//build/config/linux:x11", |
106 "//build/config/linux:xext", | 106 "//build/config/linux:xext", |
107 ] | 107 ] |
108 deps += [ | 108 deps += [ |
109 "//third_party/libXNVCtrl", | 109 "//third_party/libXNVCtrl", |
110 "//ui/gfx/x", | 110 "//ui/gfx/x", |
111 ] | 111 ] |
112 } else { | 112 } else { |
113 sources -= [ "gpu_info_collector_x11.cc" ] | 113 sources -= [ "gpu_info_collector_x11.cc" ] |
114 } | 114 } |
115 if (!use_ozone) { | 115 if (!use_ozone) { |
116 sources -= [ "gpu_info_collector_ozone.cc" ] | 116 sources -= [ "gpu_info_collector_ozone.cc" ] |
117 } | 117 } |
118 } | 118 } |
OLD | NEW |