dart-sdk/runtime/include
Daco Harkes 413abf0d82 [sdk] Recover folder structure in include folder 2
Such that runtime/include/internal/dart_api_dl_impl.h ends up in
include/internal/dart_api_dl_impl.h in the sdk release.

Long explanation:

https://dart-review.googlesource.com/c/sdk/+/164320 tried to recover the
folder structure but failed to do so correctly. It put
runtime/include/internal/dart_api_dl_impl.h in
include/runtime/dart_api_dl_impl.h rather than
include/internal/dart_api_dl_impl.h.

The gn copy action only supports a single `outputs` string.
https://gn.googlesource.com/gn/+/HEAD/docs/reference.md#var_outputs

This string can have 'placeholders'.
https://gn.googlesource.com/gn/+/HEAD/docs/reference.md#placeholders

The only placeholder that preserves the original folder structure,
without also nesting deeply inside folders is `source_target_relative`.

If `source_target_relative` inside sdk/BUILD.gn it starts including
`runtime/include/` in its path. So the only way to achieve the correct
copy is by doing it in runtime/include/BUILD.gn.

TEST=Manual testing, we don't have tests verifying the SDK structure.

Change-Id: I9d503626266edcdd8417f5cafb0f8ff9746f89f7
Cq-Include-Trybots: luci.dart.try:dart-sdk-linux-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200866
Reviewed-by: Tess Strickland <sstrickl@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2021-05-20 13:54:42 +00:00
..
bin Rollforward of the dart_io_api.h include change, with a fix for flutter. 2018-11-19 18:16:11 +00:00
internal [vm/ffi] Change dart_api_dl.cc to dart_api_dl.c 2020-08-10 15:11:21 +00:00
BUILD.gn [sdk] Recover folder structure in include folder 2 2021-05-20 13:54:42 +00:00
dart_api.h Rereland "[vm/ffi] Disallow Pointers and structs in finalizers and expandos" 2021-04-14 12:07:18 +00:00
dart_api_dl.c [vm] Change import paths inside runtime/include 2020-09-25 11:09:44 +00:00
dart_api_dl.h [vm] Native API: Make Dart_NewWeakPersistentHandle not auto delete 2020-11-03 10:27:44 +00:00
dart_embedder_api.h [vm] Avoid allocating Monitor/Mutex/... with global initializer, use Init()/Cleanup() functions instead 2020-03-17 08:49:52 +00:00
dart_native_api.h [vm] Native API: Make Dart_NewWeakPersistentHandle not auto delete 2020-11-03 10:27:44 +00:00
dart_tools_api.h [ VM ] Remove requirement for presence of current isolate for 2021-03-10 00:42:37 +00:00
dart_version.h [vm] Native API: Make Dart_NewWeakPersistentHandle not auto delete 2020-11-03 10:27:44 +00:00