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 # 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" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 # String output (name of output file) | 48 # String output (name of output file) |
49 # List inputs (list of input files to be included) | 49 # List inputs (list of input files to be included) |
50 # String table_name (name of symbol for resource table) | 50 # String table_name (name of symbol for resource table) |
51 # String root_prefix (base directory of resources) | 51 # String root_prefix (base directory of resources) |
52 # Optional invoker inputs: | 52 # Optional invoker inputs: |
53 # String input_directory (directory of resources that are recursively added) | 53 # String input_directory (directory of resources that are recursively added) |
54 # List deps | 54 # List deps |
55 # List datadeps | 55 # List datadeps |
56 template("dart_embedder_resources") { | 56 template("dart_embedder_resources") { |
57 action(target_name) { | 57 action(target_name) { |
58 script = "//dart/runtime/tools/create_resources.py" | 58 script = "//mojo/public/third_party/dart/runtime/tools/create_resources.py" |
59 deps = [] | 59 deps = [] |
60 if (defined(invoker.deps)) { | 60 if (defined(invoker.deps)) { |
61 deps += invoker.deps | 61 deps += invoker.deps |
62 } | 62 } |
63 datadeps = [] | 63 datadeps = [] |
64 if (defined(invoker.datadeps)) { | 64 if (defined(invoker.datadeps)) { |
65 datadeps = invoker.datadeps | 65 datadeps = invoker.datadeps |
66 } | 66 } |
67 | 67 |
68 output = invoker.output | 68 output = invoker.output |
(...skipping 19 matching lines...) Expand all Loading... |
88 ] | 88 ] |
89 if (defined(invoker.input_directory)) { | 89 if (defined(invoker.input_directory)) { |
90 args += [ | 90 args += [ |
91 "--client_root", | 91 "--client_root", |
92 rebase_path(invoker.input_directory), | 92 rebase_path(invoker.input_directory), |
93 ] | 93 ] |
94 } | 94 } |
95 args += rebase_path(invoker.inputs) | 95 args += rebase_path(invoker.inputs) |
96 } | 96 } |
97 } | 97 } |
OLD | NEW |