forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
114 lines (97 loc) · 2.23 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Copyright 2013 The Flutter 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("//flutter/build/zip_bundle.gni")
if (is_android) {
action("flutter_services") {
script = "//flutter/sky/tools/dist_dart_pkg.py"
source = "//flutter/sky/packages/flutter_services"
dest = "$root_build_dir/dist/packages/flutter_services"
inputs = [
source,
]
outputs = [
dest,
]
args = [
"--source",
rebase_path(source),
"--dest",
rebase_path(dest),
]
deps = [
"//flutter/sky/packages/flutter_services",
]
}
action("sky_engine") {
script = "//flutter/sky/tools/dist_dart_pkg.py"
source = "$root_gen_dir/dart-pkg/sky_engine"
dest = "$root_build_dir/dist/packages/sky_engine"
inputs = [
source,
]
outputs = [
dest,
]
args = [
"--source",
rebase_path(source),
"--dest",
rebase_path(dest),
]
deps = [
"//flutter/sky/packages/sky_engine",
"//flutter/sky/packages/sky_engine:sky_engine_pkg_helper",
]
}
action("sky_services") {
script = "//flutter/sky/tools/dist_dart_pkg.py"
source = "$root_gen_dir/dart-pkg/sky_services"
dest = "$root_build_dir/dist/packages/sky_services"
inputs = [
source,
]
outputs = [
dest,
]
args = [
"--source",
rebase_path(source),
"--dest",
rebase_path(dest),
]
deps = [
"//flutter/sky/packages/sky_services",
"//flutter/sky/packages/sky_services:sky_services_pkg_helper",
]
}
zip_bundle("zip") {
output = "$android_zip_archive_dir/sky_engine.zip"
files = [
{
source = "$root_build_dir/dist/packages/flutter_services"
destination = "flutter_services"
},
{
source = "$root_build_dir/dist/packages/sky_engine"
destination = "sky_engine"
},
{
source = "$root_build_dir/dist/packages/sky_services"
destination = "sky_services"
},
]
deps = [
":flutter_services",
":sky_engine",
":sky_services",
]
}
}
group("dist") {
if (is_android) {
deps = [
":zip",
]
}
}