summaryrefslogtreecommitdiffstats
path: root/gpu/config/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/config/BUILD.gn')
-rw-r--r--gpu/config/BUILD.gn4
1 files changed, 1 insertions, 3 deletions
diff --git a/gpu/config/BUILD.gn b/gpu/config/BUILD.gn
index 9517319..3ca9edf 100644
--- a/gpu/config/BUILD.gn
+++ b/gpu/config/BUILD.gn
@@ -7,7 +7,7 @@ import("//build/config/ui.gni")
declare_args() {
# Use the PCI lib to collect GPU information on Linux.
- use_libpci = !is_chromecast
+ use_libpci = is_linux && !is_chromecast && (use_x11 || use_ozone)
}
group("config") {
@@ -95,8 +95,6 @@ source_set("config_sources") {
}
if (use_libpci) {
defines = [ "USE_LIBPCI=1" ]
- }
- if (is_linux && use_libpci && (use_x11 || use_ozone)) {
deps += [ "//build/linux:libpci" ]
}
if (is_linux && use_x11) {