| Index: third_party/mojo/src/mojo/public/dart/rules.gni
|
| diff --git a/third_party/mojo/src/mojo/public/python/rules.gni b/third_party/mojo/src/mojo/public/dart/rules.gni
|
| similarity index 78%
|
| copy from third_party/mojo/src/mojo/public/python/rules.gni
|
| copy to third_party/mojo/src/mojo/public/dart/rules.gni
|
| index 934a94e5decfa64222bebba2e44cd5600bbdeefe..aea59e35f74b11402b1bba4dc31bbfd11776b5ea 100644
|
| --- a/third_party/mojo/src/mojo/public/python/rules.gni
|
| +++ b/third_party/mojo/src/mojo/public/dart/rules.gni
|
| @@ -2,11 +2,11 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| -# Rules to generate python packaged applications for Mojo
|
| +# Rules to generate python packaged applications for Dart
|
|
|
| import("../mojo_sdk.gni")
|
|
|
| -template("python_package") {
|
| +template("dart_package") {
|
| action(target_name) {
|
| script = rebase_path("mojo/public/tools/gn/zip.py", ".", mojo_root)
|
|
|
| @@ -20,7 +20,7 @@ template("python_package") {
|
| foreach(d, invoker.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.pyzip" ]
|
| + zip_inputs += [ "$dep_target_out_dir/$dep_name.dartzip" ]
|
| }
|
| }
|
|
|
| @@ -28,7 +28,7 @@ template("python_package") {
|
| datadeps = invoker.datadeps
|
| }
|
|
|
| - output = "$target_out_dir/$target_name.pyzip"
|
| + output = "$target_out_dir/$target_name.dartzip"
|
| outputs = [
|
| output,
|
| ]
|
| @@ -47,14 +47,14 @@ template("python_package") {
|
| }
|
| }
|
|
|
| -# Use this template to generate a .mojo python application. One of the source
|
| -# files should be named __mojo__.py and contain a MojoMain function as the
|
| -# entry point. Dependencies of python_packaged_application targets should be
|
| +# Use this template to generate a .mojo dart application. One of the source
|
| +# files should be named main.dart and contain a main function as the
|
| +# entry point. Dependencies of dart_packaged_application targets should be
|
| # either mojom targets (and specified using the mojom_deps variable) or
|
| -# python_package targets.
|
| -template("python_packaged_application") {
|
| +# dart_package targets.
|
| +template("dart_packaged_application") {
|
| package_name = "${target_name}_package"
|
| - package_output = "$target_out_dir/$package_name.pyzip"
|
| + package_output = "$target_out_dir/$package_name.dartzip"
|
|
|
| if (defined(invoker.output_name)) {
|
| mojo_output = "$root_out_dir/" + invoker.output_name + ".mojo"
|
| @@ -62,7 +62,7 @@ template("python_packaged_application") {
|
| mojo_output = "$root_out_dir/" + target_name + ".mojo"
|
| }
|
|
|
| - python_package(package_name) {
|
| + dart_package(package_name) {
|
| sources = invoker.sources
|
| if (defined(invoker.deps)) {
|
| deps = invoker.deps
|
| @@ -106,7 +106,7 @@ template("python_packaged_application") {
|
| args = [
|
| "--input=$rebase_input",
|
| "--output=$rebase_output",
|
| - "--line=#!mojo mojo:py_content_handler",
|
| + "--line=#!mojo mojo:dart_content_handler",
|
| ]
|
| }
|
| }
|
|
|