--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/2bf4500c-8d2f-44f0-9b50-9c0548cc5a98n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/fc6b556b-0cc0-4546-8bd4-565215fd6b3en%40googlegroups.com.
-- The advantage by gRPC is not about performance improvement, it seems it could decouple the dependencies, so the interface between bazel and visualstudio could be defined by protobuf contracts.I understand this point, but wonder if it worth implementation complexity.-- generating msbuild files, such as ClCompile, Midl, Link, and even MakeAppx for msix manifest files. The contract could be designed for msbuild use cases, so we can start from real world use cases, such as CppWinRT UWP project, Windows Dll library etc.Wow, that sounds bold, but where you are going to get all that data on the Bazel side? Built-in Bazel C++ rules have no way to specify those Windows specific details. There is a reason why for the Apple ecosystem there is completely separate set of Bazel C++ rules which take into account Apple specifics. There is no such Windows specific set of rules in Bazel and even if it would exist I still prefer to stick to the platform agnostic rules.
-- Another part is even if we use aspects to collect all necessary data by just running "bazel build --aspect=gen-msbuild.bzl", where should we put the gRPC client code? It's much more complicated than just building a python script, I'm guessing if we could build starlark code which can collect data via aspects and also sending data via gRPC clientI don't think it is possible to write gRPC Client in Starlark. Custom rule could take care of it, but I don't know if it is possible to feed the output of the command line invoked aspect to the rule in the same Bazel invocation.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/fa0d11cb-2ae5-4b01-9c08-ed1be1f64c09n%40googlegroups.com.
On Jan 4, 2021, at 11:47, Konstantin <kon...@ermank.com> wrote:
-- how they send the build event stream to a remote server
It works because it is implemented in Bazel using Java. What you want is to do the same with Starlark and I doubt it is possible.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/0400985d-7a82-4e8a-a4f3-4abee9e61051n%40googlegroups.com.
-- Create a standalone repo named msbuild in github;Oh-h, please don't call it just "msbuild" - it would be so misleading! Name it "bazel_msbuild_bridge" or something like that - more specific than just "msbuild".
Before you spend too much time implementing the server, the protocol and the project generator I'd recommend to start with the Bazel client side as it is much less clear at the moment. For instance it is not clear to me that the query "bazel query //... --output=proto" would give you the output sufficient to generate vsxproj out of it.
Keep us posted - I am curious to see even the very minimal prototype.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/537209f4-e5a9-4020-a749-5ba731b5043an%40googlegroups.com.