1# Copyright 2017 The Chromium Authors 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 7assert(is_linux, "This file should only be referenced on Linux") 8 9pkg_config("dri") { 10 packages = [ "dri" ] 11 dri_driver_dir = exec_script(pkg_config_script, 12 common_pkg_config_args + pkg_config_args + [ 13 "--dridriverdir", 14 "dri", 15 ], 16 "string") 17 defines = [ "DRI_DRIVER_DIR=\"$dri_driver_dir\"" ] 18} 19