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

Side by Side Diff: mojo/dart/embedder/embedder.gni

Issue 1071693003: Uses mojom module names as Dart's package: import URI (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge 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 unified diff | Download patch
« no previous file with comments | « mojo/dart/embedder/BUILD.gn ('k') | mojo/dart/embedder/io/mojo_patch.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # Template to generate a dart embedder package. 5 # Template to generate a dart embedder package.
6 # Required invoker inputs: 6 # Required invoker inputs:
7 # String package (relative path to package e.g. mojo/public/interfaces/applica tion) 7 # String package (relative path to package e.g. mojo/public/interfaces/applica tion)
8 template("dart_embedder_package") { 8 template("dart_embedder_package") {
9 package = invoker.package 9 package = invoker.package
10 package_path = "//$package" 10 package_path = "//$package"
11 11
12 destination = package
13 if (defined(invoker.destination)) {
14 destination = invoker.destination
15 }
16
12 action_foreach(target_name) { 17 action_foreach(target_name) {
13 deps = [ 18 deps = [
14 package_path, 19 package_path,
15 ] 20 ]
16 list_generated_bindings_script = 21 list_generated_bindings_script =
17 rebase_path( 22 rebase_path(
18 "//mojo/dart/embedder/tools/dart_list_generated_bindings.py") 23 "//mojo/dart/embedder/tools/dart_list_generated_bindings.py")
19 root_prefix = rebase_path("//") 24 root_prefix = rebase_path("//")
20 source_directory = rebase_path(package_path) 25 source_directory = rebase_path(package_path)
21 generated_bindings = exec_script(list_generated_bindings_script, 26 generated_bindings = exec_script(list_generated_bindings_script,
22 [ 27 [
23 source_directory, 28 source_directory,
24 root_prefix, 29 root_prefix,
25 ], 30 ],
26 "list lines") 31 "list lines")
27 sources = rebase_path(generated_bindings, ".", root_gen_dir) 32 sources = rebase_path(generated_bindings, ".", root_gen_dir)
28 outputs = [ 33 outputs = [
29 "$root_gen_dir/dart_embedder_packages/$package/{{source_file_part}}", 34 "$root_gen_dir/dart_embedder_packages/$destination/{{source_file_part}}",
30 ] 35 ]
31 script = rebase_path( 36 script = rebase_path(
32 "//mojo/dart/embedder/tools/dart_rewrite_embedder_package_imports.py ") 37 "//mojo/dart/embedder/tools/dart_rewrite_embedder_package_imports.py ")
33 args = [ 38 args = [
34 rebase_path("{{source}}", "", root_build_dir), 39 rebase_path("{{source}}", "", root_build_dir),
35 rebase_path( 40 rebase_path(
36 "$root_gen_dir/dart_embedder_packages/$package/{{source_file_part}}"), 41 "$root_gen_dir/dart_embedder_packages/$destination/{{source_file_part} }"),
37 ] 42 ]
38 } 43 }
39 } 44 }
40 45
41 # Template to generate a dart embedder resource.cc file. 46 # Template to generate a dart embedder resource.cc file.
42 # Required invoker inputs: 47 # Required invoker inputs:
43 # String output (name of output file) 48 # String output (name of output file)
44 # List inputs (list of input files to be included) 49 # List inputs (list of input files to be included)
45 # String table_name (name of symbol for resource table) 50 # String table_name (name of symbol for resource table)
46 # Optional invoker inputs: 51 # Optional invoker inputs:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 ] 85 ]
81 if (defined(invoker.input_directory)) { 86 if (defined(invoker.input_directory)) {
82 args += [ 87 args += [
83 "--client_root", 88 "--client_root",
84 rebase_path(invoker.input_directory), 89 rebase_path(invoker.input_directory),
85 ] 90 ]
86 } 91 }
87 args += rebase_path(invoker.inputs) 92 args += rebase_path(invoker.inputs)
88 } 93 }
89 } 94 }
OLDNEW
« no previous file with comments | « mojo/dart/embedder/BUILD.gn ('k') | mojo/dart/embedder/io/mojo_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698