Commit 16d4e472 by Corentin Wallez Committed by Commit Bot

BUILD.gn: declare_args() use_lipci

This is the third stage of 05356e35 and is necessary for projects putting use_libpci in the gn args, like headless Chrome. BUG=angleproject:1874 Change-Id: I03a010ababf08f992f0fb26ff87ddc48afd5a237 Reviewed-on: https://chromium-review.googlesource.com/457277Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
parent e466c551
......@@ -10,6 +10,12 @@ import("//testing/libfuzzer/fuzzer_test.gni")
import("//third_party/angle/gni/angle.gni")
import("//ui/ozone/ozone.gni")
declare_args() {
# Use the PCI lib to collect GPU information on Linux.
use_libpci = is_linux && (!is_chromecast || is_cast_desktop_build) &&
(use_x11 || use_ozone)
}
if (ozone_platform_gbm) {
pkg_config("libdrm") {
packages = [ "libdrm" ]
......@@ -225,12 +231,6 @@ static_library("angle_gpu_info_util") {
}
}
if (!defined(use_lipci)) {
# Use the PCI lib to collect GPU information on Linux.
use_libpci = is_linux && (!is_chromecast || is_cast_desktop_build) &&
(use_x11 || use_ozone)
}
if (use_libpci) {
sources +=
rebase_path(gles_gypi.libangle_gpu_info_util_libpci_sources, ".", "src")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment