forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add //build/config/linux/dri to extract path to dri drivers
The dri drivers path is the variable 'dridriverdir' in 'dri.pc' If found then translate it to the macro DRI_DRIVER_DIR. It can be useful in various places instead of guessing the path. For now only use it in gpu_sandbox_hook_linux except for ChromeOS. Bug: 787787 Change-Id: I7fef8606a4f2cbc04233af820a91cf12a4c7a9a5 Reviewed-on: https://chromium-review.googlesource.com/785371 Reviewed-by: Dirk Pranke <dpranke@chromium.org> Reviewed-by: Antoine Labour <piman@chromium.org> Commit-Queue: Julien Isorce <julien.isorce@chromium.org> Cr-Commit-Position: refs/heads/master@{#519658}
- Loading branch information
Julien Isorce
authored and
Commit Bot
committed
Nov 28, 2017
1 parent
8580c22
commit b662350
Showing
5 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2017 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
import("//build/config/linux/pkg_config.gni") | ||
|
||
assert(is_linux, "This file should only be referenced on Linux") | ||
|
||
pkg_config("dri") { | ||
packages = [ "dri" ] | ||
dri_driver_dir = exec_script(pkg_config_script, | ||
pkg_config_args + [ | ||
"--dridriverdir", | ||
"dri", | ||
], | ||
"string") | ||
defines = [ "DRI_DRIVER_DIR=\"$dri_driver_dir\"" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters