Index: mojo/generate_mojo_shell_assets_list.gni |
diff --git a/mojo/generate_mojo_shell_assets_list.gni b/mojo/generate_mojo_shell_assets_list.gni |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a0f03df53e4b67068f6c55523d5ea32f14101764 |
--- /dev/null |
+++ b/mojo/generate_mojo_shell_assets_list.gni |
@@ -0,0 +1,22 @@ |
+# Copyright 2015 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+# Used to generate an assets_list file. To use supply the argument 'dir', which |
+# is where the assets can be found. |
+# TODO(sky): Perhaps combine this with the copy step? |
+template("generate_mojo_shell_assets_list") { |
+ action(target_name) { |
+ script = "//mojo/tools/generate_mojo_shell_assets_list.py" |
+ args = [ |
+ "--dir", |
+ rebase_path(invoker.dir, root_build_dir), |
+ ] |
+ outputs = [ |
+ invoker.dir + "/assets_list", |
+ ] |
+ if (defined(invoker.deps)) { |
+ deps = invoker.deps |
+ } |
+ } |
+} |