forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.gn
58 lines (48 loc) · 1.29 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Copyright 2015 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)
declare_args() {
# Controls whether the build should use the version of minigbm library
# shipped with the system. In release builds of Chrome OS we use the
# system version, but when building on dev workstations or the Chrome
# waterfall we bundle it because Ubuntu doesn't ship a usable version.
use_system_minigbm = false
}
if (!use_system_minigbm) {
config("minigbm_config") {
include_dirs = [ "src" ]
}
pkg_config("libdrm") {
packages = [ "libdrm" ]
}
static_library("minigbm") {
sources = [
"src/cirrus.c",
"src/exynos.c",
"src/gbm.c",
"src/gma500.c",
"src/helpers.c",
"src/i915.c",
"src/mediatek.c",
"src/rockchip.c",
"src/tegra.c",
"src/udl.c",
]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
":libdrm",
"//build/config/compiler:no_chromium_code",
]
public_configs = [ ":minigbm_config" ]
}
}
if (use_system_minigbm) {
pkg_config("libgbm") {
packages = [ "gbm" ]
}
group("minigbm") {
public_configs = [ ":libgbm" ]
}
}