| 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 # Rules to generate python packaged applications for Dart | 5 # Rules to generate python packaged applications for Dart |
| 6 | 6 |
| 7 import("../mojo_sdk.gni") | 7 import("../mojo_sdk.gni") |
| 8 | 8 |
| 9 template("dart_package") { | 9 template("dart_package") { |
| 10 action(target_name) { | 10 action(target_name) { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 if (defined(invoker.deps)) { | 94 if (defined(invoker.deps)) { |
| 95 deps += invoker.deps | 95 deps += invoker.deps |
| 96 } | 96 } |
| 97 if (defined(invoker.mojom_deps)) { | 97 if (defined(invoker.mojom_deps)) { |
| 98 deps += invoker.mojom_deps | 98 deps += invoker.mojom_deps |
| 99 } | 99 } |
| 100 if (defined(invoker.datadeps)) { | 100 if (defined(invoker.datadeps)) { |
| 101 datadeps = invoker.datadeps | 101 datadeps = invoker.datadeps |
| 102 } | 102 } |
| 103 | 103 |
| 104 line = "#!mojo mojo:dart_content_handler" |
| 105 if (defined(invoker.strict) && invoker.strict == true) { |
| 106 line = "#!mojo mojo:dart_content_handler?strict=true" |
| 107 } |
| 108 |
| 104 rebase_input = rebase_path(input, root_build_dir) | 109 rebase_input = rebase_path(input, root_build_dir) |
| 105 rebase_output = rebase_path(output, root_build_dir) | 110 rebase_output = rebase_path(output, root_build_dir) |
| 106 args = [ | 111 args = [ |
| 107 "--input=$rebase_input", | 112 "--input=$rebase_input", |
| 108 "--output=$rebase_output", | 113 "--output=$rebase_output", |
| 109 "--line=#!mojo mojo:dart_content_handler", | 114 "--line=$line", |
| 110 ] | 115 ] |
| 111 } | 116 } |
| 112 } | 117 } |
| OLD | NEW |