OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # Currently paths here are hard coded for convenience in building Mojo/Flutter. | 5 # Currently paths here are hard coded for convenience in building Mojo/Flutter. |
6 declare_args() { | 6 declare_args() { |
7 # Specify the path to a host compatible version of the Dart SDK. | 7 # Specify the path to a host compatible version of the Dart SDK. |
8 # This SDK is used to compile the Observatory frontend sources. | 8 # This SDK is used to compile the Observatory frontend sources. |
9 dart_host_sdk = rebase_path("//third_party/dart-sdk/dart-sdk") | 9 dart_host_sdk = rebase_path("//third_party/dart-sdk/dart-sdk") |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 inputs = [ | 71 inputs = [ |
72 script, | 72 script, |
73 "$root_gen_dir/observatory_copy/dart/runtime/observatory/pubspec.yaml", | 73 "$root_gen_dir/observatory_copy/dart/runtime/observatory/pubspec.yaml", |
74 ] | 74 ] |
75 | 75 |
76 args = [ | 76 args = [ |
77 "--silent=True", | 77 "--silent=True", |
78 "--pub-executable", | 78 "--pub-executable", |
79 dart_host_pub_exe, | 79 dart_host_pub_exe, |
| 80 "--stamp", |
| 81 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/package
s.stamp"), |
80 "--directory", | 82 "--directory", |
81 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"), | 83 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"), |
82 "--command", | 84 "--command", |
83 "get", | 85 "get", |
84 ] | 86 ] |
85 | 87 |
86 outputs = [ | 88 outputs = [ |
87 "$root_gen_dir/observatory_copy/dart/runtime/observatory/pubspec.lock", | 89 "$root_gen_dir/observatory_copy/dart/runtime/observatory/packages.stamp", |
88 ] | 90 ] |
89 } | 91 } |
90 | 92 |
91 action("pub_build_observatory") { | 93 action("pub_build_observatory") { |
92 sources = | 94 sources = |
93 rebase_path(observatory_sources_gypi.sources, | 95 rebase_path(observatory_sources_gypi.sources, |
94 "", | 96 "", |
95 "$root_gen_dir/observatory_copy/dart/runtime/observatory") | 97 "$root_gen_dir/observatory_copy/dart/runtime/observatory") |
96 | 98 |
97 deps = [ | 99 deps = [ |
98 ":copy_observatory", | 100 ":copy_observatory", |
99 ":copy_observatory_deps", | 101 ":copy_observatory_deps", |
100 ] | 102 ] |
101 | 103 |
102 script = "//dart/tools/observatory_tool.py" | 104 script = "//dart/tools/observatory_tool.py" |
103 | 105 |
104 inputs = [ | 106 inputs = [ |
105 script, | 107 script, |
| 108 "$root_gen_dir/observatory_copy/dart/runtime/observatory/packages.stamp", |
106 ] | 109 ] |
107 inputs += sources | 110 inputs += sources |
108 | 111 |
109 args = [ | 112 args = [ |
110 "--silent=True", | 113 "--silent=True", |
111 "--pub-executable", | 114 "--pub-executable", |
112 dart_host_pub_exe, | 115 dart_host_pub_exe, |
113 "--directory", | 116 "--directory", |
114 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"), | 117 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"), |
115 "--command", | 118 "--command", |
116 "build", | 119 "build", |
117 rebase_path("$root_out_dir/observatory/build"), | 120 rebase_path("$root_out_dir/observatory/build"), |
118 ] | 121 ] |
119 | 122 |
120 outputs = [ | 123 outputs = [ |
121 "$root_out_dir/observatory/build/web/index.html", | |
122 "$root_out_dir/observatory/build/web/index.html.polymer.bootstrap.dart.js", | 124 "$root_out_dir/observatory/build/web/index.html.polymer.bootstrap.dart.js", |
123 ] | 125 ] |
124 } | 126 } |
125 | 127 |
126 action("deploy_observatory") { | 128 action("deploy_observatory") { |
127 deps = [ | 129 deps = [ |
128 ":pub_build_observatory", | 130 ":pub_build_observatory", |
129 ] | 131 ] |
130 | 132 |
131 script = "//dart/tools/observatory_tool.py" | 133 script = "//dart/tools/observatory_tool.py" |
132 | 134 |
133 inputs = [ | 135 inputs = [ |
134 script, | 136 script, |
135 "$root_out_dir/observatory/build/web/index.html", | |
136 "$root_out_dir/observatory/build/web/index.html.polymer.bootstrap.dart.js", | 137 "$root_out_dir/observatory/build/web/index.html.polymer.bootstrap.dart.js", |
137 ] | 138 ] |
138 | 139 |
139 args = [ | 140 args = [ |
140 "--silent=True", | 141 "--silent=True", |
141 "--pub-executable", | 142 "--pub-executable", |
142 dart_host_pub_exe, | 143 dart_host_pub_exe, |
143 "--directory", | 144 "--directory", |
144 rebase_path("$root_out_dir/observatory"), | 145 rebase_path("$root_out_dir/observatory"), |
145 "--command", | 146 "--command", |
146 "deploy", | 147 "deploy", |
147 ] | 148 ] |
148 | 149 |
149 outputs = [ | 150 outputs = [ |
150 "$root_out_dir/observatory/deployed/web/index.html", | |
151 "$root_out_dir/observatory/deployed/web/index.html.polymer.bootstrap.dart.js
", | 151 "$root_out_dir/observatory/deployed/web/index.html.polymer.bootstrap.dart.js
", |
152 ] | 152 ] |
153 } | 153 } |
154 | 154 |
155 action("archive_observatory") { | 155 action("archive_observatory") { |
156 deps = [ | 156 deps = [ |
157 ":deploy_observatory", | 157 ":deploy_observatory", |
158 ] | 158 ] |
159 | 159 |
160 script = "//dart/runtime/tools/create_archive.py" | 160 script = "//dart/runtime/tools/create_archive.py" |
161 | 161 |
162 inputs = [ | 162 inputs = [ |
163 script, | 163 script, |
164 "$root_out_dir/observatory/deployed/web/index.html", | |
165 "$root_out_dir/observatory/deployed/web/index.html.polymer.bootstrap.dart.js
", | 164 "$root_out_dir/observatory/deployed/web/index.html.polymer.bootstrap.dart.js
", |
166 ] | 165 ] |
167 | 166 |
168 args = [ | 167 args = [ |
169 "--output", | 168 "--output", |
170 rebase_path("$root_gen_dir/observatory/observatory_archive.cc"), | 169 rebase_path("$root_gen_dir/observatory/observatory_archive.cc"), |
171 "--tar_output", | 170 "--tar_output", |
172 rebase_path("$root_gen_dir/observatory/observatory_archive.tar"), | 171 rebase_path("$root_gen_dir/observatory/observatory_archive.tar"), |
173 "--outer_namespace", "dart", | 172 "--outer_namespace", "dart", |
174 "--inner_namespace", "observatory", | 173 "--inner_namespace", "observatory", |
175 "--name", "observatory_assets_archive", | 174 "--name", "observatory_assets_archive", |
176 "--client_root", rebase_path("$root_out_dir/observatory/deployed/web/"), | 175 "--client_root", rebase_path("$root_out_dir/observatory/deployed/web/"), |
177 ] | 176 ] |
178 | 177 |
179 outputs = [ | 178 outputs = [ |
180 "$root_gen_dir/observatory/observatory_archive.cc", | 179 "$root_gen_dir/observatory/observatory_archive.cc", |
181 "$root_gen_dir/observatory/observatory_archive.tar", | 180 "$root_gen_dir/observatory/observatory_archive.tar", |
182 ] | 181 ] |
183 } | 182 } |
184 | 183 |
185 source_set("embedded_observatory_archive") { | 184 source_set("embedded_observatory_archive") { |
186 deps = [ | 185 deps = [ |
187 ":archive_observatory", | 186 ":archive_observatory", |
188 ] | 187 ] |
189 | 188 |
190 sources = [ | 189 sources = [ |
191 rebase_path("$root_gen_dir/observatory/observatory_archive.cc"), | 190 rebase_path("$root_gen_dir/observatory/observatory_archive.cc"), |
192 ] | 191 ] |
193 } | 192 } |
OLD | NEW |