Index: gpu/config/BUILD.gn |
diff --git a/gpu/config/BUILD.gn b/gpu/config/BUILD.gn |
index 4dab028213cc494d3f17b87774241356e7951aa8..799dc12a0dade05df089c4052cd2f2c65e8c2a4f 100644 |
--- a/gpu/config/BUILD.gn |
+++ b/gpu/config/BUILD.gn |
@@ -4,6 +4,11 @@ |
import("//build/config/ui.gni") |
+declare_args() { |
+ # Use the PCI lib to collect GPU information on Linux. |
+ use_libpci = true |
+} |
+ |
source_set("config") { |
sources = [ |
"dx_diag_node.cc", |
@@ -62,7 +67,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", |
] |