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

Unified Diff: mojo/public/dart/rules.gni

Issue 1085853002: Introduce Sky packaged apps. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Add example dart packaged app that uses Sky Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | sky/BUILD.gn » ('j') | sky/engine/core/script/dart_loader.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/dart/rules.gni
diff --git a/mojo/public/dart/rules.gni b/mojo/public/dart/rules.gni
index 930a8967711a7e6997ec86eacdda4d559b5d98c1..8d5aad896904dcc7459615c42feebb59f230b39e 100644
--- a/mojo/public/dart/rules.gni
+++ b/mojo/public/dart/rules.gni
@@ -61,11 +61,12 @@ template("dart_package") {
if (defined(invoker.deps)) {
deps += invoker.deps
- foreach(d, deps) {
- dep_name = get_label_info(d, "name")
- dep_target_out_dir = get_label_info(d, "target_out_dir")
- zip_inputs += [ "$dep_target_out_dir/$dep_name.dartzip" ]
- }
+ }
+
+ foreach(d, deps) {
+ dep_name = get_label_info(d, "name")
+ dep_target_out_dir = get_label_info(d, "target_out_dir")
+ zip_inputs += [ "$dep_target_out_dir/$dep_name.dartzip" ]
}
if (defined(invoker.datadeps)) {
@@ -188,6 +189,9 @@ template("dart_packaged_application") {
if (is_debug || (defined(invoker.strict) && invoker.strict == true)) {
line = "#!mojo mojo:dart_content_handler?strict=true"
}
+ if (defined(invoker.uses_sky) && invoker.uses_sky) {
+ line = "#!mojo mojo:sky_viewer"
tonyg 2015/04/14 14:36:56 Is strict=true applicable? Should it be?
+ }
rebase_input = rebase_path(input, root_build_dir)
rebase_output = rebase_path(output, root_build_dir)
« no previous file with comments | « DEPS ('k') | sky/BUILD.gn » ('j') | sky/engine/core/script/dart_loader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698