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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 script = rebase_path("mojo/public/tools/dart_analyze.py", ".", mojo_root) | 67 script = rebase_path("mojo/public/tools/dart_analyze.py", ".", mojo_root) |
68 | 68 |
69 sources = [ | 69 sources = [ |
70 package_output, | 70 package_output, |
71 ] | 71 ] |
72 | 72 |
73 args = [ | 73 args = [ |
74 rebase_path(package_output), | 74 rebase_path(package_output), |
75 rebase_path("$target_gen_dir/${target_name}_analyze.stamp"), | 75 rebase_path("$target_gen_dir/${target_name}_analyze.stamp"), |
76 "--no-hints", | 76 "--no-hints", |
77 "--url-mapping=mojo:application,/" + | 77 "--url-mapping=dart:mojo.application,/" + |
78 rebase_path("mojo/public/dart/application.dart", "/", mojo_root), | 78 rebase_path("mojo/public/dart/application.dart", "/", mojo_root), |
79 "--url-mapping=mojo:bindings,/" + | 79 "--url-mapping=dart:mojo.bindings,/" + |
80 rebase_path("mojo/public/dart/bindings.dart", "/", mojo_root), | 80 rebase_path("mojo/public/dart/bindings.dart", "/", mojo_root), |
81 "--url-mapping=mojo:builtin,/" + | 81 "--url-mapping=dart:mojo.builtin,/" + |
82 rebase_path("mojo/dart/embedder/builtin.dart", "/", mojo_root), | 82 rebase_path("mojo/dart/embedder/builtin.dart", "/", mojo_root), |
83 "--url-mapping=mojo:core,/" + | 83 "--url-mapping=dart:mojo.core,/" + |
84 rebase_path("mojo/public/dart/core.dart", "/", mojo_root), | 84 rebase_path("mojo/public/dart/core.dart", "/", mojo_root), |
85 | 85 |
86 # The dart bindings refer to the autogenerated application interface in | 86 # The dart bindings refer to the autogenerated application interface in |
87 # their source code; since that code is then packaged into the image, we | 87 # their source code; since that code is then packaged into the image, we |
88 # need to manually resolve these package urls to the autogenerated code. | 88 # need to manually resolve these package urls to the autogenerated code. |
89 "--url-mapping=package:mojo/public/interfaces/application/application.mojo
m.dart,/" + rebase_path( | 89 "--url-mapping=package:mojo/public/interfaces/application/application.mojo
m.dart,/" + rebase_path( |
90 "mojo/public/interfaces/application/application.mojom.dart", | 90 "mojo/public/interfaces/application/application.mojom.dart", |
91 "/", | 91 "/", |
92 root_gen_dir + mojo_root), | 92 root_gen_dir + mojo_root), |
93 "--url-mapping=package:mojo/public/interfaces/application/service_provider
.mojom.dart,/" + rebase_path( | 93 "--url-mapping=package:mojo/public/interfaces/application/service_provider
.mojom.dart,/" + rebase_path( |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 186 |
187 rebase_input = rebase_path(input, root_build_dir) | 187 rebase_input = rebase_path(input, root_build_dir) |
188 rebase_output = rebase_path(output, root_build_dir) | 188 rebase_output = rebase_path(output, root_build_dir) |
189 args = [ | 189 args = [ |
190 "--input=$rebase_input", | 190 "--input=$rebase_input", |
191 "--output=$rebase_output", | 191 "--output=$rebase_output", |
192 "--line=$line", | 192 "--line=$line", |
193 ] | 193 ] |
194 } | 194 } |
195 } | 195 } |
OLD | NEW |