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

Unified Diff: utils/create_timestamp.gni

Issue 2567213002: Make list_files.py and list_dart_files.py return absolute paths for GN (Closed)
Patch Set: Comments and checking in scripts Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/compiler/compiler.gyp ('k') | utils/dartanalyzer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/create_timestamp.gni
diff --git a/utils/create_timestamp.gni b/utils/create_timestamp.gni
index c579da1e5e3bf9d99b8f8f415eb6c2860507ae29..75ae4cda7a50ca1633d08f0764dd0ba7ba0cb440 100644
--- a/utils/create_timestamp.gni
+++ b/utils/create_timestamp.gni
@@ -7,14 +7,6 @@ _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) {
@@ -23,10 +15,9 @@ template("create_timestamp_file") {
list_args += [ invoker.pattern ]
}
files = exec_script("$_dart_root/tools/list_dart_files.py",
- list_args,
+ [ "absolute" ] + list_args,
"list lines")
- inputs = [ "$_dart_root/tools/list_dart_files.py" ] +
- rebase_path(files, new_base, current_base)
+ inputs = [ "$_dart_root/tools/list_dart_files.py" ] + files
outputs = [
output,
]
« no previous file with comments | « utils/compiler/compiler.gyp ('k') | utils/dartanalyzer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698