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

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: Move use_libpci = true into declare_args() Created 6 years, 1 month 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..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",
]
« 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