summaryrefslogtreecommitdiffstats
path: root/www/chromium/files/patch-gpu_config_BUILD.gn
blob: 454821f59bbe7fbdf60c7ed146a69f1f9ddf3475 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- gpu/config/BUILD.gn.orig	2017-01-26 00:49:14 UTC
+++ gpu/config/BUILD.gn
@@ -8,7 +8,8 @@ import("//build/config/ui.gni")
 
 declare_args() {
   # Use the PCI lib to collect GPU information on Linux.
-  use_libpci = is_linux && (!is_chromecast || is_cast_desktop_build) &&
+  use_libpci = (is_linux || is_bsd) &&
+               (!is_chromecast || is_cast_desktop_build) &&
                (use_x11 || use_ozone)
 }
 
@@ -97,6 +98,14 @@ source_set("config_sources") {
       ]
     }
   }
+
+  if (is_bsd) {
+    sources -= [
+      "gpu_info_collector_linux.cc",
+      "gpu_info_collector_linux.h"
+    ]
+  }
+
   if (is_mac) {
     libs = [
       "IOKit.framework",
OpenPOWER on IntegriCloud