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

Side by Side Diff: utils/create_timestamp.gni

Issue 2454703004: GN: Format more gn files (Closed)
Patch Set: Created 4 years, 1 month 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 | « sdk/lib/rules.gni ('k') | utils/dartdevc/BUILD.gn » ('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 (c) 2016, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 _dart_root = rebase_path("..") 5 _dart_root = rebase_path("..")
6 6
7 template("create_timestamp_file") { 7 template("create_timestamp_file") {
8 assert(defined(invoker.path), "Must specify 'path'") 8 assert(defined(invoker.path), "Must specify 'path'")
9 assert(defined(invoker.output), "Must specify 'output'") 9 assert(defined(invoker.output), "Must specify 'output'")
10 new_base = "." 10 new_base = "."
11 if (defined(invoker.new_base)) { 11 if (defined(invoker.new_base)) {
12 new_base = invoker.new_base 12 new_base = invoker.new_base
13 } 13 }
14 current_base = "." 14 current_base = "."
15 if (defined(invoker.current_base)) { 15 if (defined(invoker.current_base)) {
16 current_base = invoker.current_base 16 current_base = invoker.current_base
17 } 17 }
18 path = invoker.path 18 path = invoker.path
19 output = invoker.output 19 output = invoker.output
20 action(target_name) { 20 action(target_name) {
21 list_args = [path] 21 list_args = [ path ]
22 if (defined(invoker.pattern)) { 22 if (defined(invoker.pattern)) {
23 list_args += [invoker.pattern] 23 list_args += [ invoker.pattern ]
24 } 24 }
25 files = exec_script( 25 files = exec_script("$_dart_root/tools/list_dart_files.py",
26 "$_dart_root/tools/list_dart_files.py", list_args, "list lines") 26 list_args,
27 inputs = ["$_dart_root/tools/list_dart_files.py"] + 27 "list lines")
28 inputs = [ "$_dart_root/tools/list_dart_files.py" ] +
28 rebase_path(files, new_base, current_base) 29 rebase_path(files, new_base, current_base)
29 outputs = [ output ] 30 outputs = [
31 output,
32 ]
30 script = "$_dart_root/tools/create_timestamp_file.py" 33 script = "$_dart_root/tools/create_timestamp_file.py"
31 args = [ rebase_path(output) ] 34 args = [ rebase_path(output) ]
32 } 35 }
33 } 36 }
OLDNEW
« no previous file with comments | « sdk/lib/rules.gni ('k') | utils/dartdevc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698