-
Notifications
You must be signed in to change notification settings - Fork 114
/
BUILD.gn
71 lines (61 loc) · 1.03 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
is_desktop = is_linux || is_mac || is_win
group("demo") {
testonly = true
deps = [
":demo_exe",
"demo_callback",
"demo_log",
"demo_task",
]
if(is_desktop) {
deps += [
"demo_tracing",
"demo_ipc",
"demo_memory",
"demo_mojo",
]
}
if (is_linux) {
deps += [
"demo_cc",
"demo_gin",
"demo_gl",
"demo_mojo_v8",
"demo_resources",
"demo_shell",
"demo_skia",
"demo_views",
"demo_viz",
"demo_x11",
"demo_linktest",
]
}
if (is_android) {
deps += [
"demo_android",
"demo_shell",
]
}
if (is_win) {
deps += [
# "demo_resources",
"demo_cc",
"demo_gl",
"demo_mojo_v8",
"demo_views",
# "demo_x11", windows不支持x11
# "demo_skia", windows不支持x11的软件渲染
"demo_viz",
]
}
if (is_mac) {
deps += [
"demo_resources",
"demo_linktest",
]
}
}
executable("demo_exe") {
sources = [ "demo.cc" ]
deps = [ "//base" ]
}