dart-lang / native

Dart packages related to FFI and native assets bundling.
BSD 3-Clause "New" or "Revised" License
157 stars 43 forks source link

package:native_toolchain_bazel #1260

Open dcharkes opened 4 months ago

dcharkes commented 4 months ago

We already have native_toolchain_c in this repo, https://github.com/irondash/native_toolchain_rust, and https://pub.dev/packages/native_toolchain_go.

It would be cool to have a class BazelBuilder in package:native_toolchain_bazel that is to be used in the hook/build.dart hook in a similar way to the CBuilder.

Looking for contributors to own this package! (The package doesn't have to live on this repo.)

Sparked by this comment: https://github.com/flutter/flutter/issues/129757#issuecomment-2207938253 ❤️

bivens-dev commented 4 months ago

Just dropping a quick note to say I think this would be a great option that’s very inline with the larger interop story which is currently language based but feels like this would make a lot of sense too!

Attempt3035 commented 4 months ago

Thanks @dcharkes ! Love this, and yes, I think bazel_builder does indeed make much more sense as a toolchain class as you suggest! I’ll need to spend a bit more time understanding the build hooks system but would love to start a prototype and own this eventually 🤩