-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD.gn
74 lines (62 loc) · 1.3 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
declare_args() {
is_prebuild = false
}
template("static_prebuild") {
static_library(target_name) {
complete_static_lib = true
forward_variables_from(invoker, "*", [])
configs -= [ "//build/config/compiler:thin_archive" ]
}
}
static_prebuild("c++") {
visibility = [ ":*" ]
deps = [ "//buildtools/third_party/libc++" ]
include_dirs = [ "//third_party/libc++/src/include" ]
}
if (is_prebuild == "v8") {
static_prebuild("v8") {
deps = [
":c++",
"//v8:v8",
]
}
}
if (is_prebuild == "content") {
static_prebuild("content") {
deps = [
":c++",
"//content/public/app",
"//content/public/browser",
"//content/public/child",
"//content/public/common",
"//content/public/gpu",
"//content/public/renderer",
"//content/public/utility",
]
if (is_mac) {
deps += [
"//base/allocator:early_zone_registration_apple"
]
}
}
}
if (is_prebuild == "webrtc") {
static_prebuild("webrtc") {
deps = [
":c++",
"//third_party/webrtc_overrides:webrtc_component",
]
}
}
group("prebuilds") {
deps = []
if (is_prebuild == "v8") {
deps += [ ":v8" ]
}
if (is_prebuild == "content") {
deps += [ ":content" ]
}
if (is_prebuild == "webrtc") {
deps += [ ":webrtc" ]
}
}