forked from viettrungluu-cr/mojo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUILD.gn
75 lines (65 loc) · 1.58 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
75
# Copyright 2014 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/ui.gni")
# This target will be built if no target is specified when invoking ninja.
group("default") {
testonly = true
deps = [
"//apps",
"//base:base_unittests",
"//benchmarks",
"//crypto:crypto_unittests",
"//examples",
"//mojo",
"//mojom",
"//services",
"//shell",
]
if (is_linux) {
deps += [
"//apps(//build/toolchain/fusl:fusl_${current_cpu})",
"//examples(//build/toolchain/fusl:fusl_${current_cpu})",
"//fusl",
"//services(//build/toolchain/fusl:fusl_${current_cpu})",
# We need this to run tests (especially on bots).
"//third_party/mesa:osmesa",
]
}
# TODO(cstout): fix sandbox build for fnl/musl
if (is_linux && !is_fnl) {
deps += [
"//sandbox/linux:sandbox",
"//sandbox/linux:sandbox_linux_unittests",
]
}
if (is_linux && !use_ozone) {
deps += [ "//tools/xdisplaycheck" ]
}
if (is_linux || is_android) {
deps += [
"//ui/events:events_unittests",
"//ui/gfx:gfx_unittests",
]
}
if (use_ozone) {
deps += [ "//ui/ozone" ]
}
}
# Deprecated name for the default build target.
group("root") {
testonly = true
deps = [
":default",
]
}
if (use_ozone) {
# This isn't in the default target as it's a bit wonky right now.
group("ozone_tests") {
testonly = true
deps = [
"//ui/ozone:ozone_unittests",
"//ui/ozone/demo",
]
}
}