Index: utils/create_timestamp.gni |
diff --git a/utils/create_timestamp.gni b/utils/create_timestamp.gni |
index d43a1afd1d6f30d0daf9a8ad52d87c05add9d77d..c579da1e5e3bf9d99b8f8f415eb6c2860507ae29 100644 |
--- a/utils/create_timestamp.gni |
+++ b/utils/create_timestamp.gni |
@@ -7,6 +7,14 @@ _dart_root = rebase_path("..") |
template("create_timestamp_file") { |
assert(defined(invoker.path), "Must specify 'path'") |
assert(defined(invoker.output), "Must specify 'output'") |
+ new_base = "." |
+ if (defined(invoker.new_base)) { |
+ new_base = invoker.new_base |
+ } |
+ current_base = "." |
+ if (defined(invoker.current_base)) { |
+ current_base = invoker.current_base |
+ } |
path = invoker.path |
output = invoker.output |
action(target_name) { |
@@ -17,7 +25,8 @@ template("create_timestamp_file") { |
files = exec_script("$_dart_root/tools/list_dart_files.py", |
list_args, |
"list lines") |
- inputs = [ "$_dart_root/tools/list_dart_files.py" ] + files |
+ inputs = [ "$_dart_root/tools/list_dart_files.py" ] + |
+ rebase_path(files, new_base, current_base) |
outputs = [ |
output, |
] |