Files
sdk/utils/create_timestamp.gni
T
Ryan Macnak d907fbb72b [build] Fix more invocations to use relative paths.
Change-Id: I417ff793567a8adbbc4cc4fd4f77792c9a451f89
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/506280
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2026-05-26 10:19:40 -07:00

25 lines
762 B
Plaintext

# Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
_dart_root = rebase_path("..")
template("create_timestamp_file") {
assert(defined(invoker.path), "Must specify 'path'")
assert(defined(invoker.output), "Must specify 'output'")
path = invoker.path
output = invoker.output
action(target_name) {
script = "$_dart_root/tools/list_dart_files_as_depfile.py"
args = [
rebase_path(output, root_build_dir),
rebase_path(path, root_build_dir),
]
if (defined(invoker.pattern)) {
args += [ invoker.pattern ]
}
depfile = output
outputs = [ output ]
}
}