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

Official bazel build support #38581

Open
mit-mit opened this issue Sep 26, 2019 · 4 comments
Open

Official bazel build support #38581

mit-mit opened this issue Sep 26, 2019 · 4 comments
Labels
area-build Use area-build for SDK build issues.

Comments

@mit-mit
Copy link
Member

mit-mit commented Sep 26, 2019

This bug tracks the customer request to officially support building Dart projects using the bazel build system.

If this capability is important to you, please cast a vote by pressing the thumbs-up button on this comment.

@mit-mit mit-mit added the area-build Use area-build for SDK build issues. label Sep 26, 2019
@limdor
Copy link

limdor commented Nov 18, 2020

What is the status on this topic? Are there any plans? It would not be required to start from 0, @cbracken continued the https://github.com/dart-archive/rules_dart and can be found here https://github.com/cbracken/rules_dart
However some support/commitment from the official dart community would be nice.
With the release of Bazel 4.0 starting with LTS, it would be a nice starting point and the overhead to keep up with newer Bazel versions would not be so big.
bazelbuild/bazel#12455

@cbracken
Copy link
Member

cbracken commented Nov 18, 2020

One thing that would be useful to know for those developing the rules is what sorts of Dart Bazel support you're looking for.

Examples:

  • Flutter
  • dart2js builds for web (production)
  • dartdevc builds for for web (development)
  • command-line executables

cbracken/rules_dart is maintained entirely on a best-efforts basis on evenings/weekends outside my day job. I'm happy to keep up maintenance of what's there and take PRs, since it's mostly low-effort to maintain the existing stuff, but have been reluctant to rewrite e.g. the Flutter support we built internally at Google due to how much additional maintenance it would be to keep it alive.

FWIW, I've talked on and off with the Bazel team and if we had a few people willing to maintain a repo under the bazelbuild org, they're more than willing to have the repo there; I'm probably not in a position to provide the sorts of maintenance guarantees they're looking for on my own though.

@limdor
Copy link

limdor commented Nov 18, 2020

For me personally I'm interested in the end to build flutter with Bazel from a Windows host to a iOS/Android/Web target. For the moment I stumbled across the dart rules because I saw that the cbracken/rules_dart do not have support for windows and I started checking if there is any plan of official dart support.
I was starting to add the windows support but I got stuck with the script templates for the different rules. I'm not familiar with Power Shell.

@cbracken
Copy link
Member

If there isn't a bug open to add Windows support on cbracken/rules_dart, feel free to file one and we can discuss further there. I believe that if you look through the forks of the repo, someone got partway through adding windows support, though they deleted non-windows support to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-build Use area-build for SDK build issues.
Projects
None yet
Development

No branches or pull requests

3 participants