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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 "//base", | 51 "//base", |
52 "//third_party/re2", | 52 "//third_party/re2", |
53 "//ui/gl", | 53 "//ui/gl", |
54 ] | 54 ] |
55 | 55 |
56 # Prefer mesa GL headers to system headers, which cause problems on Win. | 56 # Prefer mesa GL headers to system headers, which cause problems on Win. |
57 include_dirs = [ "//third_party/mesa/src/include" ] | 57 include_dirs = [ "//third_party/mesa/src/include" ] |
58 | 58 |
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 = [ |
| 62 "dxguid.lib", |
| 63 "setupapi.lib", |
| 64 ] |
62 | 65 |
63 if (is_chrome_branded && is_official_build) { | 66 if (is_chrome_branded && is_official_build) { |
64 sources += [ | 67 sources += [ |
65 "//third_party/amd/AmdCfxPxExt.h", | 68 "//third_party/amd/AmdCfxPxExt.h", |
66 "//third_party/amd/amd_videocard_info_win.cc", | 69 "//third_party/amd/amd_videocard_info_win.cc", |
67 ] | 70 ] |
68 } | 71 } |
69 | 72 |
70 # TODO(jschuh): size_t to int. | 73 # TODO(jschuh): size_t to int. |
71 cflags = [ "/wd4267" ] | 74 cflags = [ "/wd4267" ] |
72 } | 75 } |
73 if (use_libpci) { | 76 if (use_libpci) { |
74 defines += [ "USE_LIBPCI=1" ] | 77 defines += [ "USE_LIBPCI=1" ] |
75 } | 78 } |
76 if (is_linux && use_libpci && (use_x11 || use_ozone)) { | 79 if (is_linux && use_libpci && (use_x11 || use_ozone)) { |
77 deps += [ | 80 deps += [ "//build/config/linux:libpci" ] |
78 "//build/config/linux:libpci", | |
79 ] | |
80 } | 81 } |
81 if (is_linux && use_x11) { | 82 if (is_linux && use_x11) { |
82 configs += [ | 83 configs += [ |
83 "//build/config/linux:x11", | 84 "//build/config/linux:x11", |
84 "//build/config/linux:xext", | 85 "//build/config/linux:xext", |
85 ] | 86 ] |
86 deps += [ | 87 deps += [ "//third_party/libXNVCtrl" ] |
87 "//third_party/libXNVCtrl", | |
88 ] | |
89 } else { | 88 } else { |
90 sources -= [ "gpu_info_collector_x11.cc" ] | 89 sources -= [ "gpu_info_collector_x11.cc" ] |
91 } | 90 } |
92 if (!use_ozone) { | 91 if (!use_ozone) { |
93 sources -= [ "gpu_info_collector_ozone.cc" ] | 92 sources -= [ "gpu_info_collector_ozone.cc" ] |
94 } | 93 } |
95 } | 94 } |
96 | |
OLD | NEW |