dart-sdk/build
Zach Anderson f60d32167f [gn] Deprecate copy_trees()
Part of https://github.com/flutter/flutter/issues/144430

Previously, this code did backflips to accomplish two goals
1. Collect the paths of all files that would be copied from one place to another after applying regex filters so that they could be listed as the "inputs" to a GN action.
2. Arrange so that the python script doing the above would only be invoked once during GN to reduce the cost of calling out to python.

However, this is exactly the use-case for the "depfile" parameter to a GN action. Instead of running the script during GN to populate the "inputs" list, when we run the copy_tree.py script, we can instead ask it to generate a depfile to collect all the input files that were actually copied after applying the regex filter. Using that, we don't have to run the python script at all during GN.

TEST=it builds

Change-Id: I41a251ce4659119cdc3997bb2d6fc7ee0831bb6d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/356481
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2024-03-08 20:47:47 +00:00
..
config [Fuchsia] Remove the legacy gn build rules for fuchsia 2024-03-07 18:26:59 +00:00
dart [gn] Deprecate copy_trees() 2024-03-08 20:47:47 +00:00
fuchsia [Fuchsia] Remove the legacy gn build rules for fuchsia 2024-03-07 18:26:59 +00:00
linux [build] Use Fuchsia-provided sysroot. 2023-11-02 14:39:10 +00:00
mac Spelling build 2023-01-23 08:56:14 +00:00
rbe [infra] Simplify RBE configuration and allow concurrent builds. 2024-03-04 14:54:26 +00:00
rust [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
sanitizers Spelling build 2023-01-23 08:56:14 +00:00
secondary [build] Build the standard c++ library from source. 2023-05-22 23:38:58 +00:00
toolchain [infra] Simplify RBE configuration and allow concurrent builds. 2024-03-04 14:54:26 +00:00
.gitignore [infra] Support for Alpine Linux Sysroot 2023-01-19 10:36:51 +00:00
detect_host_arch.py [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
executable_suffix.gni Fix builds targeting Android from a Windows host gen_snapshot. 2019-06-07 00:49:33 +00:00
find_depot_tools.py [build] Update Windows SDK to 10.0.22621.0. 2024-02-08 16:06:50 +00:00
gn_helpers.py Fix gn helper script to create *valid* strings for settings containing backslashes. 2021-05-19 12:35:16 +00:00
gn_run_binary.py [build] Make app snapshot build failures copy/pastable. 2021-10-14 11:51:32 +00:00
OWNERS [infra] Give VM engineers OWNERS over tools/gn.py et al. 2022-04-25 17:47:23 +00:00
README.dart.md fix(docs): corrects common typos in project documentation 2021-05-18 15:48:18 +00:00
shim_headers.gni add tools for generating shim headers 2023-04-19 01:37:48 +00:00
vs_toolchain.py [infra] Support testing with RBE on Windows. 2024-02-29 10:33:09 +00:00

This directory was taken from a snapshot of flutter/engine/src/build/.

The snapshot was taken with a recursive copy cp -R of the directory from the flutter repository.

The contents has now diverged significantly from Flutter, and is maintained independently by the Dart team. It is used to support the GN build system.