blob: 8e3efe67038215d3950ff7d0aa3f07265162c687 [file] [log] [blame]
Julien Isorceb6623502017-11-28 12:20:401# Copyright 2017 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build/config/linux/pkg_config.gni")
6
Sean McAllisterdeaa7402020-07-31 04:42:547assert(is_linux || is_chromeos, "This file should only be referenced on Linux")
Julien Isorceb6623502017-11-28 12:20:408
9pkg_config("dri") {
10 packages = [ "dri" ]
11 dri_driver_dir = exec_script(pkg_config_script,
12 pkg_config_args + [
13 "--dridriverdir",
14 "dri",
15 ],
16 "string")
17 defines = [ "DRI_DRIVER_DIR=\"$dri_driver_dir\"" ]
18}