1 # Copyright 2015 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.
5 import("//build/config/linux/pkg_config.gni")
10 # Controls whether the build should use the version of minigbm library
11 # shipped with the system. In release builds of Chrome OS we use the
12 # system version, but when building on dev workstations or the Chrome
13 # waterfall we bundle it because Ubuntu doesn't ship a usable version.
14 use_system_minigbm = false
17 if (!use_system_minigbm) {
18 config("minigbm_config") {
19 include_dirs = [ "src" ]
22 pkg_config("libdrm") {
23 packages = [ "libdrm" ]
26 static_library("minigbm") {
40 configs -= [ "//build/config/compiler:chromium_code" ]
43 "//build/config/compiler:no_chromium_code",
46 public_configs = [ ":minigbm_config" ]
50 if (use_system_minigbm) {
51 pkg_config("libgbm") {
56 public_configs = [ ":libgbm" ]