Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[et] Resolve dart_executable as an executable #52250

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

cbracken
Copy link
Member

@cbracken cbracken commented Apr 19, 2024

Resolves dart_executable targets, which are actions with metadata specifying action_type = [ "dart_executable" ] to BuildTargetType.executable in findTargets.

Fixes: flutter/flutter#147071

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Sets BuildTarget.executable to the `root_out_dir`-relative path of the
executable (e.g. `displaylist_unittests`) instead of its label (e.g.
`//out/host_debug/displaylist_unittests`). This is required since, in
the lines following the output lookup, we assume it to be a path
relative to the build output directory.

Also breaks out functions for:
* `_gnDesc`: returns the JSON output of `gn desc buildDir target`
* `_gnOutputs`:  returns the output files listed by `gn outputs buildDir target`

Noticed while working on: flutter/flutter#147071
Adds a dart_executable rule that compiles Dart code to an ELF, Mach-O,
or PE binary. Can be used to build tools written in Dart, or Dart unit
tests.

Issue: flutter/flutter#147013
Resolves dart_executable targets, which are `action`s with metadata
specifying `action_type = [ "dart_executable" ]` to
`BuildTargetType.executable`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant