forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
67 lines (59 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
# 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.
group("flutter") {
testonly = true
deps = [
"$flutter_root/lib/snapshot:compile_platform",
"$flutter_root/lib/snapshot:generate_snapshot_bin",
"$flutter_root/sky",
"$flutter_root/third_party/txt",
]
if (!is_fuchsia) {
if (current_toolchain == host_toolchain) {
deps += [
"//dart:create_sdk",
"$flutter_root/frontend_server",
]
}
}
if (is_fuchsia) {
deps += [
"$flutter_root/content_handler",
"$flutter_root/content_handler:aot_content_handler",
"$flutter_root/examples",
"$flutter_root/flow",
]
}
# If on the host, compile all unittests targets.
if (current_toolchain == host_toolchain) {
if (is_mac) {
deps += [ "$flutter_root/shell/platform/darwin:flutter_channels_unittests" ]
}
if (!is_win) {
deps += [ "$flutter_root/shell/platform/embedder:flutter_engine" ]
}
deps += [
"$flutter_root/flow:flow_unittests",
"$flutter_root/fml:fml_unittests",
"$flutter_root/sky/engine/wtf:wtf_unittests",
"$flutter_root/synchronization:synchronization_unittests",
"$flutter_root/third_party/txt:txt_benchmarks",
"$flutter_root/third_party/txt:txt_unittests",
"//garnet/public/lib/fxl:fxl_unittests",
]
}
}
config("config") {
include_dirs = [
"..",
]
}
if (!is_fuchsia) {
group("dist") {
testonly = true
deps = [
"$flutter_root/sky/dist",
]
}
}