-
Notifications
You must be signed in to change notification settings - Fork 489
/
Copy pathBUILD.gn
40 lines (34 loc) · 1002 Bytes
/
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
# Copyright 2020 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("../scripts/build/ninja/copy.gni")
import("../scripts/build/typescript/typescript.gni")
group("test") {
deps = [
":run",
":unittests",
"e2e",
"interactions",
"perf",
"shared",
]
}
group("unittests") {
deps = [
"../front_end:test_inputs",
"../front_end:unittests",
"../inspector_overlay:unittests",
"shared",
"unit:karma",
]
}
node_ts_library("run") {
sources = [ "run.ts" ]
deps = [ "shared" ]
}
source_root = rebase_path("//$devtools_location", target_gen_dir)
checkout_root = rebase_path("//", target_gen_dir)
build_root = rebase_path(root_build_dir, target_gen_dir)
write_file(
"$target_gen_dir/build.js",
"module.exports = {SOURCE_ROOT: '$source_root', CHECKOUT_ROOT: '$checkout_root', BUILD_ROOT: '$build_root', BUILD_WITH_CHROMIUM: $build_with_chromium};")