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

Side by Side Diff: utils/create_timestamp.gni

Issue 2379803002: Linux create_sdk GN build for host (Closed)
Patch Set: Move create_timestamp.gni Created 4 years, 2 months 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 | « utils/compiler/BUILD.gn ('k') | utils/dartanalyzer/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
(Empty)
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
3 # BSD-style license that can be found in the LICENSE file.
4
5 _dart_root = rebase_path("..")
6
7 template("create_timestamp_file") {
8 assert(defined(invoker.pattern), "Must specify 'pattern'")
9 assert(defined(invoker.path), "Must specify 'path'")
10 assert(defined(invoker.output), "Must specify 'output'")
11 new_base = "."
12 if (defined(invoker.new_base)) {
13 new_base = invoker.new_base
14 }
15 current_base = "."
16 if (defined(invoker.current_base)) {
17 current_base = invoker.current_base
18 }
19 pattern = invoker.pattern
20 path = invoker.path
21 output = invoker.output
22 action(target_name) {
23 files = exec_script(
24 "$_dart_root/tools/list_files.py", [pattern, path], "list lines")
25 inputs = ["$_dart_root/tools/list_files.py"] +
26 rebase_path(files, new_base, current_base)
27 outputs = [ output ]
28 script = "$_dart_root/tools/create_timestamp_file.py"
29 args = [ rebase_path(output) ]
30 }
31 }
OLDNEW
« no previous file with comments | « utils/compiler/BUILD.gn ('k') | utils/dartanalyzer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698