Avi Drissman | 73a09d1 | 2022-09-08 20:33:38 | [diff] [blame] | 1 | # Copyright 2017 The Chromium Authors |
Julien Isorce | b662350 | 2017-11-28 12:20:40 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import("//build/config/linux/pkg_config.gni") |
| 6 | |
Hidehiko Abe | 28834ce | 2021-06-16 07:01:40 | [diff] [blame] | 7 | assert(is_linux, "This file should only be referenced on Linux") |
Julien Isorce | b662350 | 2017-11-28 12:20:40 | [diff] [blame] | 8 | |
| 9 | pkg_config("dri") { |
| 10 | packages = [ "dri" ] |
| 11 | dri_driver_dir = exec_script(pkg_config_script, |
Lei Zhang | a246a432 | 2022-01-14 18:23:08 | [diff] [blame] | 12 | common_pkg_config_args + pkg_config_args + [ |
Julien Isorce | b662350 | 2017-11-28 12:20:40 | [diff] [blame] | 13 | "--dridriverdir", |
| 14 | "dri", |
| 15 | ], |
| 16 | "string") |
| 17 | defines = [ "DRI_DRIVER_DIR=\"$dri_driver_dir\"" ] |
| 18 | } |