| 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 # This file has rules for making Dart packages and Dart-based Mojo applications. | 5 # This file has rules for making Dart packages and Dart-based Mojo applications. |
| 6 # The entrypoint is the dart_pkg rule. | 6 # The entrypoint is the dart_pkg rule. |
| 7 | 7 |
| 8 import("../mojo.gni") | 8 import("../mojo.gni") |
| 9 import("//build/module_args/mojo.gni") | 9 import("//build/module_args/mojo.gni") |
| 10 import("//build/module_args/dart.gni") | 10 import("//build/module_args/dart.gni") |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 "--output", | 76 "--output", |
| 77 rebase_path(bundle), | 77 rebase_path(bundle), |
| 78 ] | 78 ] |
| 79 | 79 |
| 80 deps = [ | 80 deps = [ |
| 81 ":gen_${bundle_prefix}_snapshot", | 81 ":gen_${bundle_prefix}_snapshot", |
| 82 ] | 82 ] |
| 83 } | 83 } |
| 84 | 84 |
| 85 group(target_name) { | 85 group(target_name) { |
| 86 deps = [ | 86 public_deps = [ |
| 87 ":gen_${bundle_prefix}_bundle", | 87 ":gen_${bundle_prefix}_bundle", |
| 88 ] | 88 ] |
| 89 } | 89 } |
| 90 } | 90 } |
| 91 | 91 |
| 92 template("dartx_application") { | 92 template("dartx_application") { |
| 93 dartx_name = "${target_name}_dartx" | 93 dartx_name = "${target_name}_dartx" |
| 94 | 94 |
| 95 dartx(dartx_name) { | 95 dartx(dartx_name) { |
| 96 main_dart = invoker.main_dart | 96 main_dart = invoker.main_dart |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 group(target_name) { | 444 group(target_name) { |
| 445 deps = [] | 445 deps = [] |
| 446 foreach(package_dir, packages) { | 446 foreach(package_dir, packages) { |
| 447 deps += [ ":$package_dir" ] | 447 deps += [ ":$package_dir" ] |
| 448 } | 448 } |
| 449 if (defined(invoker.deps)) { | 449 if (defined(invoker.deps)) { |
| 450 deps += invoker.deps | 450 deps += invoker.deps |
| 451 } | 451 } |
| 452 } | 452 } |
| 453 } | 453 } |
| OLD | NEW |