Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(633)

Side by Side Diff: mojo/public/dart/rules.gni

Issue 1225923009: Add dart:sky.internals and dart:sky_builtin_natives to Sky sdk_ext (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | mojo/public/tools/dart_pkg.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # Rules to generate zipped applications for Dart. 5 # Rules to generate zipped applications for Dart.
6 # Rules to generate dart-pkg and dart-pkg/packages. 6 # Rules to generate dart-pkg and dart-pkg/packages.
7 7
8 import("//build/module_args/mojo.gni") 8 import("//build/module_args/mojo.gni")
9 9
10 template("dartzip_package") { 10 template("dartzip_package") {
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 # Directory containing the package sources. This overrides sources. 217 # Directory containing the package sources. This overrides sources.
218 # 218 #
219 # deps (optional) 219 # deps (optional)
220 # Note: this can only contain mojom targets. 220 # Note: this can only contain mojom targets.
221 # 221 #
222 # datadeps (optional) 222 # datadeps (optional)
223 # 223 #
224 # sdk_ext_directory (optional) 224 # sdk_ext_directory (optional)
225 # Directory containing sdk-ext .dart sources. 225 # Directory containing sdk-ext .dart sources.
226 # 226 #
227 # sdk_ext_files (optional)
228 # List of sources to include in sdk-ext.
229 #
227 template("dart_pkg") { 230 template("dart_pkg") {
228 if (defined(invoker.pkg_dir)) { 231 if (defined(invoker.pkg_dir)) {
229 pubspec_yaml_path = rebase_path("pubspec.yaml", "", invoker.pkg_dir) 232 pubspec_yaml_path = rebase_path("pubspec.yaml", "", invoker.pkg_dir)
230 } else { 233 } else {
231 pubspec_yaml_path = rebase_path("pubspec.yaml") 234 pubspec_yaml_path = rebase_path("pubspec.yaml")
232 } 235 }
233 dart_package_name_script = 236 dart_package_name_script =
234 rebase_path("mojo/public/tools/dart_package_name.py", ".", mojo_sdk_root) 237 rebase_path("mojo/public/tools/dart_package_name.py", ".", mojo_sdk_root)
235 package_name = exec_script(dart_package_name_script, 238 package_name = exec_script(dart_package_name_script,
236 [ 239 [
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 root_prefix, 272 root_prefix,
270 ], 273 ],
271 "list lines") 274 "list lines")
272 } 275 }
273 276
274 sdk_ext_directory = [] 277 sdk_ext_directory = []
275 if (defined(invoker.sdk_ext_directory)) { 278 if (defined(invoker.sdk_ext_directory)) {
276 sdk_ext_directory += [ invoker.sdk_ext_directory ] 279 sdk_ext_directory += [ invoker.sdk_ext_directory ]
277 } 280 }
278 281
282 sdk_ext_files = []
283 if (defined(invoker.sdk_ext_files)) {
284 sdk_ext_files += invoker.sdk_ext_files
285 }
286
279 script = rebase_path("mojo/public/tools/dart_pkg.py", ".", mojo_sdk_root) 287 script = rebase_path("mojo/public/tools/dart_pkg.py", ".", mojo_sdk_root)
280 outputs = [ 288 outputs = [
281 stamp_file, 289 stamp_file,
282 ] 290 ]
283 291
284 if (defined(invoker.sources)) { 292 if (defined(invoker.sources)) {
285 sources = invoker.sources 293 sources = invoker.sources
286 } else { 294 } else {
287 assert(defined(invoker.pkg_dir)) 295 assert(defined(invoker.pkg_dir))
288 list_script = rebase_path("build/ls.py", ".", mojo_sdk_root) 296 list_script = rebase_path("build/ls.py", ".", mojo_sdk_root)
(...skipping 17 matching lines...) Expand all
306 rebase_path("$root_gen_dir/dart-gen"), 314 rebase_path("$root_gen_dir/dart-gen"),
307 "--pkg-directory", 315 "--pkg-directory",
308 pkg_directory, 316 pkg_directory,
309 "--package-root", 317 "--package-root",
310 package_root, 318 package_root,
311 "--stamp-file", 319 "--stamp-file",
312 rebase_path(stamp_file), 320 rebase_path(stamp_file),
313 "--package-sources", 321 "--package-sources",
314 ] + rebase_path(sources) + [ "--mojom-sources" ] + 322 ] + rebase_path(sources) + [ "--mojom-sources" ] +
315 rebase_path(mojom_sources, "", mojo_sdk_root) + 323 rebase_path(mojom_sources, "", mojo_sdk_root) +
316 [ "--sdk-ext-directories" ] + rebase_path(sdk_ext_directory) 324 [ "--sdk-ext-directories" ] + rebase_path(sdk_ext_directory) +
325 [ "--sdk-ext-files" ] + rebase_path(sdk_ext_files)
317 } 326 }
318 } 327 }
OLDNEW
« no previous file with comments | « no previous file | mojo/public/tools/dart_pkg.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698