Chromium Code Reviews| Index: gpu/config/BUILD.gn |
| diff --git a/gpu/config/BUILD.gn b/gpu/config/BUILD.gn |
| index 4dab028213cc494d3f17b87774241356e7951aa8..0502ead84b2beee2183dcfacf9af72f025e9a944 100644 |
| --- a/gpu/config/BUILD.gn |
| +++ b/gpu/config/BUILD.gn |
| @@ -48,6 +48,9 @@ source_set("config") { |
| "//ui/gl", |
| ] |
| + # Use the PCI lib to collect GPU information on Linux. |
| + use_libpci = true |
|
piman
2014/10/31 18:29:28
Should this be in a declare_args() block so that y
brettw
2014/10/31 19:20:06
Yes, what you did here will always disable pci.
|
| + |
| # Prefer mesa GL headers to system headers, which cause problems on Win. |
| include_dirs = [ "//third_party/mesa/src/include" ] |
| @@ -62,7 +65,10 @@ source_set("config") { |
| ] |
| } |
| } |
| - if (is_linux && (use_x11 || use_ozone)) { |
| + if (use_libpci) { |
| + defines += [ "USE_LIBPCI=1" ] |
| + } |
| + if (is_linux && use_libpci && (use_x11 || use_ozone)) { |
| deps += [ |
| "//build/config/linux:libpci", |
| ] |