Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

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`.
@goderbauer
Copy link
Member

(triage): I spoke to @cbracken and this is still on his radar. It needs some small tweaks to land.

@Piinks
Copy link
Contributor

Piinks commented Sep 24, 2024

this is still on his radar. It needs some small tweaks to land.

(PR triage): Hey @cbracken is this still the case? :)

@cbracken
Copy link
Member Author

cbracken commented Sep 24, 2024

Yep! @matanlurey picked up my other one, which I've now closed. Once his patches land, I'll rebase this and land it.

@cbracken
Copy link
Member Author

cbracken commented Nov 4, 2024

This was resolved by patches from @matanlurey. Closing as obsolete.

@cbracken cbracken closed this Nov 4, 2024
@cbracken cbracken deleted the et-dart-executable branch November 4, 2024 18:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Dart tests in et including ets own tests

3 participants