Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Unified Diff: gpu/config/BUILD.gn

Issue 692893004: Provide a way to disable libpci dependency. (Closed) Base URL: git://nuxepg2.fr.nds.com/CHROM/chromium-src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/linux/system.gyp ('k') | gpu/config/gpu_info_collector_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
]
« no previous file with comments | « build/linux/system.gyp ('k') | gpu/config/gpu_info_collector_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698